ATAI Image Tool
A command line tool to extract text from images using OCR and either save the results as JSON or print to console.
Installation
pip install atai-image-tool
Usage
# Basic usage with output to JSON file
atai-image-tool input.jpg output.json
# Print OCR results to console (no output file)
atai-image-tool input.jpg
# Specify languages (default is English), other languages need to download the models
atai-image-tool input.jpg output.json --languages ch_sim
# Show help
atai-image-tool --help
Python API
You can also use ATAI Image Tool as a Python library:
from atai_image_tool import extract_image_content, save_as_json
# Extract text from an image
text = extract_image_content("input.jpg")
# Print the text
print(text)
# Or save the text as JSON
save_as_json(text, "output.json")
License
MIT
Metadata
Release files for atai-image-tool 0.0.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 | Provenance | Actions |
|---|---|---|---|---|
| atai_image_tool-0.0.2.tar.gz | 4.0 kB | Without provenance | Details for atai_image_tool-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atai_image_tool-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for atai_image_tool-0.0.2-py3-none-any.whl |
Total release size: 8.6 kB
Release files / atai_image_tool-0.0.2.tar.gz
| Download URL | atai_image_tool-0.0.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d7c310e76f0da4afc2780e338a9b063dfa6743ad8221f4fd780bfb8f2b96dda
|
|
BLAKE2b-256 checksum How to use checksums |
ece93371797d90647c6152de6f3cc959bb1aa4dd7bcefbe0d7c61fd4902afd66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / atai_image_tool-0.0.2-py3-none-any.whl
| Download URL | atai_image_tool-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15a8cc9277539db5ab901edf452aca399ed39b9617d469fbfd42e28085bb038f
|
|
BLAKE2b-256 checksum How to use checksums |
f53b5fc1f604ff1e9b5e96fa38453abaa9f049c1a9ebf6bb81e3acb2c09f6829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for atai-image-tool 0.0.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.