(210, 160) uint8 grayscale frame -> 88-byte archive key.
(frame)
| 68 | |
| 69 | |
| 70 | def cell_key(frame): |
| 71 | """(210, 160) uint8 grayscale frame -> 88-byte archive key.""" |
| 72 | small = cv2.resize(frame, (CELL_W, CELL_H), interpolation=cv2.INTER_AREA) |
| 73 | return ((small / 255.0) * CELL_LEVELS).astype(np.uint8).tobytes() |
| 74 | |
| 75 | |
| 76 | class Cell: |
no outgoing calls
no test coverage detected