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.5.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.5.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mistral_ocr-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 9a8eb07585d61d45ce9faa5e9361a387203da36c0a20fdd0af5e95781c9bfdd5
MD5 35d223c253a7ba1661f3d80ef18252ff
BLAKE2b-256 d1ba6fc6e5de6c1b7c6056e2ea5b4dc9a3d8fdb66e12cc33228b3043079c57dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mistral_ocr-0.5.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d142c32461b308385c538bbc8ca56311ae866536ea9ab6f6032a7abe03759dc0
MD5 58b838a832a5ecb20c514d1e96c953d3
BLAKE2b-256 dfe2fa7527c40c464b604dfbab51a4200f104ec808e5a834615a3e869d92f491

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