aboutsummaryrefslogtreecommitdiff
path: root/encoder.py
diff options
context:
space:
mode:
authorAnthony Wang2024-04-28 19:25:38 -0400
committerAnthony Wang2024-04-28 19:25:38 -0400
commit5259da7b02e62f81c383fa67e06cd7ee554e6301 (patch)
tree00d68a1c129043212a0bcd8cdc29d8612fc13467 /encoder.py
parent922d8e7834df411818341639dd859d3f6ff21880 (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.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/encoder.py b/encoder.py
index 914e396..c510b18 100644
--- a/encoder.py
+++ b/encoder.py
@@ -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):