Skip to main content

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

Project description

FOR ELLIOT (ME):

python -m build`
python -m twine upload dist/* --username __token__
pip install mistral-ocr

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.6.0.tar.gz (4.3 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.6.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mistral_ocr-0.6.0.tar.gz
  • Upload date:
  • Size: 4.3 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.6.0.tar.gz
Algorithm Hash digest
SHA256 fa120f019e0e3a7f72a0c20c3a72b324b345939bf97cc1c1db85910ab46a03ca
MD5 32afbc5e6d3af06b05e5eb40f7af84bc
BLAKE2b-256 e46196f8fdd9f8ffab2171b97e15cf439b50375e05894bd3345c57cff8ea9fbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mistral_ocr-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7fde92d0c9a90b40d20f1142449c1f696a0aded88d52c944fdbf573df685330
MD5 c437230f70edcec8e4cdce123637ad39
BLAKE2b-256 cbec17ef224568be4d583ff01348356983985a5016c4558cb3f4a74699319f8e

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