PaddlePaddleOCR安装教程


            1.首先下载并安装python3.7.8

             链接地址:

             注:安装时Add path勾选

            2.进入命令提示符界面          

            3.升级pip版本

             python -m pip install --upgrade pip

            4.安装PaddlePaddle

            python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple

            5.检查PaddlePaddle是否成功

            python

            import paddle.fluid as fluid
            fluid.install_check().run_check()

            出现Your Paddle Fluid is installed successfully! Let's start deep Learning with Paddle Fluid now,表示安装成功

            6.下载shapely安装包

            7.拷贝shapely安装包到Python安装目录下的libs文件夹

              进入该目录后,执行pip install Shapely-1.7.1-cp37-cp37m-win_amd64.whl

            8.使用git工具下载运行库

               git clone https://github.com/PaddlePaddle/PaddleOCR

              或者:git clone https://gitee.com/paddlepaddle/PaddleOCR

           9.进入下载库PaddleOCR文件夹

              python -m pip install -r requirements.txt

           10.下载训练库

                ch_ppocr_mobile_v1.1_rec_infer.tar

                ch_ppocr_mobile_v1.1_cls_infer.tar

                ch_ppocr_mobile_v1.1_det_infer.tar

               解压后拷贝到对应的文件夹中(新建文件夹,名字一定不要错哦),

               

                 

           11.测试实例

              python tools/infer/predict_system.py --image_dir="./doc/imgs/11.jpg" --det_model_dir="./inference/ch_ppocr_mobile_v1.1_det_infer/"  --rec_model_dir="./inference/ch_ppocr_mobile_v1.1_rec_infer/" --cls_model_dir="./inference/ch_ppocr_mobile_v1.1_cls_infer/" --use_angle_cls=True --use_space_char=True --use_gpu=False

            12.显示结果

            

            终于把坑填满了,HAHA

           2020-12-29

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM