https://github.com/pk5ls20/easypaddleocr
A simple package for PaddleOCR on CPU and GPU using PyTorch
https://github.com/pk5ls20/easypaddleocr
ocr ocr-python paddleocr paddlepaddle pytorch
Last synced: 8 months ago
JSON representation
A simple package for PaddleOCR on CPU and GPU using PyTorch
- Host: GitHub
- URL: https://github.com/pk5ls20/easypaddleocr
- Owner: pk5ls20
- License: agpl-3.0
- Created: 2023-12-16T23:09:42.000Z (about 2 years ago)
- Default Branch: paddleocr2torch_release
- Last Pushed: 2025-03-03T13:36:21.000Z (10 months ago)
- Last Synced: 2025-04-16T03:55:36.678Z (8 months ago)
- Topics: ocr, ocr-python, paddleocr, paddlepaddle, pytorch
- Language: Python
- Homepage: https://pypi.org/project/easypaddleocr
- Size: 23.7 MB
- Stars: 11
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# EasyPaddleOCR
A simple, optional tool for **PaddleOCR Detection, direction classification and recognition on CPU and GPU using torch**.
## Usage
```python
import cv2
import numpy as np
from easypaddleocr import EasyPaddleOCR
easyPaddleOCR = EasyPaddleOCR(use_angle_cls=True, needWarmUp=True)
image_path = 'your-picture-filepath'
image_ndarray = np.array(cv2.imread(image_path))
result = easyPaddleOCR.ocr(image_ndarray)
print(result)
```
## Reference
- https://github.com/WenmuZhou/PytorchOCR
- https://github.com/PaddlePaddle/PaddleOCR
- https://github.com/frotms/PaddleOCR2Pytorch
## Additional Notes:
**This repository was originally the Fork of https://github.com/WenmuZhou/PytorchOCR**