The sample demonstrates how to create a simple Webcam Barcode reader in Python.
- Dynamsoft Barcode SDK: http://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx
- Python: https://www.python.org/ftp/python/
- NumPy: http://sourceforge.net/projects/numpy/files/NumPy/
- SciPy: http://sourceforge.net/projects/scipy/files/scipy/
- OpenCV: http://sourceforge.net/projects/opencvlibrary/files/opencv-win/
- Copy <opencv_installation_dir>\build\python\2.7\x86\cv2.pyd to <Python27>\Lib\site-packages\cv2.pyd
- Build Dynamsoft Barcode Reader library for Python. Please refer to https://github.com/Dynamsoft/Dynamsoft-Barcode-Reader/tree/master/samples/Python
- Copy DynamsoftBarcodeReader.pyd and DynamsoftBarcodeReaderx64.dll / DynamsoftBarcodeReaderx86.dll to the project folder.
- Connect a Webcam to your PC. Make sure you have installed the Webcam driver.
- Open cmd.exe, locate your project folder and type in
python webcam_barcode_reader.py
- Press Enter to capture a frame and then recognize Barcodes.
- Press ESC to close the program.