I want to read barcodes in python. I searched for library that support barcode reading and also support python 2.7, but I didn't find anything. Is there any library that can help me? Also if you know any tutorial about barcode reading, please tell me where can I find that.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
You should try using zbar and a PyUSB, scan "USB Serial"-mode barcode, then "Save" barcode to make this setting permanent. Now your 3310g is in serail emulation mode, note new /dev/ttyACM0 or /dev/ttyUSB0 device. Read serial port with simple file operations from python:
(Better late than never...) : Pyzbar and OpenCV should do what you want.
Here is the code I'm using with Python 3:
You can find this code here : https://www.learnopencv.com, with explanations.