Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.02 KB

File metadata and controls

44 lines (33 loc) · 1.02 KB

OpenCV-dependent Python Barcode Reader for macOS

The sample shows how to use OpenCV and Dynamsoft Barcode Reader SDK to build a Python barcode reader for macOS.

System Information

Check macOS system version:

sw_vers
  • ProductName: Mac OS X
  • ProductVersion: 10.11.1
  • BuildVersion: 15B42

Download & Installation

  • OpenCV

    brew update
    brew tap homebrew/science
    brew install opencv3
  • Dynamsoft Barcode Reader. Extract the package to get include and lib folders.

Build and Run

  1. Copy include and lib folders to the project.

  2. Build Python extension:

    python setup.py build install
  3. Run the app:

    python test.py ./Codabar.jpg

Blog

Using OpenCV to Build Python Barcode Reader for macOS