IdeaCredIdeaCred

code-vygr/local-llm-ocr-ollama

30

🖼️ Extract text from images locally using Ollama's LLMs—100% free, offline, and private. No API keys or cloud costs necessary.

What's novel

🖼️ Extract text from images locally using Ollama's LLMs—100% free, offline, and private. No API keys or cloud costs necessary.

Code Analysis

3 files read · 2 rounds

A single 80-line Python script that base64-encodes a local image or downloads one from a URL and sends it to a hardcoded Ollama vision model (qwen2.5vl:3b) to extract text.

Strengths

The three functions are small, focused, and the base64 encoding + Ollama chat call pattern is straightforward and correct. The prompt engineering for text extraction is slightly thoughtful (asking to preserve order, not miss faint text).

Weaknesses

Zero error handling (no file checks, no HTTP validation, no Ollama connection errors), no tests, no CLI, hardcoded model and file paths, and the README describes a full GUI application with installers that does not exist in the code. The docstring for image_to_text_from_url incorrectly references 'deepseek-r1' while the code uses 'qwen2.5vl:3b'.

Score Breakdown

Innovation
2 (25%)
Craft
38 (35%)
Traction
8 (15%)
Scope
20 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+0
Concept Novelty+0

Craft

Ci-1
Tests-2
Polish+0
Releases+0
Has License+0
Code Quality+8
Readme Quality+15
Recent Activity+7
Structure Quality+4
Commit Consistency+2
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+2

Scope

Commits+3
Languages+3
Subsystems+0
Bloat Penalty+0
Completeness+4
Contributors+6
Authored Files+4
Readme Code Match+3
Architecture Depth+3
Implementation Depth+8

Evidence

Commits

6

Contributors

2

Files

8

Active weeks

3

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

2

Forks

0

License