lzs4073 / webcam-barcode-reader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reading Barcode with Webcam in Python

The sample demonstrates how to create a simple Webcam Barcode reader in Python.

image

Installation

How to Run

  1. Copy <opencv_installation_dir>\build\python\2.7\x86\cv2.pyd to <Python27>\Lib\site-packages\cv2.pyd
  2. Build Dynamsoft Barcode Reader library for Python. Please refer to https://github.com/Dynamsoft/Dynamsoft-Barcode-Reader/tree/master/samples/Python
  3. Copy DynamsoftBarcodeReader.pyd and DynamsoftBarcodeReaderx64.dll / DynamsoftBarcodeReaderx86.dll to the project folder.
  4. Connect a Webcam to your PC. Make sure you have installed the Webcam driver.
  5. Open cmd.exe, locate your project folder and type in python webcam_barcode_reader.py
  6. Press Enter to capture a frame and then recognize Barcodes.
  7. Press ESC to close the program.

Blog

Reading Barcode with Webcam in OpenCV and Python

About

License:Apache License 2.0


Languages

Language:Python 100.0%