from pyzbar import pyzbar
brew update && brew upgrade
brew install zbar
不要pip install zbar。而是下载这个包,修正了mac下的segmentation fault bug
https://github.com/npinchot/zbar
python setup.py install
import pytesseract
brew install tesseract
from pyzbar import pyzbar
brew update && brew upgrade
brew install zbar
不要pip install zbar。而是下载这个包,修正了mac下的segmentation fault bug
https://github.com/npinchot/zbar
python setup.py install
import pytesseract
brew install tesseract