Skip to content

Aerofluxx/webcam-barcode-qrcode-reader-python

 
 

Repository files navigation

Reading Barcode and QR Code Using Webcam, Python and OpenCV

The sample demonstrates how to create a simple Webcam Barcode and QR code reader in Python. OpenCV stitcher API is used to stitch multiple barcode and QR code results.

License Activation

Get a desktop license key from here to activate Dynamsoft Barcode Reader SDK:

BarcodeReader.init_license("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==")

Installation

pip install opencv-python dbr

Try Example

  • scanner.py

    Use webcam to scan barcode and QR code in real-time.

    Python barcode and QR code reader

  • stitcher.py

    Get camera closer to scan more barcode and QR code precisely and then stitch them together as a panorama image.

    Python barcode and QR code reader with panorama stitching

  • barcode_based_panorama.py

    Concatenate images based on barcode and QR code detection results. No image processing algorithm used.

    concatenate barcode and QR code images

  • barcode_reader.py

    Used to read barcode and QR code from image files.

    python barcode_reader.py <image-file>

Blog

Scanning Barcode and QR Code Using Webcam, OpenCV and Python

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%