The sample shows how to use OpenCV and Dynamsoft Barcode Reader SDK to build a Python barcode reader for macOS.
Check macOS system version:
sw_vers
- ProductName: Mac OS X
- ProductVersion: 10.11.1
- BuildVersion: 15B42
-
OpenCV
brew update brew tap homebrew/science brew install opencv3
-
Dynamsoft Barcode Reader. Extract the package to get include and lib folders.
-
Copy include and lib folders to the project.
-
Build Python extension:
python setup.py build install
-
Run the app:
python test.py ./Codabar.jpg