type
status
date
slug
summary
tags
category
icon
password
Language
这里使用Anaconda来创建环境安装
安装Anaconda
用 Anaconda 新建一个虚拟环境



安装paddlepaddle
进入飞浆官网

通过 Open Terminal 打开对应虚拟环境终端输入下面命令
检查是否安装成功

如果出现
PaddlePaddle is installed successfully!
,说明已成功安装。安装 paddleocr 库
paddleocr 是paddle 下 的一个模块
在新建的虚拟环境中输入
如果出现 ERROR: Could not build wheels for PyMuPDF, which is required to install pyproject.toml-based projects 错误
解决办法 :
使用命令调用OCR
使用PythonFlask调用Paddleocr进行文本识别
安装Flask
pip install flask==3.0.0
代码
运行
运行之后会去下载对应的PP-OCR Series Model
测试
准备一张图片

调用接口

- 作者:何以问
- 链接:https://heyiwen.com/article/ocr-3
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。