美文网首页
PPOCRLabel安装和使用

PPOCRLabel安装和使用

作者: lizg | 来源:发表于2023-06-04 18:08 被阅读0次

注意:下面步骤区分了不同的系统,分别为windows和macos m1,请安装系统版本安装软件。

一、安装

1.安装anaconda(window,其他系统可百度查询)

https://blog.csdn.net/weixin_42855758/article/details/122795125
注:windows10从控制台直接进入Anaconda Prompt环境:https://blog.csdn.net/qq_22210659/article/details/103114375

2.创建conda环境

2.1 windows

conda create -n py37 python=3.7
conda activate py37

2.2 macos m1

conda create -n py37
conda activate py37
conda config --env --set subdir osx-64
conda install python=3.7

3.安装 paddlepaddle

pip3 install --upgrade pip
python -m pip install paddlepaddle==2.3.2 -i https://pypi.tuna.tsinghua.edu.cn/simple

4.安装 PPOCRLabel

4.1 windows

pip install PPOCRLabel

4.2 macos m1

pip3 install PPOCRLabel
pip3 install opencv-contrib-python-headless==4.2.0.32 -i https://mirror.baidu.com/pypi/simple

二、使用

1.启动软件

PPOCRLabel --lang ch

2.导入文件

image.png

3.标注

PPOCRLabel可以自动标注,在PPOCRLabel自动标注完成后再对标注错误的文字进行修改,点击已识别文字框或者新增“矩形标注”,可在对应的识别结果区域进行修改。对图片完成标注后点击右下角确认按钮即可保存标注结果。


image.png

4.导出结果

标注结果保存在样本目录下,文件名为Label.txt:


image.png image.png

相关文章

网友评论

      本文标题:PPOCRLabel安装和使用

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