Skip to content

lineCode/cplusplus-webcam-barcode-reader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Real-time Webcam Barcode Detection with OpenCV and C/C++

The samples demonstrate how to use Dynamsoft Barcode Reader SDK to build a barcode reader application on Windows and Raspberry Pi with a USB webcam.

webcam barcode scanner for Windows and Raspberry Pi

Getting Started

Windows 10

  1. Install OpenCV for Windows.
  2. Open the project with Visual Studio 2015.
  3. Add the include and lib directories of Dynamsoft Barcode Reader and OpenCV to the project properties.
  4. Build the project and copy the relevant *.dll libraries to the output directory

Raspberry Pi Raspbian Jessie

  1. Download Dynamsoft Barcode Reader for Raspberry Pi.

  2. Extract the package and generate a symbolic link:

    sudo ln -s $(DynamsoftBarcodeReader)/lib/libDynamsoftBarcodeReader.so /usr/lib/libDynamsoftBarcodeReader.so
    
  3. Visit license page to get a trial license.

  4. Follow the article to install OpenCV.

  5. Install Wiring Pi

  6. Build the source code:

    g++ -ggdb -I$(DynamsoftBarcodeReader)/include -o barcodereader barcodereader.cpp -lDynamsoftBarcodeReader `pkg-config --libs opencv` -lwiringPi -lpthread
    

Video

https://www.youtube.com/watch?v=p1NQz6m5yBc&feature=youtu.be

Blog

  1. Real-time Webcam Barcode Detection with OpenCV and C++
  2. Barcode Scanner Optimization for Raspberry Pi
  3. Raspberry Pi Barcode Scanner with GPIO

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%