项目
在 GitHub 查看
Nutlope/llama-ocr
关于
使用 Llama 3.2 Vision 将文档转换为 Markdown 的 OCR 库
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 0
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Installation
npm i llama-ocr
Usage
import { ocr } from "llama-ocr";
const markdown = await ocr({
filePath: "./trader-joes-receipt.jpg", // path to your image (soon PDF!)
apiKey: process.env.TOGETHER_API_KEY, // Together AI API key
});
Hosted Demo
We have a hosted demo at LlamaOCR.com where you can try it out!
How it works
This library uses the free Llama 3.2 endpoint from Together AI to parse images and return markdown. Paid endpoints for Llama 3.2 11B and Llama 3.2 90B are also available for faster performance and higher rate limits.
You can control this with the model option which is set to Llama-3.2-90B-Vision by default but can also accept free or Llama-3.2-11B-Vision.
Roadmap
- Add support for local images OCR
- Add support for remote images OCR
- Add support for single page PDFs
- Add support for multi-page PDFs OCR (take screenshots of PDF & feed to vision model)
- Add support for JSON output in addition to markdown
Credit
This project was inspired by Zerox. Go check them out!
探索相关项目
加载中…