← All questionsWhich local model through Ollama is actually decent at reading spines off a bookshelf photo?
About Ollama and Python
bookshelf-ocr misses about one in five. I've tried the small vision models and they either hallucinate titles or give up on anything at an angle. Not sending photos of my shelves to a cloud API on principle.
Replies
The general vision models are the wrong tool for this. Run a real OCR model first (I use one off Hugging Face, the PaddleOCR-style ones handle rotated text) to get the raw strings, then hand the strings to the language model to clean up into titles. Two steps, way fewer hallucinations.
Sep 2Isaac B., lars and Gia F. agree
Also rotate the image 90 degrees and run it again. Spines are mostly vertical text and half the models only read horizontal. Take the union of both passes.
Sep 3Isaac B. and Kat H. agree
The bigger vision models do fine if you crop tight. Split the shelf into strips of five or six spines and send each one instead of the whole shelf.
Sep 3Isaac B. agrees
Trying all three. Rotate-and-union alone took it from one in five to about one in eight. The OCR-first pipeline is next.
Sep 5Kat H. agrees
Sign in to reply.
Replies sit in the order people agree with them; the ones the asker marks “helped” lead. Names, never a number.