Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

mistral-ocr

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mistral-ocr

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

pipPyPI
Version
0.6.0
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts