Commit Graph

19 Commits

Author SHA1 Message Date
Matt McWilliams 91e806f9ab Add hole punch diagram to readme 2022-11-24 11:19:17 -05:00
Matt McWilliams b93ef905ae Remove excessive logging 2022-11-15 20:55:06 -05:00
Matt McWilliams 5a0da25109 Eval files are great, can be used for further stabilization if needed 2022-11-15 14:05:45 -05:00
Matt McWilliams 58955ade4b Normalize works, I like it. Image size is the real bandwidth limiter but images look good enough. SHould create a script to onionskin all scans for evaluation. Maybe run the holepunch detection on normal and write text file that prints the centers? Will do that now. 2022-11-15 13:59:51 -05:00
Matt McWilliams a352ad1062 I dropped the stash 2022-11-14 13:46:30 -05:00
Matt McWilliams 89eaa29b81 Why... 2022-11-14 13:45:39 -05:00
Matt McWilliams 163fbad520 okay? 2022-11-14 13:44:23 -05:00
Matt McWilliams d5a90ca8ae Fixed? 2022-11-14 13:43:58 -05:00
Matt McWilliams 1a28ccba66 What is happening 2022-11-14 13:43:22 -05:00
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 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
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