Skip to content

SSzzPP/mistral-ocr-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mistral-ocr-bot

Use the Mistral OCR for processing PDFs and images to markdown.

Installation

Install the required dependencies:

pip install mistralai

Usage

  1. Set up your Mistral API key
  2. Edit environment variable and replace "Your_API_KEY"
  3. Run the script
python mistral_ocr.py

Output Files

The script will create a folder named ocr_results_[PDF filename] in the working directory, containing:

  • complete.md: The extracted text content in markdown format
  • images/: (if images are found): A directory containing any extracted images

About

Use the Mistral OCR for processing PDFs and images to markdown.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages