OCR: choose the recognizer language per call (find_text, index_recording, wait_for_change)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 56/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend
Direzione di ricerca
Start with src/utils/ocr.ts and trace how OCR is created and how language handling is reported; then follow the callers in src/tools/findText.ts, src/tools/doctor.ts, and src/utils/recordingIndex.ts. Check how index_recording builds its cache key and how caller options are documented. Done means the selected language is used, unsupported languages report installed options, doctor lists them, and changing language invalidates the index cache.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
OCR always uses the Windows user-profile languages. A recording of a Japanese or German app on an English-profile machine is read with the English recognizer, even when that language pack is installed. There is no way to choose the language per call.
Where
src/utils/ocr.ts:309(OcrEngine::TryCreateFromUserProfileLanguages())src/utils/ocr.ts:72-75(the only language handling is an error hint)- Callers:
find_text,index_recording,wait_for_change(modetext),bug_report, pipelineredact.secrets
Suggested fix
- Add an optional
language(BCP-47, such asja,de-DE) to the OCR helper. UseOcrEngine::TryCreateFromLanguage([Windows.Globalization.Language]::new($lang))and fail clearly whenIsLanguageSupportedis false, listingOcrEngine.AvailableRecognizerLanguages. - Expose it on the callers above (or as one
SCREENCAST_OCR_LANGUAGEdefault plus a per-call override). doctorlists the installed OCR languages.- Include the language in the
index_recordingcache key, so switching languages re-indexes.
Acceptance criteria
-
find_text { language: "de-DE" }uses the German recognizer when installed - An uninstalled language returns an error naming the installed ones
-
doctorreports available OCR languages - Index cache is invalidated on language change
Getting started
- Relevant files:
src/utils/ocr.ts,src/tools/findText.ts,src/tools/doctor.ts,src/utils/recordingIndex.ts - Run
npm run docsafter adding the parameter
Filed by repo-audit/feature-ideas at 1ac339f. Severity: medium. Effort: M. audit-key: enhancement|src/utils/ocr.ts|language
- Lingua principale
- TypeScript
- Stelle
- 1
- Fork
- 4
- Merge medio
- 8h 17m
- PR unite (30g)
- 46
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TMHSDigital/screencast-mcp
-
effort: small good first issue priority: medium testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
TMHSDigital/screencast-mcp#351 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
effort: small enhancement good first issue priority: low
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
TMHSDigital/screencast-mcp#380 ·
I maintainer di solito rispondono entro 1 giorno
-
effort: medium enhancement help wanted priority: medium
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
TMHSDigital/screencast-mcp#378 ·
I maintainer di solito rispondono entro 1 giorno
-
Review player: limit a redaction box to a time windowForse già presa @lucky0559 l’ha presa 2 giorni fa. Apertaeffort: small enhancement good first issue priority: medium
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
TMHSDigital/screencast-mcp#377 ·
I maintainer di solito rispondono entro 1 giorno
-
effort: medium enhancement help wanted priority: high
Difficoltà 4/5 1-2 giorni Idoneità per principianti 58/100
TMHSDigital/screencast-mcp#376 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TMHSDigital/screencast-mcp
Issue simili
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
openclaw/openclaw#203385 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nwverse/persona#12800 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
microsoft/playwright#44289 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 Mezza giornata Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno