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.4.0.tar.gz (3.1 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.4.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mistral_ocr-0.4.0.tar.gz
  • Upload date:
  • Size: 3.1 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.4.0.tar.gz
Algorithm Hash digest
SHA256 458bd65b250903f453c433e8f020c87d2dd810858929871c2456d220328c9616
MD5 4d9632ced89ccf5b431de9ec72f55efc
BLAKE2b-256 89d496377cbb3e90ddcb2bd4ad569639315a866636a24069d10d6441dc79f8e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mistral_ocr-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a566c2d39d34dbe1c3204c697f1b98750a3f9ef4699eafff52c35e60d17b4f93
MD5 4955c3d5a9e532efada899ed115aad87
BLAKE2b-256 a486f0f596503b0ce69e3e1c083a7663c7cb211b3ad56e0ba5700b6b5ccb7cb7

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