Skip to main content

Some third-party OCR services are encapsulated

Project description

OcrGather

OcrGather

Some third-party OCR services are encapsulated
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.

Installation

Pip install

pip install OcrGather

Support List

Service Name Service Provider client name Support
有道OCR 有道 ocr.youdao() Y
讯飞OCR 讯飞 ocr.xfyun() Y
合合OCR 合合信息 ocr.textin() Y
腾讯OCR 腾讯 ocr.tencent() X
阿里OCR 阿里 ocr.aliyun() X
百度OCR 百度 ocr.aliyun() Y
Tesseract X
... ... ...

Quick Start

from OcrGather import ocr 

# create instance 
api_key = os.getenv("API_KEY", "77f89e08f43a86f9")   # api key 
secret_key = os.getenv("SECRET_KEY", "HlmF4vlvwmemBL2tG4wIYiUob3BUjZQ1")  # secret key
client = ocr.youdao(api_key=api_key,secret_key=secret_key)
file_path =  "../assets/1c3d.png"
# 或  file_url ="https://xxx/xxx.png"
mark, text = client.get_text(file_path=file_path)
# 或 client.get_text(file_url=file_url)

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

ocrgather-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocrgather-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file ocrgather-0.1.1.tar.gz.

File metadata

  • Download URL: ocrgather-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.10.1 CPython/3.9.13

File hashes

Hashes for ocrgather-0.1.1.tar.gz
Algorithm Hash digest
SHA256 963f113ca34479eebcbd1ebd22da370512cfabd986a0fed97afeab05784baf13
MD5 508c0deb88090ef5fcd1922467b37b1a
BLAKE2b-256 207b7dcad9c17cbbc48fdc68a2c0e5cf87e8608a7317ae00c431889652a4233d

See more details on using hashes here.

File details

Details for the file ocrgather-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ocrgather-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.10.1 CPython/3.9.13

File hashes

Hashes for ocrgather-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfe99c75dcd3e7d7a7452b1da05ce898a6040a36fe00082332d5cb307d9a5bbd
MD5 2427e6b6aec6e6c4acd6c1ad3f33b939
BLAKE2b-256 a0e2fde371aa0396b19ed16bba2940014a9b199a96104a7b8ddc14fde3f453dc

See more details on using hashes here.

Supported by

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