Skip to main content

A tool for OCR using Mistral

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.2.0.tar.gz (2.9 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.2.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mistral_ocr-0.2.0.tar.gz
  • Upload date:
  • Size: 2.9 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.2.0.tar.gz
Algorithm Hash digest
SHA256 af478bf745733b11de0862f5df933a1d6287af92e965f19f8539999cca2939a2
MD5 3c6d039c43966ae4e9ef6a9e95e3d0c6
BLAKE2b-256 7e1fffa61a5eaa50074ea430208b4540ff92275b3e60aab673990afb3483b5cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mistral_ocr-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f2f401a39774fd8c0777782f1ae281231e774057db9e96450abfb19cd03f53
MD5 c221546f37211101a71db051c337dbd1
BLAKE2b-256 67ded8e492d33a54257b21cf1b2df9a39b32c231e92125963bfcc065ba2ba102

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