Skip to main content

A simple, optional tool for PaddleOCR Detection, direction classification and recognition on CPU and GPU using torch.

Project description

EasyPaddleOCR

A simple, optional tool for PaddleOCR Detection, direction classification and recognition on CPU and GPU using torch.

Usage

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

Additional Notes:

This repository was originally the Fork of https://github.com/WenmuZhou/PytorchOCR

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easypaddleocr-0.2.1.tar.gz (129.0 kB view hashes)

Uploaded Source

Built Distribution

easypaddleocr-0.2.1-py3-none-any.whl (185.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page