Quick Start
Install¶
1. Install PaddlePaddle¶
If you don't have a basic Python runtime environment, please refer to Running environment preparation.
Since the GPU needs to be installed and used according to the specific CUDA version, the following only takes the Linux platform, pip installation of NVIDIA GPU, CUDA11.8 as an example. For other platforms, please refer to the instructions in PaddlePaddle official website installation document.
Use by code¶
Output will be a list, each item contains bounding box, text and recognition confidence:
Output will be a list, each item contains bounding box, text and recognition confidence:
Output will be a list, each item contains recognition text and confidence:
Output will be a list, each item only contains bounding box:
Output will be a list, each item contains recognition text and confidence:
Output will be a list, each item contains classification result and confidence
Use by command line¶
Show help information
Output will be a list, each item contains bounding box, text and recognition confidence
pdf file is also supported, you can infer the first few pages by using the page_num parameter, the default is 0, which means infer all pages
Output will be a list, each item contains bounding box, text and recognition confidence
Output will be a list, each item contains text and recognition confidence
Output will be a list, each item only contains bounding box
Output will be a list, each item contains text and recognition confidence
For more detailed documentation, please go to: PaddleOCR Quick Start
Online Demo¶
- PP-OCRv4 online experience:https://aistudio.baidu.com/aistudio/projectdetail/6611435
- SLANet online experience:https://aistudio.baidu.com/community/app/91661
- PP-ChatOCRv3-doc online experience:https://aistudio.baidu.com/community/app/182491
- PP-ChatOCRv2-common online experience:https://aistudio.baidu.com/community/app/91662
- PP-ChatOCRv2-doc online experience:https://aistudio.baidu.com/community/app/70303
Other resources¶
- One-Click Call for 17 Core PaddleOCR Models
- One line of code quick use: Text Detection and Recognition (Chinese/English/Multilingual)
- One line of code quick use: Document Analysis