Repository navigation
Conversation
…rate (#8130) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…8130) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Superseded by #8134, which merged the OCR accuracy fix for #8130 and goes further by forcing accurate Vision OCR + language correction, removing the user-facing OCR quality downgrade path, adding the battery cadence behavior, and covering the OCR policy with tests. I compared the diffs: the code changes in this PR are covered/replaced by #8134. The only remaining unique change here is an unreleased changelog entry, which does not seem worth a follow-up/cherry-pick PR by itself. |
|
Hey @kodjima33 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! 💜 |
Bug (#8130)
Desktop Rewind's local screenshot OCR produces heavily corrupted text for readable macOS screenshots (
omi CLI→¢%miCLP,you→w)u,Omi Stability→OmSStalxllty), which also breaks local screen search/recall — exact visible phrases return no results because the indexed OCR text is mangled.Root cause
RewindOCRService.extractTextWithBoundsis configured for maximum speed at the expense of fidelity:recognitionLevel = .fastby default (rewindOCRFastdefaults totrue). Vision's.fastpath is character-detection based and produces exactly the reportedo/0,m/rn,l/i,$/ssubstitution soup.usesLanguageCorrection = false— this overrides Vision's own framework default oftrue, removing the language-model post-processing that fixes those substitution errors.Together they give the worst-possible OCR fidelity for the dominant Rewind content (UI/chat/prose), and the garbled text is what gets indexed for search and embeddings.
Fix
usesLanguageCorrection = true(restores Vision's default; directly reduces substitution errors).rewindOCRFastdefaulttrue→false) across the three sites that read it (RewindOCRService,RewindModelssettings model,RewindOnlyViewpicker). The existing Settings → OCR Quality: Fast / Accurate picker still lets users choose Fast ("less CPU") if they prefer.Perf is bounded: OCR is already throttled (every-Nth-frame + perceptual dedup), runs at
.utility/.backgroundpriority off the main thread, and is paused on battery by default (pauseOCROnBattery), so accurate OCR mostly runs on AC power. This is a different subsystem from the VideoChunkEncoder/memory cluster in #8127.Verification
xcrun swift build -c debug— build complete, no new warnings/errors.Note for reviewers
The
.fast→.accuratedefault flip is a deliberate CPU/battery-vs-accuracy tradeoff. Given screen search is currently non-functional for visible text, defaulting to Accurate seems right, but the tradeoff is your call — the language-correction line alone is a safe, isolated subset if you'd rather not flip the default.🤖 automated by hourly watchdog; opened for review, not merged.