Skip to main content

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)

Source distribution for atai-image-tool 0.0.2
File Size Uploaded
atai_image_tool-0.0.2.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for atai-image-tool 0.0.2
File Interpreter ABI Platform
atai_image_tool-0.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page