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
Release files for ocroy 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ocroy-0.1.2.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ocroy-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / ocroy-0.1.2.tar.gz
| Download URL | ocroy-0.1.2.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c75e4f550a7b07da328f54c529041365da553292a0480224f12c1b15955502cb
|
|
BLAKE2b-256 checksum How to use checksums |
4d9d7868d87627f8b2444ef3a62fa2b8a91aac05d631cbd2bd1262e932a27820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 6, 2025.
Transparency logRelease files / ocroy-0.1.2-py3-none-any.whl
| Download URL | ocroy-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a17d725379baf3f7e7dd048834008d2ad3f9be9aa9e27261a92c137319d3a3d0
|
|
BLAKE2b-256 checksum How to use checksums |
89c1541fcce8bda0558af9039c87320c6f6cba1ba044e7664248f7b477cb40e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 6, 2025.
Transparency log