Commit Graph

93 Commits

Author SHA1 Message Date
Matt McWilliams 6ae5797ebb Fix sloppy merge 2022-11-14 13:42:44 -05:00
Matt McWilliams ff04b2aa37 Add a few pattern matching algorithms to notes 2022-11-14 13:40:26 -05:00
Matt McWilliams 2798729373 Work on normalization script 2022-11-13 22:36:25 -05:00
Matt McWilliams 9e11d95447 Credit "borrowed" code used for angle normalization 2022-11-11 10:19:31 -05:00
Matthew McWilliams 66aa5d1712 Add a script that draws the calibration page fiducials 2022-11-11 10:09:14 -05:00
Matthew McWilliams 9ca86eb862 Add an install script for setting up the directories with dependencies 2022-11-11 10:08:49 -05:00
Matthew McWilliams ca6d7d7d0b Specified the "analyze" script as the "normalize" script. Can be used for multiple processes.
At the point where the straightened image needs to be centered onto an idealized blank sheet.
2022-11-10 18:06:47 -05:00
Matthew McWilliams 602b6dc26c Draw lines between squared points. Get rotation angles (still need to fix verts_angle()) 2022-11-09 16:56:14 -05:00
Matthew McWilliams e1c6777bf8 Only look at 20% margins for hole punches. Works on all existing examples 2022-11-09 16:55:02 -05:00
Matthew McWilliams 73b61c0cab Fix appendStr -> append 2022-11-09 09:45:07 -05:00
Matt McWilliams f103133b9f Almost blew past a good stopping point.
This script can now, on at least one example. locate the largest contours on the page and then put those contours in an array.
It should also look for the largest, most outlying, to prevent errors in the case of large contours in the image.
They should never go past the holes.

Next step: use this for straightening, which will be good for the image extraction script.
Use them as registration points and then just rotate, shift and "shoot" by cropping at a point relative to the holes.

For calibration/templating, look into pattern matching fiducials after getting hole punch coordinates.
2022-11-08 22:47:36 -05:00
Matt McWilliams e5d9d654ac Merge remote-tracking branch 'origin/main' 2022-11-08 21:10:50 -05:00
Matthew McWilliams cd1edbe538 Started analysis script with single example taken from stackoverflow as a starting point. Had to modify it to support opencv 4.x but got it to run. Finds holes. 2022-11-08 19:11:15 -05:00
Matt McWilliams 55cc8ed22c Add a "stipple_random" script that, unlike the sine, uses shuf and a sequence of integers to generate a random number to apply as the "step" in the range of stipple settings 2022-11-04 21:42:39 -04:00
Matt McWilliams e8a262e64f Lift pen before putting in position 2022-10-25 20:12:18 -04:00
Matt McWilliams fb617cfaee Progress 2022-10-25 20:07:58 -04:00
Matt McWilliams e1451abbe5 Use --no-adjust to prevent page from resizing 2022-10-12 13:49:08 -04:00
Matt McWilliams a337fc0d8b Silly hack to get svgopt to run without erroring out. 2022-10-12 13:37:13 -04:00
Matt McWilliams c32b3fed92 Can find corners of frames within scanned page and perform some calculations about height and width.
Still need to find rotation info, then rotate and crop to frames for video stitching.
2021-12-19 21:12:12 -05:00
Matt McWilliams 950e3df594 direct ax output from stderr to stdin 2021-12-08 18:48:25 -05:00
Matt McWilliams 015e2fe226 Fix log.sh, stipple.sh and seq.sh 2021-12-08 17:27:00 -05:00
Matt McWilliams 55a7d83854 Update stipple settings. 2021-12-08 00:18:56 -05:00
Matt McWilliams 0e601ebb9a Create a sqlite database and log all frames drawn to it. For keeping track of pen usage and creating a dataset from which to predict drawing times for future frames 2021-12-08 00:18:45 -05:00
Matt McWilliams f541a2d2db Add a number of common bash functions to use across scripts. Including log, which is under development. 2021-12-07 23:11:13 -05:00
Matt McWilliams ea86049947 Create a table for storing drawn svgs 2021-12-07 23:10:41 -05:00
Matt McWilliams f0feeec3b9 This is the ax script being run on bot when controlling the plotter 2021-12-07 23:10:26 -05:00
Matt McWilliams c39e22b197 sim work 2021-12-02 01:04:23 -05:00
Matt McWilliams 5dc7eefe43 Add a script for simulating the math 2021-11-30 10:20:28 -05:00
Matt McWilliams 96b4a47397 SIngle stipple feature 2021-11-30 10:20:06 -05:00
Matt McWilliams 84228c8559 Work: add shellcheck config (not working rn). Re-organize stipple script to be more flexible 2021-11-30 00:43:43 -05:00
Matt McWilliams fb3c35e7d1 Fullpath is not a command 2021-11-29 11:43:08 -05:00
Matt McWilliams 3e53245396 Normalize paths of dirs 2021-11-29 11:41:57 -05:00
Matt McWilliams 5c9e4dd8e5 This works on desktop 2021-11-29 11:38:24 -05:00
Matt McWilliams da7d78cd0a Initial loop is failing? 2021-11-29 11:35:13 -05:00
Matt McWilliams 8e53f5aac5 Find starting frame name? 2021-11-29 11:32:31 -05:00
Matt McWilliams a9456c569e Add better console work to scripts 2021-11-29 11:30:51 -05:00
Matt McWilliams a3b0bfe950 script to optimize all svg files with svgsort 2021-11-28 22:25:40 -05:00
Matt McWilliams fe1418561c If arg 2 ($2) is 0, behave normally 2021-11-28 22:18:09 -05:00
Matt McWilliams cffc6dedfb Add a stop frame 2021-11-28 22:00:10 -05:00
Matt McWilliams d37efd4619 Update stipple settings 2021-11-28 21:59:21 -05:00
Matt McWilliams 8f92cc1787 Run on dedicated hardware 2021-11-26 22:01:07 -05:00
Matt McWilliams 911d6e2108 Add a script for common functions 2021-09-16 11:05:07 -04:00
Matt McWilliams bd72e29c05 Add comments to all scripts. 2021-09-16 10:42:59 -04:00
Matt McWilliams 054a892cea Separate out continue behavior into askContinue function.
Add a step which asks if user wants to start with non-first frame
2021-09-16 09:51:42 -04:00
Matt McWilliams 1e59d667c8 Move yet again 2021-09-16 01:59:38 -04:00
Matt McWilliams 89f1e7fa74 Mark the top left corner of the frame 2021-09-16 01:55:17 -04:00
Matt McWilliams 073cf31397 Position after adjustment with test using Micron 03 pen 2021-09-16 01:54:15 -04:00
Matt McWilliams 97262273b7 Add a test script 2021-09-16 01:32:47 -04:00
Matt McWilliams 3bb7cf3d42 Last tweak before tests 2021-09-16 01:30:46 -04:00
Matt McWilliams 06996709ce Found the new position 2021-09-16 01:26:50 -04:00