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.1.1.tar.gz (2.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.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocr-genai-beta-0.1.1.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

Hashes for ocr-genai-beta-0.1.1.tar.gz
Algorithm Hash digest
SHA256 01a06e360a4d478d86f214fa1f9f63bae9828ebe8d471af4e80a914d20ba384b
MD5 80c17848840f3a6828112305607d7823
BLAKE2b-256 bb0d90b92e9b6f96295455b512cee6e5e4dc08830c50baeaa9ef3b05f7138e45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocr_genai_beta-0.1.1-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

Hashes for ocr_genai_beta-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d206b090b1c45d0ac19f3f196d2dde4a573574d00a0d12706111b03fb497609c
MD5 b7511ecfbd47097c402e2fb9db2a9407
BLAKE2b-256 b211dcc2064281cd354aad92dbf4432cd3fb002692194ad72e0a1cfac2536b2e

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