A package for performing OCR and interpreting the output using OpenAI and Gemini models.
Project description
OCR Package
This Python package allows you to perform OCR on images using Tesseract and interpret the results using generative AI models like OpenAI's GPT and Google's Gemini.
Installation
To install the package, use:
pip install ocr_genAI
Usage
from ocr_package import perform_ocr, interpret_with_openai, interpret_with_gemini
ocr_output = perform_ocr("image_path.jpg")
openai_response = interpret_with_openai(ocr_output, "your_openai_api_key")
gemini_response = interpret_with_gemini(ocr_output, "your_gemini_api_key")
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ocr-genai-beta-0.1.2.tar.gz.
File metadata
- Download URL: ocr-genai-beta-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa96a80ac575a86e2835da887801629759b738ddf2f0e8967d921a3da1b16db7
|
|
| MD5 |
bd232312e01fae7f8b1aee03c5a1b538
|
|
| BLAKE2b-256 |
6fcd68ba9ab50c547a0da2bb6f70ef1934bdbf39e45369b90c262629ae4114b1
|
File details
Details for the file ocr_genai_beta-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ocr_genai_beta-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cec4e47797ca6c200e3960d088547b966124f773ed31d8d6a06d53bed1b6c373
|
|
| MD5 |
0a674e22935562bc650d2e828e4a5cde
|
|
| BLAKE2b-256 |
e2b9f5f0f39210f700eaf0c06d088e7a461b406a5b6e028c45c478e00ac991c7
|