Phase 4: ORB / homography overlap range (v0.4.0)
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- opencv, python
- 領域
- cli, computer-vision
調査の方向性
Read blocked issue #3 first, then start with the new overlap.py and the pure selector in select.py. Trace the existing CLI parsing and output paths for selection.csv and manifest.json. Done means the listed ORB, homography, fallback, selector, bounded-search, precedence, and acceptance checks pass.
索引モデルが issue の本文から書いたものです。
説明
What to build
This is the core product feature. Add overlap.py with pairwise overlap metrics between two analysis-resolution grayscale frames, each returning a float in [0,1] or None on failure:
orb(default): ORB features (orb_nfeatures),Noneif either frame has <20 keypoints, BFMatcher + Lowe ratio (match_ratio),overlap = good_matches / min(nA, nB).homography: same matches, then RANSAC homography with a fixed direction —Hmaps the later/candidate frame B's keypoints into the earlier/last-kept frame A's coordinate space (findHomography(pts_B, pts_A, ...)), consistently built from the matcher's query/train assignment (comment which is which). Warp B's corners throughHinto A's space and compute IoU against A's rectangle as the overlap. Fall back to the ORB match ratio (with a metric-fallback flag) if homography fails — never silently return the wrong-direction value.flow: crude proxyexp(-flow_accum / (0.35 * analysis_width)), fallback-only, never default.none: skip geometric overlap.
Cache ORB descriptors per candidate index for one selection pass.
Add the greedy selector in select.py: pure function taking FrameScore list, config, and an injected overlap_fn(i, j) -> Optional[float] (no OpenCV captures, for testability). Seed = first frame at/above sharpness threshold (not forced to index 0; warn and use global sharpest if none pass). From the last-kept frame, build a candidate pool (frame_index - last <= search_expand_frames OR flow_accum(last→frame) <= 3 * flow_trigger), stop pool growth early after 8 consecutive measured frames below overlap_min - 0.15. Prefer the sharpest in-range candidate; else pick the candidate closest to target_overlap (tie-break: higher sharpness); if no candidate has a measurable overlap, fall back to sharpest in pool with reason fallback-match-failed.
Wire --overlap 70-80 / --overlap-min / --overlap-max / --target-overlap / --overlap-metric parsing (min/max override --overlap with a warning if both given) and make --mode overlap-greedy --overlap-metric orb the new default mode.
Acceptance criteria
- Identical image pair scores overlap ≈ 1 (>0.8) under
orb - Image vs itself shifted ~10% width scores high overlap (>0.6) under
orb - Image vs random noise returns low overlap or
None - Homography direction convention verified with an asymmetric shift (not just symmetric) — IoU reflects B being the frame that moved
- Selector unit test with a fake
overlap_fnand sharpness peaks at indices 0,7,8,15: with range 0.70–0.80 the selector picks the peak sitting in-range over a sharper 95%-overlap peak and a sharper 40%-overlap peak -
--overlap 70-80 --mode overlap-greedy --previewfillsoverlap_with_prevfor every selection except the seed, inselection.csvandmanifest.json -
--overlapvs explicit--overlap-min/--overlap-maxprecedence and warning behavior verified - Search pool early-stop and
search_expand_frames/flow-accum bounding verified (bounded runtime on a long synthetic video)
Blocked by
- #3
- 主要言語
- Python
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bmaltais/gs-frames のほかの issue
-
ready-for-agent
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
ready-for-agent
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
ready-for-agent
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
bmaltais/gs-frames の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TigreGotico/orthography2ipa#2950 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Unstructured-IO/unstructured#4876 ·
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openfoodfacts/openfoodfacts-python#579 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
fairagro/m4.2_sql_to_arc#388 ·
メンテナーはふだん 1 日以内に返信