Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sagban/zbar-barcode-reader-python-javascript
A barcode reader which detects and read barcode and Qr codes from the live streaming webcam, laptop cam and mobile phones (back and front both) camera.
https://github.com/sagban/zbar-barcode-reader-python-javascript
barcode barcode-detection barcode-reader barcode-scanner barcodes django-framework javascript python python3 zbar
Last synced: 4 months ago
JSON representation
A barcode reader which detects and read barcode and Qr codes from the live streaming webcam, laptop cam and mobile phones (back and front both) camera.
- Host: GitHub
- URL: https://github.com/sagban/zbar-barcode-reader-python-javascript
- Owner: sagban
- Created: 2018-06-01T12:18:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T02:18:39.000Z (about 2 years ago)
- Last Synced: 2024-10-11T07:04:44.591Z (4 months ago)
- Topics: barcode, barcode-detection, barcode-reader, barcode-scanner, barcodes, django-framework, javascript, python, python3, zbar
- Language: Python
- Homepage:
- Size: 9.95 MB
- Stars: 31
- Watchers: 4
- Forks: 44
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zbar-barcode-reader-python-javascript
A bar code reader which detects and read barcode and Qr codes from the live streaming webcam, laptop cam and mobile phones (back and front both) camera.Features
-------- Reads and decodes any type of bar code and qr code from the live camera stream.
- Compatible with all the modern devices.
- Can be accessible from the mobile camera (back and front both)
- Uses javascript `getUserMedia ` API call to get live camera feed.
- Uses Python open source library (Zbar) Pyzbar for barcode decoding.
- Runs on Django server.
Note: Code can be use on different python frameworks.
Important Files: `/bar/static/js/main.js` `/bar/views.py` `/bar/barcode.py`Usage
-------**To run locally:**
First fork this repository and then follow these steps:
```
git clone https://github.com/your-name/Zbar-barcode-reader-python-javascript.git
cd Zbar-barcode-reader-python-javascript
pip install -r requirements.txt
python manage.py runserver
```
Now open [127.0.0.1:8000](127.0.0.1:8000 "127.0.0.1:8000") locally on your browser.*Note: Starting with Chrome 47, `getUserMedia()` requests are only allowed from secure origins: HTTPS or localhost.*
*Solution: For development use `django-sslserver` for testing on different mobile devices and IP other than localhosts. Find this out [here](https://github.com/teddziuba/django-sslserver "here")*
**For best results use mobile back camera**Sequence Diagram
-------------![Sequence](./brief.svg)
End
----
*Feel free to add an issue if you are facing any problem related to this project.*