Wrote notes on the spec for the two apply scripts which will put the calibration data into action.

This commit is contained in:
Matt McWilliams 2023-02-07 02:11:46 -05:00
parent d57a145f1c
commit 89678edd8e
1 changed files with 34 additions and 0 deletions

34
fourcell/notes/spec.txt Normal file
View File

@ -0,0 +1,34 @@
# apply_images
* Take calibration json as argument
* Create blank image of width and height
* Place idealized circles where hole punches are supposed to be
* Place fiducials in corners of images
* Take up to 4 images as arguments
* Perform AffineTransform on as many source locations as needed
* Place images according to AffineTransform
* Write final image out
### Potentials needs
* One time xy offset, calibrated to hole punches
* Hole punch several sheets at the same time, calibrate to one and print on them
* OR
* Calibrate, then print on un-punched sheets and place guides for punching
* (this may be less reliable)
# apply_svg
* Create svg document scaling width and height to 96dpi equivalent
* Normalize all measurements to 96dpi equivalent
* Place idealized circles where hole punches are supposed to be
* Take up to 4 svg files as arguments
* Find best fit for svg within 4 frames, rotation, scale and position
* Place or embed or re-write svg within frame, one at a time
* Write out final svg
### Potential needs
* One time xy offset, calibrated to hole punches
* Special board to draw this on (as opposed to free form mat)