Skip to main content

A tool for OCR using Mistral. Ensure your MISTRAL_API_KEY is exported or in ~/.zshrc or ~/.bashrc

Project description

Mistral OCR

A command-line tool for performing OCR (Optical Character Recognition) using Mistral.

Installation

You can install this package directly from the repository:

pip install .

Or if you want to install in development mode:

pip install -e .

Prerequisites

This package requires Tesseract OCR to be installed on your system:

macOS

brew install tesseract

Ubuntu/Debian

sudo apt-get install tesseract-ocr

Windows

Download and install from: https://github.com/UB-Mannheim/tesseract/wiki

Usage

After installation, you can use the mistral-ocr command from anywhere:

mistral-ocr path/to/image.jpg

Options:

  • -o, --output: Specify output file (default: prints to stdout)
  • -v, --verbose: Increase output verbosity

Example:

mistral-ocr image.jpg -o extracted_text.txt

License

This project is licensed under the MIT License.

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

mistral_ocr-0.3.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

mistral_ocr-0.3.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file mistral_ocr-0.3.0.tar.gz.

File metadata

  • Download URL: mistral_ocr-0.3.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mistral_ocr-0.3.0.tar.gz
Algorithm Hash digest
SHA256 819925c89b985816e56539a9db3aebb838cf505c032a86d0aaaa8aac0a71d529
MD5 6571beddfa4a88e11a89a8e9ca2ebda1
BLAKE2b-256 0a52c84a2c32ef393463808e520bafd4e32a27e0f48d64d26790469bcafeb83b

See more details on using hashes here.

File details

Details for the file mistral_ocr-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mistral_ocr-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mistral_ocr-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffaeda8e6df2f7f53dcc40d7959d85b524125dd518ff4d9488d9e5b5d7841296
MD5 38b25ec76da2b8aaa0c2444d502924ea
BLAKE2b-256 a3f939fc930be0a1f7796fe58f3b8eb0e1932151db6565a2c9648acb6cb1b24a

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