balltrack opimage2d → tableimport 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' (実装を直接呼ぶなら 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'、台帳から引くなら opsdrive.get("ball_detect"))画像から球の候補を出す: しきい値 → 連結成分 → 明るさ重みのサブピクセル重心・等価半径・充填率。
mode = “bright”(明るい塊、thresh 既定 = 平均 + 2σ)/ “dark”(暗い塊)/ “color”(color (3,) との RGB 距離 < color_tol)/
“chroma”(明るさで正規化した色の距離 < color_tol: 陰影に強い)。
返り値 = [{"col", "row", "radius", "area", "fill", "score"}, …](score 降順、fill = 面積 / 外接円の面積で球らしさ)。
半径が radius_range の外の塊は捨てる。
py -3.11 examples/poc_ball_bounce.pypy -3.11 examples/poc_driving_longitudinal.pypy -3.11 examples/poc_driving_school.pypy -3.11 examples/poc_driving_weather.pypy -3.11 examples/poc_kendama.pypy -3.11 examples/poc_table_tennis_bounce.pypy -3.11 examples/poc_table_tennis_spin.pytable を入力に取れる)course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same
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 ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.