get paid

Get paid for the tasks you do online

2020年4月12日 星期日

python barcode detection and decoder -- pybar 安裝

用 python 便是一些基礎的東西 越來越簡單, 原本有個專案要辨識 barcode , 本想自己硬幹

但發現有現成 performance 也很好的 Library pybar

可以做 barcode detection 與 decoder ...

但 pybar 不能直接 install , 需要現下載 zbar , windows 已經包含在 wheel 內不需再按裝, 但需要有  Visual C++ Redistributable Packages for Visual Studio 2013.

Mac 與 Linux follow 下面方式下窄即可 (出處:https://pypi.org/project/pyzbar/)
Mac OS X:
brew install zbar
Linux:
sudo apt-get install libzbar0
Install this Python wrapper; use the second form to install dependencies of the command-line scripts:
pip install pyzbar

沒有留言:

張貼留言

Ether.FI 神卡 https://www.ether.fi/@46933474

 Ether.FI 真的是神卡 有買US Amazon  或穩定幣的很適合辦一張 我的推薦碼 https://www.ether.fi/@46933474