프로젝트
GitHub에서 보기
dwqs/ollama-ocr
소개
A powerful OCR (Optical Character Recognition) package that uses state-of-the-art vision language models
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalinspired by imanoop7/Ollama-OCR
Ollama OCR for web
A powerful OCR (Optical Character Recognition) package that uses state-of-the-art vision language models through Ollama to extract text from images.
Supported Models
- LLaVA: A multimodal model that combines a vision encoder and Vicuna for general-purpose visual and language understanding, achieving impressive chat capabilities mimicking spirits of the multimodal GPT-4. (LLaVa model can generate wrong output sometimes)
- Llama 3.2 Vision: Instruction-tuned models are optimized for visual recognition, image reasoning, captioning, and answering general questions about an image
- MiniCPM-V 2.6: A GPT-4V Level MLLM for Single Image, Multi Image and Video on Your Phone
Quick Start
Prerequisites
- Install Ollama
- Pull the required models:
ollama pull llama3.2-vision:11b
ollama pull llava:13b
ollama pull minicpm-v:8b
Then run following command:
git clone [email protected]:dwqs/ollama-ocr.git
cd ollama-ocr
yarn or npm i
yarn dev or npm run dev
Docker Supports
you can run the demo from docker: debounce/ollama-ocr
Examples
Input Image1
Output Markdown
Input Image2
Output JSON
Output Format Details
- Markdown Format: The output is a markdown string containing the extracted text from the image.
- Text Format: The output is a plain text string containing the extracted text from the image.
- JSON Format: The output is a JSON object containing the extracted text from the image.
License
MIT
관련 프로젝트 살펴보기
불러오는 중…