模型部署arrowPic simple_ocr 模型部署教程
simple_ocr 模型部署教程
发布时间:2025-06-30 14:19:16

一、模型介绍

快速识别图片中的英文、标点符号、数学符号、Emoji, 模型会输出图片中文字行的坐标位置、最低得分、识别结果。当前服务用到的模型:检测模型、数字识别、英文符号识别。

image.png

二、部署流程

1.更新基础环境

apt update

2.安装miniconda

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

bash Miniconda3-latest-Linux-x86_64.sh

3.创建虚拟环境

conda create -n simple_ocr python=3.8

conda activate simple_ocr

4.克隆模型

git lfs install
git clone https://www.modelscope.cn/studios/csg800/simple_ocr.git

5.打开文件

cd simple_ocr

6.安装依赖

pip install -r requirements.txt

7.运行模型

export GRADIO_SERVER_NAME=0.0.0.0
export GRADIO_SERVER_PORT=8080
python3 app.py

image.png

三、进入WebUI界面使用

屏幕截图

点击此处,立即体验simple_ocr!

bg-circle
算力加速·赋能科研
2026闲时计算资源公益助研活动进行中
2026年1月1日-2026年12月31
立即申请
新人好礼
客服中心