프로젝트
GitHub에서 보기
Nutlope/llama-ocr
소개
Llama 3.2 Vision으로 문서를 Markdown으로 변환하는 OCR 라이브러리
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalInstallation
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!
관련 프로젝트 살펴보기
불러오는 중…