Preprocess dark IDE screenshots before OCR
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
core/ocr.py の run_ocr() から始め、次に image_to_data の呼び出し、信頼度しきい値のチェック、および tests/ 配下の既存のテストを確認します。明るい背景のパスや、しきい値と vision フォールバックの動作を変更せずに、暗 images の前処理を追加します。生成した暗い画像を使用する実 vision API 呼び出しのないユニットテストを追加し、OCR 結果と信頼度の処理を確認します。
索引モデルが issue の本文から書いたものです。
説明
Dark IDE screenshots often come back from Tesseract below the confidence threshold in core/ocr.py, so Gitcast falls through to the vision model. Preprocess the image before OCR so light text on a dark background is readable.
Leave this issue unassigned.
Acceptance criteria
-
run_ocr()incore/ocr.pypreprocesses the screenshot (for example invert or stretch contrast when the image is mostly dark) beforeimage_to_data. - A light-background screenshot still OCRs without the preprocess making the text worse.
- Confidence is still compared to
get_ocr_threshold(). Low-confidence results still tell the caller to use the vision fallback. - A unit test covers the dark-image preprocess with a generated image, without calling a live vision API.
Files
core/ocr.pytests/for the new case
- 主要言語
- Python
- スター
- 6
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
drizzy765/gitcast のほかの issue
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
drizzy765/gitcast の issue をすべて見る
似ている issue
-
request_access
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
blocker bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
achisolomon/software-factory#305 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
erkamyaman/rust-anything#963 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
commonmark/commonmark-spec#850 ·
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100