Commit Graph

155 Commits

Author SHA1 Message Date
Matt McWilliams 3d286cfd4d add documentation to fourcell 2024-01-10 09:43:32 -05:00
Matt McWilliams e8561cbb1f Update --help in apply_image 2024-01-09 14:32:14 -05:00
Matt McWilliams c16b92397b Refactor to use argparse. Add descriptions and comments for context 2024-01-03 13:19:04 -05:00
Matt McWilliams 7248c1feb1 Add conf files from animation 2023-11-26 08:51:17 -05:00
Matt McWilliams 36c0cb60e0 Draw registration marks and print text in a reasonable position 2023-03-18 21:27:09 -04:00
Matt McWilliams 4f29110f5e Actually apply image 2023-03-18 19:10:11 -04:00
Matt McWilliams 033b400294 Completed generate text example. Can be tweaked now. 2023-03-16 00:03:47 -04:00
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 9d235be9da Calculate an average ratio from all frames 2023-03-14 07:14:59 -04:00
Matt McWilliams ae0c3bfa39 Get the ratio of the template frame. Add a README.md 2023-03-13 16:35:39 -04:00
Matt McWilliams 5924c65b39 Write pages to directory 2023-03-04 18:51:22 -05:00
Matt McWilliams 1ddea3ad56 Works with test command but aspect ratio of produced images seem off 2023-02-24 22:28:01 -05:00
Matt McWilliams 6689e6af45 Placeholder for fourcell script 2023-02-24 21:27:08 -05:00
Matt McWilliams 35b9deb07e REname scale_img.sh to white_fourcell.sh and make sure that it works in full colorspace, was reducing source image to grayscale 2023-02-24 15:38:33 -05:00
Matt McWilliams ff910b9dae Scale images for the fourcell process 2023-02-24 00:08:31 -05: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 95f93eabc9 Actually draw number 2023-02-11 19:23:39 -05:00
Matt McWilliams 45af6406da Script for drawing all registration marks 2023-02-11 19:21:38 -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 727713f41b All work on aktinson dithering-related scripts 2023-01-02 12:21:40 -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