2022. 6. 13. 11:19ㆍOCR/PaddleOCR
1. Installation
- conda activate paddle_env
1.1 Install PaddlePaddle
If you do not have a Python environment, please refer to Environment Preparation.
- If you have CUDA 9 or CUDA 10 installed on your machine, please run the following command to install
-
python3 -m pip install paddlepaddle-gpu
- If you have no available GPU on your machine, please run the following command to install the CPU version
-
python3 -m pip install paddlepaddle
For more software version requirements, please refer to the instructions in Installation Document for operation.
패키지버전 확인 및 설치
开始使用_飞桨-源于产业实践的开源深度学习平台
www.paddlepaddle.org.cn
GPU없는 노트북에서 확인 결과
1.2 Install PaddleOCR Whl Package
pip install "paddleocr>=2.0.1" # Recommend to use version 2.0.1+
- For windows users: 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 here.
- Reference: Solve shapely installation on windows
- For layout analysis users, run the following command to install Layout-Parser
-
pip3 install -U https://paddleocr.bj.bcebos.com/whl/layoutparser-0.0.0-py3-none-any.whl
CUDA 버전 확인
CMD 프로그램에서 nvcc --version
패키지 설치 오류
pip install "paddleocr>=2.0.1"
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"
파이썬에서 모듈을 설치할 때 아래와 같은 에러가 발생하는 경우가 있는데요.
error: Microsoft Visual C++ 14.0 or greater is required.

이런 경우에는 c++ 14.0 이상의 버전을 설치해주면 해결이 가능합니다.
c++ 설치를 위해서 위 마이크로소프트 공홈으로 접속하여 c++ 설치 파일을 다운로드 받으면 됩니다.

위 페이지로 접속하면 visualstudiosetup 파일이 자동으로 다운로드 됩니다.

만약 다운로드가 되지 않는다면, 수동으로 다운로드를 받아주시면 됩니다.

파일을 다운로드 받은 후 실행을 해주세요.


Visual studio installer 를 실행한 후 필요한 모듈들을 설치해주면 됩니다.
설치 후 리붓하라고 하는데
리붓 후 다시 하면 정상
'OCR > PaddleOCR' 카테고리의 다른 글
4. PaddleOCR - 테스트 1 (0) | 2022.06.13 |
---|---|
3. PaddleOCR - 샘플코드 실행 (0) | 2022.06.13 |
1. PaddleOCR - 개발환경 구성 (0) | 2022.06.13 |