diff options
author | Anthony Wang | 2024-04-28 19:25:38 -0400 |
---|---|---|
committer | Anthony Wang | 2024-04-28 19:25:38 -0400 |
commit | 5259da7b02e62f81c383fa67e06cd7ee554e6301 (patch) | |
tree | 00d68a1c129043212a0bcd8cdc29d8612fc13467 /encoder.py | |
parent | 922d8e7834df411818341639dd859d3f6ff21880 (diff) |
Crop webcam image to prevent perspective distortion, correctly truncate frame for raptor code using CLI flag, make encoder.py print flags
Diffstat (limited to 'encoder.py')
-rw-r--r-- | encoder.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -39,8 +39,7 @@ rcorner = np.pad(np.dstack((ones, zeros, zeros)), ((0, 1), (1, 0), (0, 0))) gcorner = np.pad(np.dstack((zeros, ones, zeros)), ((1, 0), (0, 1), (0, 0))) bcorner = np.pad(np.dstack((zeros, zeros, ones)), ((1, 0), (1, 0), (0, 0))) -print("Data length:", len(data)) -print("Packets:", len(packets)) +print(f"-x {args.height} -y {args.width} -l {args.level} -s {len(data)} -p {len(packets[0])}") def frame(packet): |