列表格式显示
广告招商中...... 联系方式!
私信 +好友
github : https://github.com/paddlepaddle/paddle
github 中文文档: https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/index_cn.html
https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/pip/windows-pip.html
https://zhuanlan.zhihu.com/p/680347033
https://starcheng.xyz/1173.html
亲测的安装过程:
1.升级pip
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
2.配置清华镜像源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
3.部署百度飞浆CPU版本
python -m pip install paddlepaddle==2.5.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
4.部署PaddleOCR(这里 pip install "paddleocr>=2.0.1" 如果安装了高版本,好像不行 )
pip install "paddleocr>=2.0.1"
PS C:\Users\Administrator> pip install "paddleocr>=2.0.1"
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting paddleocr>=2.0.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2f/ae/11ad6f1663f57d4df18a5ffbf9568340b23a8042d31eccb644f8a43a59ff/paddleocr-2.8.1-py3-none-any.whl (407 kB)
Collecting shapely (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a7/68/0e4b9aab76d2b7f44013dc98aa16c7f9e33dd1b34088140fb15664967e8b/shapely-2.0.6-cp39-cp39-win_amd64.whl (1.4 MB)
Collecting scikit-image (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9d/63/233300aa76c65a442a301f9d2416a9b06c91631287bd6dd3d6b620040096/scikit_image-0.24.0-cp39-cp39-win_amd64.whl (12.9 MB)
Collecting imgaug (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/66/b1/af3142c4a85cba6da9f4ebb5ff4e21e2616309552caca5e8acefe9840622/imgaug-0.4.0-py2.py3-none-any.whl (948 kB)
Collecting pyclipper (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/97/d7/78140d011dbe7887a8205222e0ddfc0fc60a2b6223202b4504de2ebda3e1/pyclipper-1.3.0.post5-cp39-cp39-win_amd64.whl (108 kB)
Collecting lmdb (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/12/7a/f13fedbf12cf7eebdb9da50e902e0e96287a4fb359b6ec85918c938b0133/lmdb-1.5.1-cp39-cp39-win_amd64.whl (105 kB)
Collecting tqdm (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/48/5d/acf5905c36149bbaec41ccf7f2b68814647347b72075ac0b1fe3022fdc73/tqdm-4.66.5-py3-none-any.whl (78 kB)
Collecting numpy<2.0 (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b5/42/054082bd8220bbf6f297f982f0a8f5479fcbc55c8b511d928df07b965869/numpy-1.26.4-cp39-cp39-win_amd64.whl (15.8 MB)
Collecting rapidfuzz (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8b/f8/847b09340cedd2c6394d7d73805b6f1929d35061319fdd06a64bde8031e3/rapidfuzz-3.10.0-cp39-cp39-win_amd64.whl (1.6 MB)
Collecting opencv-python (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ec/6c/fab8113424af5049f85717e8e527ca3773299a3c6b02506e66436e19874f/opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl (38.8 MB)
Collecting opencv-contrib-python (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a7/9e/7110d2c5d543ab03b9581dbb1f8e2429863e44e0c9b4960b766f230c1279/opencv_contrib_python-4.10.0.84-cp37-abi3-win_amd64.whl (45.5 MB)
Collecting cython (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1b/4e/2e676c55da4274ca15342fab67b3b48aa8ba17447495cdaadc67fd37a16c/Cython-3.0.11-cp39-cp39-win_amd64.whl (2.8 MB)
Requirement already satisfied: Pillow in c:\python\python39\lib\site-packages (from paddleocr>=2.0.1) (10.4.0)
Collecting pyyaml (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/19/87/5124b1c1f2412bb95c59ec481eaf936cd32f0fe2a7b16b97b81c4c017a6a/PyYAML-6.0.2-cp39-cp39-win_amd64.whl (162 kB)
Collecting python-docx (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3e/3d/330d9efbdb816d3f60bf2ad92f05e1708e4a1b9abe80461ac3444c83f749/python_docx-1.1.2-py3-none-any.whl (244 kB)
Collecting beautifulsoup4 (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b1/fe/e8c672695b37eecc5cbf43e1d0638d88d66ba3a44c4d321c796f4e59167f/beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)
Collecting fonttools>=4.24.0 (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3c/87/566f79796150029bfce1c93c10adb1c46017fac2caac3996a0a6f73c96e1/fonttools-4.54.1-cp39-cp39-win_amd64.whl (2.2 MB)
Collecting fire>=0.3.0 (from paddleocr>=2.0.1)
Using cached fire-0.7.0-py3-none-any.whl
Collecting requests (from paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl (64 kB)
Collecting termcolor (from fire>=0.3.0->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7f/be/df630c387a0a054815d60be6a97eb4e8f17385d5d6fe660e1c02750062b4/termcolor-2.5.0-py3-none-any.whl (7.8 kB)
Collecting soupsieve>1.2 (from beautifulsoup4->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d1/c2/fe97d779f3ef3b15f05c94a2f1e3d21732574ed441687474db9d342a7315/soupsieve-2.6-py3-none-any.whl (36 kB)
Collecting six (from imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting scipy (from imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3e/77/dab54fe647a08ee4253963bcd8f9cf17509c8ca64d6335141422fe2e2114/scipy-1.13.1-cp39-cp39-win_amd64.whl (46.2 MB)
Collecting matplotlib (from imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/71/a8/9b18bd1fef16f71821c890b4db3697be5102f2b839765d9608479cd33874/matplotlib-3.9.2-cp39-cp39-win_amd64.whl (7.8 MB)
Collecting imageio (from imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1e/b7/02adac4e42a691008b5cfb31db98c190e1fc348d1521b9be4429f9454ed1/imageio-2.35.1-py3-none-any.whl (315 kB)
Collecting networkx>=2.8 (from scikit-image->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d5/f0/8fbc882ca80cf077f1b246c0e3c3465f7f415439bdea6b899f6b19f61f70/networkx-3.2.1-py3-none-any.whl (1.6 MB)
Collecting tifffile>=2022.8.12 (from scikit-image->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3a/4f/73714b1c1d339b1545cac28764e39f88c69468b5e10e51f327f9aa9d55b9/tifffile-2024.8.30-py3-none-any.whl (227 kB)
Collecting packaging>=21 (from scikit-image->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl (53 kB)
Collecting lazy-loader>=0.4 (from scikit-image->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/83/60/d497a310bde3f01cb805196ac61b7ad6dc5dcf8dce66634dc34364b20b4f/lazy_loader-0.4-py3-none-any.whl (12 kB)
Collecting lxml>=3.1.0 (from python-docx->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/bb/ab/68821837e454c4c34f40cbea8806637ec4d814b76d3d017a24a39c651a79/lxml-5.3.0-cp39-cp39-win_amd64.whl (3.8 MB)
Requirement already satisfied: typing-extensions>=4.9.0 in c:\python\python39\lib\site-packages (from python-docx->paddleocr>=2.0.1) (4.12.2)
Collecting charset-normalizer<4,>=2 (from requests->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c5/77/3a78bf28bfaa0863f9cfef278dbeadf55efe064eafff8c7c424ae3c4c1bf/charset_normalizer-3.4.0-cp39-cp39-win_amd64.whl (102 kB)
Requirement already satisfied: idna<4,>=2.5 in c:\python\python39\lib\site-packages (from requests->paddleocr>=2.0.1) (3.10)
Collecting urllib3<3,>=1.21.1 (from requests->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ce/d9/5f4c13cecde62396b0d3fe530a50ccea91e7dfc1ccf0e09c228841bb5ba8/urllib3-2.2.3-py3-none-any.whl (126 kB)
Requirement already satisfied: certifi>=2017.4.17 in c:\python\python39\lib\site-packages (from requests->paddleocr>=2.0.1) (2024.8.30)
Collecting colorama (from tqdm->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting contourpy>=1.0.1 (from matplotlib->imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/53/23/db9f69676308e094d3c45f20cc52e12d10d64f027541c995d89c11ad5c75/contourpy-1.3.0-cp39-cp39-win_amd64.whl (211 kB)
Collecting cycler>=0.10 (from matplotlib->imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting kiwisolver>=1.3.1 (from matplotlib->imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ef/17/cd10d020578764ea91740204edc6b3236ed8106228a46f568d716b11feb2/kiwisolver-1.4.7-cp39-cp39-win_amd64.whl (55 kB)
Collecting pyparsing>=2.3.1 (from matplotlib->imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e5/0c/0e3c05b1c87bb6a1c76d281b0f35e78d2d80ac91b5f8f524cebf77f51049/pyparsing-3.1.4-py3-none-any.whl (104 kB)
Collecting python-dateutil>=2.7 (from matplotlib->imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Collecting importlib-resources>=3.2.0 (from matplotlib->imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e1/6a/4604f9ae2fa62ef47b9de2fa5ad599589d28c9fd1d335f32759813dfa91e/importlib_resources-6.4.5-py3-none-any.whl (36 kB)
Collecting zipp>=3.1.0 (from importlib-resources>=3.2.0->matplotlib->imgaug->paddleocr>=2.0.1)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/62/8b/5ba542fa83c90e09eac972fc9baca7a88e7e7ca4b221a89251954019308b/zipp-3.20.2-py3-none-any.whl (9.2 kB)
Installing collected packages: pyclipper, lmdb, zipp, urllib3, termcolor, soupsieve, six, rapidfuzz, pyyaml, pyparsing, packaging, numpy, networkx, lxml, kiwisolver, fonttools, cython, cycler, colorama, charset-normalizer, tqdm, tifffile, shapely, scipy, requests, python-docx, python-dateutil, opencv-python, opencv-contrib-python, lazy-loader, importlib-resources, imageio, fire, contourpy, beautifulsoup4, scikit-image, matplotlib, imgaug, paddleocr
Attempting uninstall: numpy
Found existing installation: numpy 2.0.2
Uninstalling numpy-2.0.2:
Successfully uninstalled numpy-2.0.2
Successfully installed beautifulsoup4-4.12.3 charset-normalizer-3.4.0 colorama-0.4.6 contourpy-1.3.0 cycler-0.12.1 cython-3.0.11 fire-0.7.0 fonttools-4.54.1 imageio-2.35.1 imgaug-0.4.0 importlib-resources-6.4.5 kiwisolver-1.4.7 lazy-loader-0.4 lmdb-1.5.1 lxml-5.3.0 matplotlib-3.9.2 networkx-3.2.1 numpy-1.26.4 opencv-contrib-python-4.10.0.84 opencv-python-4.10.0.84 packaging-24.1 paddleocr-2.8.1 pyclipper-1.3.0.post5 pyparsing-3.1.4 python-dateutil-2.9.0.post0 python-docx-1.1.2 pyyaml-6.0.2 rapidfuzz-3.10.0 requests-2.32.3 scikit-image-0.24.0 scipy-1.13.1 shapely-2.0.6 six-1.16.0 soupsieve-2.6 termcolor-2.5.0 tifffile-2024.8.30 tqdm-4.66.5 urllib3-2.2.3 zipp-3.20.2
7.验证是否部署成功,本文是在C盘根目录下放一个叫test.png的图片,也可以是其他图片格式,word,pdf都可以。第一次执行会下载库文件,识别中文用 --lang ch,识别繁体用--lang chinese_cht,识别英文用--lang en
paddleocr --image_dir C:\test.jpg --use_angle_cls true --lang ch --use_gpu false
python 的视力代码:
https://www.paddlepaddle.org.cn/lite/v2.9/quick_start/python_demo.html
降NumPy版本为1.x.x,我这里降为1.23.0
pip uninstalll numpy pip install numpy==1.23.0
本页Html网址:/htmlsoft/619439.html
本页aspx网址:/soft.aspx?id=619439&bianhao=202410120135211906_73553&kind1=&kind2=
最后访问时间:
上一篇:flask+paddle ocr+bootstrap搭建OCR文本推理WEB服务 图片转文字
下一篇:phpstudy不解析php
增加