You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using 'halftone' algorithm for image encoding, a Python error is present:
⏳ Applying halftone dithering to image...
Traceback (most recent call last):
File "/Projects/cat_printer_interface/catprinter/print-modified.py", line 80, in <module>
custom()
File "/Projects/cat_printer_interface/catprinter/print-modified.py", line 48, in custom
data = cmds_print_img(bin_img, dark_mode=True)
File "/Projects/cat_printer_interface/catprinter/catprinter/cmds.py", line 167, in cmds_print_img
data += cmd_print_row(row)
File "/Projects/cat_printer_interface/catprinter/catprinter/cmds.py", line 127, in cmd_print_row
encoded_img = run_length_encode(img_row)
File "/Projects/cat_printer_interface/catprinter/catprinter/cmds.py", line 101, in run_length_encode
if val == last_val:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
✅ Done.
$ python --version Python 3.10.2
The text was updated successfully, but these errors were encountered:
When using
'halftone'
algorithm for image encoding, a Python error is present:$ python --version Python 3.10.2
The text was updated successfully, but these errors were encountered: