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
- Google Vision API
- Tesseract
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c75e4f550a7b07da328f54c529041365da553292a0480224f12c1b15955502cb
|
|
| MD5 |
aa37bf038f1f93000dc1bc16aadcb8d0
|
|
| BLAKE2b-256 |
4d9d7868d87627f8b2444ef3a62fa2b8a91aac05d631cbd2bd1262e932a27820
|
Provenance
The following attestation bundles were made for ocroy-0.1.2.tar.gz:
Publisher:
publish.yml on ftnext/ocroy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocroy-0.1.2.tar.gz -
Subject digest:
c75e4f550a7b07da328f54c529041365da553292a0480224f12c1b15955502cb - Sigstore transparency entry: 178005928
- Sigstore integration time:
-
Permalink:
ftnext/ocroy@0aa0ea45d21418c56aa2b4eca949cebc200d1596 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/ftnext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0aa0ea45d21418c56aa2b4eca949cebc200d1596 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a17d725379baf3f7e7dd048834008d2ad3f9be9aa9e27261a92c137319d3a3d0
|
|
| MD5 |
c18aa6364f0ce3d7e32494946d5b8720
|
|
| BLAKE2b-256 |
89c1541fcce8bda0558af9039c87320c6f6cba1ba044e7664248f7b477cb40e0
|
Provenance
The following attestation bundles were made for ocroy-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on ftnext/ocroy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocroy-0.1.2-py3-none-any.whl -
Subject digest:
a17d725379baf3f7e7dd048834008d2ad3f9be9aa9e27261a92c137319d3a3d0 - Sigstore transparency entry: 178005930
- Sigstore integration time:
-
Permalink:
ftnext/ocroy@0aa0ea45d21418c56aa2b4eca949cebc200d1596 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/ftnext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0aa0ea45d21418c56aa2b4eca949cebc200d1596 -
Trigger Event:
release
-
Statement type: