Commit Graph

55 Commits

Author SHA1 Message Date
Matt McWilliams afd153ef13 In the process of working out how to generate text to size 2023-03-14 16:43:38 -04:00
Matt McWilliams a4b966abd0 Generate a guide, generated specifically for the sequence and template and use that as first frame. 2023-03-14 11:30:44 -04:00
Matt McWilliams 803b58c3dd Hole punches should only be light gray (for now) 2023-03-14 11:29:30 -04:00
Matt McWilliams 10c0266750 Move fourcell scripts into directory. Correctly orient ratio. 2023-03-14 08:22:13 -04:00
Matt McWilliams 3c21bff15b Notes about printers 2023-02-22 15:17:14 -05:00
Matt McWilliams 478e88e7ea Scale an image 2023-02-22 15:17:03 -05:00
Matt McWilliams a51a4b6a23 Generate a calibration sheet 2023-02-21 22:18:14 -05:00
Matt McWilliams 01c67e16dc warpAffine works with a mask 2023-02-20 18:54:08 -05:00
Matt McWilliams 57b9c1ebbc move functions from proof of concept into apply image 2023-02-20 18:44:20 -05:00
Matt McWilliams 0af8b43606 Perform action in BGRA and then reduce back to BGA for export 2023-02-20 18:41:11 -05:00
Matt McWilliams 370e76aaaa WORKS! with mask 2023-02-20 18:38:03 -05:00
Matt McWilliams cd31d07827 Use username 2023-02-20 18:16:16 -05:00
Matt McWilliams 5f5a04c13c Run tests on affine_poc scripts 2023-02-19 22:46:26 -05:00
Matt McWilliams 7b67e586d9 Work fixing template 2023-02-12 12:26:39 -05:00
Matt McWilliams 5fda5144cb Registration marks should be separated into different dpis 2023-02-12 10:02:55 -05:00
Matt McWilliams 479e9f5207 calibrate.py should actually be template.py. Calibration will be for printers and plotters. Different process. 2023-02-11 19:07:41 -05:00
Matt McWilliams 7581cc75b5 Force commit registration mark 2023-02-10 15:46:50 -05:00
Matt McWilliams 1f572295f6 Trying a contrived version of the affine_poc that demonstrates the issue 2023-02-10 15:36:51 -05:00
Matt McWilliams 672f4212b5 Create masks? 2023-02-09 22:55:42 -05:00
Matt McWilliams 28d959ff1b Tried more approaches 2023-02-09 22:17:18 -05:00
Matt McWilliams e560955537 Make script more like proof of concept script. Still nothing. 2023-02-08 15:49:23 -05:00
Matt McWilliams 34e5153948 Moved everything into RGBA from RGB in case alpha channel allowed for proper use. Not working. Cannot understand why proof of concept works but not this. 2023-02-08 15:34:40 -05:00
Matt McWilliams a1a57ef58c Image overwriting continues even after loading a valid image and drawing the hole punches on 2023-02-08 10:58:41 -05:00
Matt McWilliams aabdac74b5 Apply_image.py script is correctly placing images in the template locationg BUT is overwriting the starting blank image with a black background and doing so for all subsequent images. Not sure how to properly address this 2023-02-08 10:42:45 -05:00
Matt McWilliams 89678edd8e Wrote notes on the spec for the two apply scripts which will put the calibration data into action. 2023-02-07 02:11:46 -05:00
Matt McWilliams d57a145f1c Update readme with info about calibration script and documenting its output 2023-02-07 02:11:19 -05:00
Matt McWilliams 80e4d8e251 Create a affineTransform proof of concept script that takes one image, finds points within it and to scale and distort an image to and then places it there. 2023-02-07 02:10:58 -05:00
Matt McWilliams 800b5af94e Write calibration metadata to a json file that includes the normalization info 2023-02-06 13:02:32 -05:00
Matt McWilliams 1a8491919c Can now find all 4 frames and correctly orient the rectangles that contain them 2023-02-06 00:13:05 -05:00
Matt McWilliams 2c2604c4b0 Find registration marks, tag center of mark (not top left corner) 2023-01-30 09:33:30 -05:00
Matt McWilliams 1589076974 Work on matching registration marks against document. Segmenting image without copying is causing errors. 2023-01-30 09:26:43 -05:00
Matt McWilliams adf465fd4c Select and group registration marks 2023-01-29 22:53:51 -05:00
Matt McWilliams dea1fb8134 Calibrate script work, having trouble finding pattern so will have user select 2022-11-24 19:41:01 -05:00
Matt McWilliams 81d79a1602 Write hole punch file as json 2022-11-24 12:10:05 -05:00
Matt McWilliams ab9e31b49e Begin the calibrate script which will read the .txt file made by the normalize script. JSON would make more sense. 2022-11-24 11:22:03 -05:00
Matt McWilliams 9b48e52736 Migrate common functions into common.py to share between scripts 2022-11-24 11:21:06 -05:00
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