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' (to call the implementation directly, 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'; from the registry, opsdrive.get("ball_detect"))

Usage

Extracts ball candidates from an image: threshold → connected components → brightness-weighted subpixel centroid, equivalent radius, fill fraction.

> The detailed description below is the original text — the summary and the headings are translated.

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

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• 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 the type connects to (they accept table as input)

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

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. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

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