diff options
Diffstat (limited to 'decoder.py')
-rw-r--r-- | decoder.py | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -11,11 +11,9 @@ parser.add_argument("-i", "--input", help="camera device index or input video fi parser.add_argument("-o", "--output", help="output file for decoded data", default="out") parser.add_argument("-x", "--height", help="grid height", default=100, type=int) parser.add_argument("-y", "--width", help="grid width", default=100, type=int) -parser.add_argument("-f", "--fps", help="frame rate", default=30, type=int) parser.add_argument("-l", "--level", help="error correction level", default=0.1, type=float) parser.add_argument("-s", "--size", help="number of bytes to decode", type=int) parser.add_argument("-p", "--psize", help="packet size", type=int) -parser.add_argument("-e", "--erasure", help="detect erasures", action="store_true") args = parser.parse_args() cheight = cwidth = max(args.height // 10, args.width // 10) @@ -99,7 +97,6 @@ while data is None: frame[args.height - cheight :, cwidth : args.width - cwidth].flatten(), ) ) - # erase_pos = bytearray(np.where(frame == 0)[0]) if args.erasure else bytearray() data = decoder.decode(bytes(rsc.decode(bytearray(np.packbits(frame) ^ frame_xor))[0][: args.psize])) print("Decoded frame") except KeyboardInterrupt: |