python 识别二维码/条形码
python 识别二维码/条形码
1. 安装包
pip install -y pillow -i https://mirrors.aliyun.com/pypi/simple/
pip install -y pyzbar -i https://mirrors.aliyun.com/pypi/simple/
2. 使用
from PIL import Image
# 如果导入报错,安装工具: apt install -y zbar-tools
from pyzbar.pyzbar import deco
原创
2022-05-06 16:27:29 ·
1558 阅读 ·
0 评论