pip install free_ocr
from free_ocr import ocr
api_key = "your-together-ai-api-key" # Together AI API key
file_path = "./trader-joes-receipt.jpg" # path to your image
markdown = ocr(file_path, api_key=api_key)
print(markdown)
This package is based on the free Llama 3.2 endpoint from Together AI, which parses images and returns Markdown content.
-
Web Llama OCR demo: LlamaOCR.com
-
llama-OCR Official Repo: github.com/Nutlope/llama-ocr