Skip to main content

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

ocr-genai-beta-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

ocr_genai_beta-0.0.1-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file ocr-genai-beta-0.0.1.tar.gz.

File metadata

  • Download URL: ocr-genai-beta-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for ocr-genai-beta-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ea6a09efec2c595c9434315e9defb4df0aa508e992dfdb4b5b208cfcaf1b22c6
MD5 4990cb33bb91e99e429307a445de8b79
BLAKE2b-256 9380bd6f90bd174ae02a4da378e0df2ad5011fa96450a1496872ef229913467e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocr_genai_beta-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for ocr_genai_beta-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6510b8fbdb613b1141f6321592d652ed2ed26aa771e7d70c7104ab9cc3ce9823
MD5 37574dd47fbd8b92a4c305d1afec5d33
BLAKE2b-256 b27a66fddc20c612642dea0d55305a43fc7cb63e5cbfd9661c57f987c9c3bbcb

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