美文网首页
Python在Linux下打包OpenCV库

Python在Linux下打包OpenCV库

作者: 渣渣曦 | 来源:发表于2020-10-23 16:47 被阅读0次

1、安装tesseract

apt-get install tesseract-ocr

2、安装 python3-devel

sudo yum install python3-devel

3、安装python的opencv库

pip3 install opencv-python

4、安装python的ocr库

pip3 install pytesseract
pip3 install imutils

5、安装打包工具

pip3 install pyinstaller

6、把python文件打包成一个单一可执行文件

pyinstaller --onefile myocr.py

相关文章

网友评论

      本文标题:Python在Linux下打包OpenCV库

      本文链接:https://www.haomeiwen.com/subject/nmgvmktx.html