Skip to content

Desktop OCR severely corrupts screenshot text and breaks screen search #8130

Closed

Description

@Git-on-my-level

Bug description

Omi Desktop's local screenshot OCR is currently producing heavily corrupted text for otherwise readable macOS screenshots. This also appears to break local Rewind/search recall: exact user-visible phrases do not match because the OCR text is mangled before indexing.

Environment observed

  • App/API: local Omi Desktop API on macOS (http://127.0.0.1:47778)
  • CLI: omi-cli 0.3.0
  • Local status at time of repro:
    • screen_history_available: true
    • ~690 indexed screenshots
    • screenshot retrieval works via omi --json local screenshot <id> --output ...

Reproduction commands

omi --json local status
omi --json local tools
omi --json local sql "SELECT COUNT(*) AS total, SUM(CASE WHEN ocrText IS NOT NULL AND length(trim(ocrText))>0 THEN 1 ELSE 0 END) AS with_ocr, ROUND(AVG(length(ocrText)),1) AS avg_chars FROM screenshots"
omi --json local screenshot 659 --output /tmp/omi-659.jpg
omi --json local search-screen "Can you update omi CLI" --days 1

Observed SQL summary:

{
  "total": "694",
  "with_ocr": "131",
  "avg_chars": "2127.8"
}

Evidence / examples

Example 1: Hermes screenshot

The visible text in the screenshot is clearly readable and includes:

Can you update omi CLI? Check if you can still use it to look at omi screenshots and OCR. Then spot check OCR quality for me

Stored OCR preview for the same screenshot:

Can you update ¢%miCLP. Check rf w)u can uS* it M Wat scréénsh0ts3nd IXR. Thèn spot check OCR ¢Wityfor mè v
New ses$ion
C*) you update CLP. Cts¢k rf you can Siill use it to at screenshotsaThJ OCR. Then spot ¢Wk CCR
ality for me

Major errors:

  • omi CLI -> ¢%miCLP / CLP
  • you -> w)u
  • still use it to look at -> uS* it M Wat
  • screenshots and OCR -> scréénsh0ts3nd IXR
  • OCR quality -> CCR ality / ¢Wity

Search impact: querying the visible phrase did not find the screenshot:

omi --json local search-screen "Can you update omi CLI" --days 1

Result:

{
  "results": [],
  "reason": "No matching screen-history results for \"Can you update omi CLI\" in the last 1 day(s). Local history exists (... screenshot(s), ... indexed)"
}

A query for the corrupted token miCLP did hit the SQL fallback and found the screenshot IDs, suggesting the underlying stored OCR text is the blocker.

Example 2: Telegram screenshot

Visible UI/text includes readable strings like:

PXMX Dev 5 - Omi Stability
Cronjob Response: Self-Improvement Loop
Yes, it makes sense. I set it up.
Do we have a regression test for the "tasksStore.loadTasks" feedback...

Stored OCR sample:

PXMX S-Oml siabMy-1379381
PXMX Dw5. OmSStalxllty
CfDnlob Re5powe: Self.lrnprwnem Loop12hl
Ves. It make5 5erEe. I set l¢ up.

Major errors:

  • Omi Stability -> S-Oml siabMy / OmSStalxllty
  • Cronjob Response -> CfDnlob Re5powe
  • Self-Improvement Loop -> Self.lrnprwnem Loop12hl
  • Yes, it makes sense -> Ves. It make5 5erEe

Example 3: Cursor / code screenshot

Visible text includes readable development prose and terminal output such as:

backend (dev-down/dev-up, which preserves emulator data via export/import) so 8000 now runs the new code.
To test in the app
Open Memories in Omi Dev. New memories created from now on will be tiered...

Stored OCR sample:

bDckeTrJ Idev•(kw. pre5erves ewl•tor dLta vla expirtlAwrtl $0 8000 rw runs tr r• C4ide.
Illlw)rle5 kn ¢knI DEv. wmrle5 cn*ted f rn• on ¥tll be ttsred 1"5hort-tert &th the clock Icon.

Major errors:

  • backend -> bDckeTrJ
  • dev-up / dev-down corrupted into punctuation-heavy text
  • emulator data via export/import -> ewl•tor dLta vla expirtlAwrtl
  • Omi Dev -> ¢knI DEv
  • memories created from now on will be tiered mostly unreadable

Expected behavior

OCR for normal desktop screenshots should preserve enough text fidelity for:

  1. Human-readable OCR previews.
  2. Exact-ish search over visible words/phrases.
  3. Reliable semantic search embeddings over screen history.

Actual behavior

OCR is often character-substitution heavy (o/0, m/rn, i/l, $/s, random ¢, ¥, accents, punctuation), so readable UI/code/chat text becomes noisy enough that search misses obvious visible phrases.

Notes

The screenshot image retrieval path itself appears to work. The issue seems localized to OCR extraction quality and/or preprocessing before OCR/indexing, not to screenshot capture or local API access.

Activity

  1. added
    bug
    retrieval-action
    on Jun 23, 2026
  2. added a commit that references this issue on Jun 23, 2026
    848ffa4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdesktopmacOSretrieval-action

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions