Answer the question
In order to leave comments, you need to log in
Problem with encoding in Python macOS and Debian (Raspberry), what could be wrong?
Good afternoon, there is a library that recognizes the code from the picture.
https://pypi.org/project/pylibdmtx/
I give a picture as input - as output a string with data contained in the code, for example:
code=decode("image.png")
I run under macOs, I do print(code) I get
b '\xdc\x83\x99\xaf\xc5\xdb\x83\x99\xaf\xc5\xdb\x83\x99\xaf\x81\xed\x85\x1cC\x96[\x17"ba\xcb\xb4g\xdc \x8f\xdd\x07\x01' I run
the same script on Raspberry, I get
b'9001234567890123456789012345'
Everything is ok on Raspberry, why can't I fix it on mac?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question