Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/techniker/cs1504_barcode_tool
tool for symbol cs1504 barcode reader
https://github.com/techniker/cs1504_barcode_tool
Last synced: about 2 months ago
JSON representation
tool for symbol cs1504 barcode reader
- Host: GitHub
- URL: https://github.com/techniker/cs1504_barcode_tool
- Owner: techniker
- Created: 2010-09-24T01:01:16.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T04:24:50.000Z (almost 2 years ago)
- Last Synced: 2023-03-11T08:26:55.366Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This code is a software for reading data from a Symbol CS1504 barcode scanner. It uses the pyserial library to communicate with the scanner via a serial connection. The code also includes functions for formatting ISBN codes and expanding certain barcode symbols. The supported barcode symbols and their corresponding codes are specified in the symbologies dictionary. When a barcode is scanned, the code will determine the symbology based on the code returned by the scanner and, if necessary, expand the code to the full ISBN format or perform any other necessary formatting. The format_isbn function is used to calculate and add the ISBN check digit. The expand function is used to determine if the barcode should be expanded and, if necessary, perform the expansion.