Turning 2,654 phone gallery photos into 512 searchable notes with local OCR and Ollama
- Hardware
- MacBook
- Models & engines
- Ollama with qwen2.5-VL 7B for detailed OCR
EXAONE 3.5 7.8B for summaries and categories - Key gotcha
- The goal was zero missed photos, so unsure cases were kept as candidates for the second pass; catching every book page mattered more than avoiding false positives.
What they built
The author's phone gallery held 2,654 photos, and mixed in with travel shots were book pages, conference slides and documents saved to read later. They turned those into 512 knowledge notes, grouped into 8 wiki topics such as AI, leadership and literature.
Because the gallery also contained photos of their ID and bank account numbers, uploading it to a cloud AI was ruled out. All photo reading happened on their MacBook; Claude Code was used only to write and check the scripts, not to see the photos.
The project won the silver prize in SK Telecom's prompt contest (Life AX track).
Setup
- MacBook
- Apple Vision OCR for the first, cheap pass
- Ollama with qwen2.5-VL 7B for detailed OCR
- EXAONE 3.5 7.8B for summaries and categories
- Python regex filter for personal information (no model calls)
How it works
- Pass 1 counts the characters in every photo with Apple Vision; 782 of 2,654 had more than 50 characters.
- A regex filter blocks any photo that matches phone, card/account, resident-number, ID-document or finance/medical patterns. It stores only the match type, never the matched text, and logs just the file name.
- Consecutive shots of the same book or talk are grouped before OCR, so ten pages become one note and one OCR job instead of ten fragments.
- Pass 2 runs qwen2.5-VL OCR only on the 520 grouped items, then the notes are summarized and categorized locally.
- The work ran as a 20-photo trial, a manual check, then the full run.
Results & numbers
- 782 photos had real text; 96 were blocked right away for personal info, and 5 more items (7 photos) were blocked in pass 2.
- 515 notes came out, 512 after review, and the photo processing itself cost $0.
- Among the 96 blocks: phone 54, card/account 47, finance/medical 29, resident number 18, ID documents 7 (one photo can hit several types).
- An unexpected find: a forgotten photo of a letter to their mom on her 60th birthday became its own note.
Gotchas
- The goal was zero missed photos, so unsure cases were kept as candidates for the second pass; catching every book page mattered more than avoiding false positives.
- The block rule is deliberately strict: if unsure, block it.
- A cloud coding agent wrote the scripts, but it never received the photos; keep that boundary if you copy the approach.
“The gallery also has photos of my ID and bank account numbers. Uploading the whole thing to a cloud AI wasn't an option.”— JustJinoIT
Do it yourself
- Copy the photos you want to process into one folder on your computer.
- Run a fast OCR pass to count characters per photo and keep those above a threshold (the author used 50).
- Add a regex block list for phone, ID, card and account numbers; log only file names and match types.
- Group consecutive shots of the same source before running heavier OCR.
- Run a local vision model in Ollama (the author used qwen2.5-VL 7B) on the grouped items, then a local model to summarize and categorize.
- Try 20 photos first, check them, then do the full run.
From my phone gallery, pick only the photos of book pages, lecture slides
and documents, and turn them into knowledge notes. Follow these rules.
1. All photo processing runs on local AI on my computer (free only).
Never upload my photos to the cloud.
2. The goal is zero missed photos. If unsure, keep it as a candidate
and decide precisely in a second pass.
3. Don't do everything at once: 20-photo trial -> I check -> full run.
4. Photos showing an ID, account or phone number never become notes.
Log only the file name in a block list. If unsure, block it.Similar setups
A CPU-only PDF question-answering API with Ollama, Qwen2.5 1.5B and ChromaDB
A developer who wanted to keep documents inside the private network built a small RAG app on a PC with no active GPU: PDFs are indexed into ChromaDB and a local FastAPI endpoint answers questions with Qwen2.5 1.5B on Ollama.
MapNet: permission-aware local RAG over your folders on a CPU laptop with Ollama
Gal built MapNet, an MIT research prototype that keeps a live map of folders, files and sections so a small Ollama model only reads the few passages it needs, and published where it loses to embedding everything.
A CPU-only PDF assistant that cites the page and refuses to guess
A cloud engineer built a question-answering service over technical PDF manuals that runs entirely on a standard Linux server with no GPU, using Ollama with qwen2.5:3b, and answers only from the documents with file and page citations.
Séance: local Whisper and Gemma 4 turn a grandmother's Malayalam voice notes into a searchable family archive
Clivin John built Séance, which transcribes and translates his grandmother's voice notes on his laptop, has Gemma 4 write memory cards, and answers questions only with her exact, verified words.