animation/fourcell
Matt McWilliams 7581cc75b5 Force commit registration mark 2023-02-10 15:46:50 -05:00
..
notes Trying a contrived version of the affine_poc that demonstrates the issue 2023-02-10 15:36:51 -05:00
.gitignore 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
README.md Update readme with info about calibration script and documenting its output 2023-02-07 02:11:19 -05:00
apply_image.py Create masks? 2023-02-09 22:55:42 -05:00
calibrate.py 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
common.py 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
normalize.py Write hole punch file as json 2022-11-24 12:10:05 -05:00
registrationMark.png Force commit registration mark 2023-02-10 15:46:50 -05:00
requirements.txt 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

README.md

Four Cell Script

Two scripts:

  1. Analyzes a calibration sheet on the plotter to generate a template.
  2. Takes cells and inserts them into the template 4 at a time.

Analysis Steps

  1. Locate positions of 6 hole punches - normalize.py
  2. Orient to square position - normalize.py
  3. Find all 4 fiducials
  4. Calculate their position relative to the hole punches
  5. Create a template
  6. Use the template-filling script to recreate calibration page as a proof to be checked on a lightbox

Page Hole Punch Order

   human           zero-index
_______________  _______________
|             |  |             |
| 1         3 |  | 0         2 |
|             |  |             |
|             |  |             |
|             |  |             |
| 2         4 |  | 1         3 |
|             |  |             |
|             |  |             |
|             |  |             |
| 5         6 |  | 4         5 |
|             |  |             |
---------------  ---------------

Calibration Layout Order

_______________  _______________ 
|             |  |             |
| 1   2 3   0 |  |             |
|             |  |   1     2   |
|             |  |             |
| 0   3 2   1 |  |             |
|             |  |             |
| 1   2 3   0 |  |             |
|             |  |             |
|             |  |   0      3  |
| 0   3 2   1 |  |             |
|             |  |             |
---------------  ---------------