Skip to content

Project Clone

1. Clone PaddleOCR

1
2
3
4
5
6
7
8
# Recommend
git clone --depth 1 https://github.com/PaddlePaddle/PaddleOCR

# If you cannot pull successfully due to network problems, you can switch to the mirror hosted on Gitee:

git clone --depth 1 https://gitee.com/paddlepaddle/PaddleOCR

# Note: The mirror on Gitee may not keep in synchronization with the latest project on GitHub. There might be a delay of 3-5 days. Please try GitHub at first.

A shallow clone downloads only the latest revision of the default branch. Add --branch <branch-name> when cloning to select another branch. To retrieve the full commit history later, run git fetch --unshallow inside the repository.

2. Install third-party libraries

cd PaddleOCR
pip3 install -r requirements.txt

If you getting this error OSError: [WinError 126] The specified module could not be found when you install shapely on windows.

Please try to download Shapely whl file from http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely.

Reference: Solve shapely installation on windows

Comments