Skip to main content

Switch optical character recognition (OCR) tools easily

Project description

ocroy

おしろい (O-shi-ro-i)

Ocroy is a wrapper of Japanese(日本語) OCR (optical character recognition) tools.
It allows for easy switching of tools🍰

⚠️Under developing (Currently, planning phase)

Supported tools

Setup

Google Vision API

Set up your Google Cloud project and authentication
https://cloud.google.com/vision/docs/ocr#set-up-your-google-cloud-project-and-authentication

Recommended

% uvx --with 'ocroy[google]' ocroy google_api path/to/image --handle-document

Or install this library and dependencies

% pip install 'ocroy[google]'

Then Run:

% ocroy google_api path/to/image --handle-document
% # OR
% python -m ocroy google_api path/to/image --handle-document
% # OR
% python -m ocroy.recognizers.google_vision_api path/to/image --handle-document

Tesseract

Install
https://tesseract-ocr.github.io/tessdoc/Installation.html

Install this library and dependencies

% pip install 'ocroy[tesseract]'

Then Run:

% ocroy tesseract path/to/image
% # OR
% python -m ocroy tesseract path/to/image
% # OR
% python -m ocroy.recognizers.tesseract path/to/image

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

ocroy-0.1.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

ocroy-0.1.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file ocroy-0.1.2.tar.gz.

File metadata

  • Download URL: ocroy-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ocroy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c75e4f550a7b07da328f54c529041365da553292a0480224f12c1b15955502cb
MD5 aa37bf038f1f93000dc1bc16aadcb8d0
BLAKE2b-256 4d9d7868d87627f8b2444ef3a62fa2b8a91aac05d631cbd2bd1262e932a27820

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocroy-0.1.2.tar.gz:

Publisher: publish.yml on ftnext/ocroy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ocroy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ocroy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ocroy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a17d725379baf3f7e7dd048834008d2ad3f9be9aa9e27261a92c137319d3a3d0
MD5 c18aa6364f0ce3d7e32494946d5b8720
BLAKE2b-256 89c1541fcce8bda0558af9039c87320c6f6cba1ba044e7664248f7b477cb40e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocroy-0.1.2-py3-none-any.whl:

Publisher: publish.yml on ftnext/ocroy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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