# 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
```bash
pip install atai-image-tool
```
## Usage
```bash
# 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:
```python
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
Raw data
{
"_id": null,
"home_page": "https://github.com/AtomGradient/atai-image-tool",
"name": "atai-image-tool",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "ocr, image, text, extraction, ai",
"author": "AtomGradient",
"author_email": "AtomGradient <alex@atomgradient.com>",
"download_url": "https://files.pythonhosted.org/packages/ec/e9/3371797d90647c6152de6f3cc959bb1aa4dd7bcefbe0d7c61fd4902afd66/atai_image_tool-0.0.2.tar.gz",
"platform": null,
"description": "# ATAI Image Tool\n\nA command line tool to extract text from images using OCR and either save the results as JSON or print to console.\n\n## Installation\n\n```bash\npip install atai-image-tool\n```\n\n## Usage\n\n```bash\n# Basic usage with output to JSON file\natai-image-tool input.jpg output.json\n\n# Print OCR results to console (no output file)\natai-image-tool input.jpg\n\n# Specify languages (default is English), other languages need to download the models\natai-image-tool input.jpg output.json --languages ch_sim\n\n# Show help\natai-image-tool --help\n```\n\n## Python API\n\nYou can also use ATAI Image Tool as a Python library:\n\n```python\nfrom atai_image_tool import extract_image_content, save_as_json\n\n# Extract text from an image\ntext = extract_image_content(\"input.jpg\")\n\n# Print the text\nprint(text)\n\n# Or save the text as JSON\nsave_as_json(text, \"output.json\")\n```\n\n## License\n\nMIT\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Extract text from images using OCR and save to JSON or print to console",
"version": "0.0.2",
"project_urls": {
"Bug Tracker": "https://github.com/AtomGradient/atai-image-tool/issues",
"Homepage": "https://github.com/AtomGradient/atai-image-tool"
},
"split_keywords": [
"ocr",
" image",
" text",
" extraction",
" ai"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f53b5fc1f604ff1e9b5e96fa38453abaa9f049c1a9ebf6bb81e3acb2c09f6829",
"md5": "39c3f2952ff96f4049054f25bf2bb839",
"sha256": "15a8cc9277539db5ab901edf452aca399ed39b9617d469fbfd42e28085bb038f"
},
"downloads": -1,
"filename": "atai_image_tool-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "39c3f2952ff96f4049054f25bf2bb839",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4597,
"upload_time": "2025-02-27T05:14:21",
"upload_time_iso_8601": "2025-02-27T05:14:21.106586Z",
"url": "https://files.pythonhosted.org/packages/f5/3b/5fc1f604ff1e9b5e96fa38453abaa9f049c1a9ebf6bb81e3acb2c09f6829/atai_image_tool-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ece93371797d90647c6152de6f3cc959bb1aa4dd7bcefbe0d7c61fd4902afd66",
"md5": "47a27999176f0f0e5a81f18e93516792",
"sha256": "6d7c310e76f0da4afc2780e338a9b063dfa6743ad8221f4fd780bfb8f2b96dda"
},
"downloads": -1,
"filename": "atai_image_tool-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "47a27999176f0f0e5a81f18e93516792",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4032,
"upload_time": "2025-02-27T05:14:23",
"upload_time_iso_8601": "2025-02-27T05:14:23.574503Z",
"url": "https://files.pythonhosted.org/packages/ec/e9/3371797d90647c6152de6f3cc959bb1aa4dd7bcefbe0d7c61fd4902afd66/atai_image_tool-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-27 05:14:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AtomGradient",
"github_project": "atai-image-tool",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "atai-image-tool"
}