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

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.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

ocroy-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocroy-0.1.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ocroy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 620eb3210c435650a2fcda84ad322d10c7e98bc085b853b833d5dcda85861029
MD5 031bdb18324898a031e7753dc3d000e8
BLAKE2b-256 355c3061c1bf500b817ac3082a575ef6b054516ac124f672292ec788fd34a5be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocroy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ocroy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d54bdc1ba937aededfbfb69bb564c0fa2bfaaee704b53ea6d74fa60d5ca15db1
MD5 aaad57e5263c9cf0cf60be4c67b698a4
BLAKE2b-256 7ccf5fa6784a6943d2ec64ee6a3a0ef64096e8b7d53fcde44f23fb6a8a6285da

See more details on using hashes here.

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