OCR: choose the recognizer language per call (find_text, index_recording, wait_for_change)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 56/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- backend
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 1
- 派生
- 4
- 平均合并
- 8 小时 17 分钟
- 30 天内合并 PR
- 46
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TMHSDigital/screencast-mcp 的其他 Issue
-
effort: small good first issue priority: medium testing
难度 2/5 1-3 小时 新手友好度 84/100
TMHSDigital/screencast-mcp#351 · 2 条评论 ·
维护者通常 1 天内回复
-
effort: small enhancement good first issue priority: low
难度 3/5 1-2 天 新手友好度 72/100
TMHSDigital/screencast-mcp#380 ·
维护者通常 1 天内回复
-
effort: medium enhancement help wanted priority: medium
难度 4/5 3-5 天 新手友好度 57/100
TMHSDigital/screencast-mcp#378 ·
维护者通常 1 天内回复
-
Review player: limit a redaction box to a time window可能已有人在做 @lucky0559 于 2 天前认领。 未关闭effort: small enhancement good first issue priority: medium
难度 4/5 3-5 天 新手友好度 25/100
TMHSDigital/screencast-mcp#377 ·
维护者通常 1 天内回复
-
effort: medium enhancement help wanted priority: high
难度 4/5 1-2 天 新手友好度 58/100
TMHSDigital/screencast-mcp#376 ·
维护者通常 1 天内回复
查看 TMHSDigital/screencast-mcp 的全部 Issue
相似的 Issue
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
难度 2/5 1-3 小时 新手友好度 76/100
openclaw/openclaw#203385 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
nwverse/persona#12800 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)未关闭
难度 2/5 1-3 小时 新手友好度 62/100
microsoft/playwright#44289 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 半天 新手友好度 65/100
维护者通常 1 天内回复