No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
extension first commit Apr 27, 2016
LICENSE first commit Apr 27, 2016
README.md Update README.md Oct 26, 2016
cam_reader.py first commit Apr 27, 2016

README.md

Barcode Scanner with Raspberry Pi and USB Webcam

The sample demonstrates how to use Dynamsoft Barcode Reader SDK and Python to build a barcode scanner with Raspberry Pi and USB Webcam.

Getting Started

Dynamsoft Barcode Reader for Raspberry Pi

  1. Contact support@dynamsoft.com to get the download link.

  2. Extract the package and generate a symbolic link:

    sudo ln -s <Your library path>/libDynamsoftBarcodeReader.so /usr/lib/libDynamsoftBarcodeReader.so
    
  3. Visit license page to get a trial license.

Build Custom Python extension

  1. Open setup.py. Replace the include and lib paths with yours:

    include_dirs=['/home/pi/Desktop/dbr/include'],
    library_dirs=['/home/pi/Desktop/dbr/lib'],
    
  2. Build and install Python extension:

    python setup.py Build
    sudo python setup.py install
    

    install custom python extension

Install OpenCV for Raspberry Pi

Read How to install OpenCV 3 on Raspbian Jessie.

Barcode Scanner

  1. Connect webcam to Raspberry Pi.

  2. Run cam_reader.py:

    python cam_reader.py
    
  3. Press key 'C' to capture and read barcode.

    Raspberry Pi Node.js Barcode Reader

Blog

Raspberry Pi Barcode Scanner with Webcam and Python