class

GS::Vision::DetectorTracker

Inherits Reference < Object

Combined detector + tracker for video processing

Constructors

new(detector_config : DetectorConfig = DetectorConfig.vehicles, tracker_config : TrackerConfig = TrackerConfig.new)
Source

Instance methods

active_tracks

Get active tracks

Source
get_track(id : Int32) : Track | Nil

Get specific track

Source
get_track_history(track_id : Int32) : Array(Tuple(Float64, Detection))

Get track history for 3D reconstruction

Source
load_model(path : String) : Bool

Load YOLO model

Source
loaded?

Check if model is loaded

Source
process(frame : Video::Frame) : Array(Detection)

Process single frame

Source
process(image : Tensor, timestamp : Float64 = 0.0) : Array(Detection)

Process image tensor

Source
release

Release resources

Source
reset

Reset tracker state

Source