ball_detect — DRIVE balltrack op

• Data kinds: image2d → table

• Call: import fullseye as fs; fs.ledger.ball_detect(image, *, mode: 'str' = 'bright', thresh=None, color=None, color_tol: 'float' = 0.25, radius_range=(1.5, 80.0), max_candidates: 'int' = 8) -> 'list' (implementation को सीधे call करना हो तो import balltrack; balltrack.ball_detect(image, *, mode: 'str' = 'bright', thresh=None, color=None, color_tol: 'float' = 0.25, radius_range=(1.5, 80.0), max_candidates: 'int' = 8) -> 'list', registry से लेना हो तो opsdrive.get("ball_detect"))

उपयोग

image से गेंद के candidates निकालता है: threshold → connected components → brightness-weighted subpixel centroid, equivalent radius, fill fraction।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

mode = "bright"(明るい塊、thresh 既定 = 平均 + 2σ)/ "dark"(暗い塊)/ "color"(color (3,) との RGB 距離 < color_tol)/ "chroma"(明るさで正規化した色の距離 < color_tol: 陰影に強い)。返り値 = [{"col", "row", "radius", "area", "fill", "score"}, …](score 降順、fill = 面積 / 外接円の面積で球らしさ)。半径が radius_range の外の塊は捨てる。

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• poc_ball_bounce — py -3.11 examples/poc_ball_bounce.py

• poc_driving_longitudinal — py -3.11 examples/poc_driving_longitudinal.py

• poc_driving_school — py -3.11 examples/poc_driving_school.py

• poc_driving_weather — py -3.11 examples/poc_driving_weather.py

• poc_kendama — py -3.11 examples/poc_kendama.py

• poc_table_tennis_bounce — py -3.11 examples/poc_table_tennis_bounce.py

• poc_table_tennis_spin — py -3.11 examples/poc_table_tennis_spin.py

वे अगले ops जिनसे type जुड़ता है (table को input के रूप में लेते हैं)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

इसी category के (balltrack)

ball_track · kalman_ca · triangulate_dlt · track_triangulate · bounce_detect · marker_direction · spin_from_markers · spin_from_marker_sequence


*Provenance: balltrack.py — DRIVE operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.