Preprocess dark IDE screenshots before OCR

オープン 初心者向け
#11 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

core/ocr.py の run_ocr() から始め、次に image_to_data の呼び出し、信頼度しきい値のチェック、および tests/ 配下の既存のテストを確認します。明るい背景のパスや、しきい値と vision フォールバックの動作を変更せずに、暗 images の前処理を追加します。生成した暗い画像を使用する実 vision API 呼び出しのないユニットテストを追加し、OCR 結果と信頼度の処理を確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue help wanted

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() in core/ocr.py preprocesses the screenshot (for example invert or stretch contrast when the image is mostly dark) before image_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.py
  • tests/ for the new case
主要言語
Python
スター
6
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

drizzy765/gitcast のほかの issue

drizzy765/gitcast の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。