Paddle安装
Published:
本文介绍Paddle安装。
https://github.com/PaddlePaddle/PaddleOCR/blob/main/deploy/paddle2onnx/readme_ch.md
conda create -n ppocr python==3.8.19
conda activate ppocr
PaddleOCR Commits: b3e3588af902f5f2d819d52716528f8a7ef00c80
git clone -b main https://github.com/PaddlePaddle/PaddleOCR.git
cd PaddleOCR && python3 -m pip install -e .
python3 -m pip install paddle2onnx
python3 -m pip install onnxruntime
pip install paddlepaddle
~/workspaces/ppocr/PaddleOCR
python3 tools/infer/predict_system.py \
--use_gpu=False --use_onnx=True --det_model_dir=./inference/det_onnx/model.onnx \
--rec_model_dir=./inference/rec_onnx/model.onnx \
--cls_model_dir=./inference/cls_onnx/model.onnx \
--image_dir=./deploy/lite/imgs/
oth:
https://github.com/open-mmlab/mmocr/tree/main?tab=readme-ov-file
https://paddlepaddle.github.io/PaddleOCR/latest/ppocr/overview.html#pp-ocrv4
