Skip to main content

Extract text from images using OCR and save to JSON or print to console

Project description

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)
atai-image-tool input.jpg output.json --languages en zh

# 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

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

atai_image_tool-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atai_image_tool-0.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file atai_image_tool-0.0.1.tar.gz.

File metadata

  • Download URL: atai_image_tool-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for atai_image_tool-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0a94edca18700a1a482f1ce2bb9c3d04beca8b4898fb72405578aff89bffac2b
MD5 07a53d2b99f6eace6065eba52a52da68
BLAKE2b-256 eaeb1e0b6bbbd09a242a6347edc146307756882b2d614a666a30ff4520634bca

See more details on using hashes here.

File details

Details for the file atai_image_tool-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for atai_image_tool-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c3a1eb7f39203c5ab55f0c7dded4673672d6c1585394513fc9f92b7709e3281
MD5 5e1a63a216f4f5c256d2652460f07b47
BLAKE2b-256 8944a9140f6ae00aa42b0a8cdac4c6c876174536ad1ea171014b5e75e677780a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page