Skip to content
项目

关于

A powerful OCR (Optical Character Recognition) package that uses state-of-the-art vision language models

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

inspired 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

  1. Install Ollama
  2. 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

input-image

Output Markdown

output-markdown.png

Input Image2

input-image

Output JSON

output-json.png

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

探索相关项目

加载中…