Why does the content become garbled when I use the python -m cimbar.cimbar decode.png -o decode.txt --ecc=0 command to decode after using the Encoder on https://cimbar.org?
Most likely that "garbled" content is error correction. There are two levels of it in play:
--ecc=0will treat all decoded data as valid (and not attempt reedsolomon error correction), meaning the intermixed error correction bytes will be treated as if they're part of the file. cimbar.org usesecc=30(the default), and unless you're troubleshooting something you probably don't want to change this.- you'll also need to enable "fountain" decoding with the
--fountainflag, since that's what libcimbar/cimbar.org do.
python -m cimbar.cimbar 22.png --output=myoutputfile.txt --ecc=30 --fountain true
I used the command above and encountered the following error.:
Traceback (most recent call last):
File "D:\developsoft\conda\envs\cimbar\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\developsoft\conda\envs\cimbar\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "E:\softProject\pythonproject\cimbar-master\cimbar\cimbar.py", line 581, in
The --ecc=30 and true are unnecessary.
That error is consistent with 22.png not existing -- or being in a different directory than the one you're running the code from.
Another thing to make sure of (after you get past the current error) is to switch the encoder into "mode B". I've been waiting to make that the default to give people time to upgrade the decoder app, but it's probably what you want.