1. PaddleOCR - 개발환경 구성

2022. 6. 13. 10:52OCR/PaddleOCR

반응형

https://github.com/PaddlePaddle

 

PaddlePaddle

PaddlePaddle has 82 repositories available. Follow their code on GitHub.

github.com

 

1.개발환경 구성
파이썬 설치 
아나콘다 설치
가상환경 만들기

https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.5/doc/doc_en/environment_en.md

 

GitHub - PaddlePaddle/PaddleOCR: Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and...

github.com

Environment Preparation

Windows and Mac users are recommended to use Anaconda to build a Python environment, and Linux users are recommended to use docker to build a Python environment.

Recommended working environment:

  • PaddlePaddle >= 2.1.2
  • Python 3.7
  • CUDA 10.1 / CUDA 10.2
  • cuDNN 7.6

 

1. Python Environment Setup

 

1.1 Windows

1.1.1 Install Anaconda

  • Note: To use PaddlePaddle you need to install python environment first, here we choose python integrated environment Anaconda toolkit
    • Anaconda is a common python package manager
    • After installing Anaconda, you can install the python environment, as well as numpy and other required toolkit environment.
  • Anaconda download.
    • Address: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/?C=M&O=D
    • Most Win10 computers are 64-bit operating systems, choose x86_64 version; if the computer is a 32-bit operating system, choose x86.exe 
    • After the download is complete, double-click the installer to enter the graphical interface
    • The default installation location is C drive, it is recommended to change the installation location to D drive.
    • Check Conda to add environment variables and ignore the warning that

1.1.2 Opening the terminal and creating the Conda environment

  • Open Anaconda Prompt terminal: bottom left Windows Start Menu -> Anaconda3 -> Anaconda Prompt start console
  • Create a new Conda environmentThis command will create an executable environment named paddle_env with python version 3.8, which will take a while depending on the network status
  • The command line will then output a prompt, type y and enter to continue the installation

conda create --name paddle_env python=3.8 --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

  • # Enter the following command at the command line to create an environment named paddle_env
    # Here to speed up the download, use the Tsinghua source
    conda create --name paddle_env python=3.8 --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ # This is a one line command
  • To activate the Conda environment you just created, enter the following command at the command line.
  • conda activate paddle_env
  • # Activate the paddle_env environment conda activate paddle_env # View the current location of python where python

The above anaconda environment and python environment are installed

 

반응형

'OCR > PaddleOCR' 카테고리의 다른 글

4. PaddleOCR - 테스트 1  (0) 2022.06.13
3. PaddleOCR - 샘플코드 실행  (0) 2022.06.13
2. PaddleOCR - 패키지설치  (0) 2022.06.13