class

GS::Vision::Track

Inherits Reference < Object

Tracked object

Constructors

new(id : Int32, detection : Detection)
Source

Instance methods

age=(age : Int32)
Source
class_id
Source
class_id=(class_id : Int32)
Source
class_name

Get class name

Source
confirmed?(min_hits : Int32) : Bool

Is track confirmed (enough hits)?

Source
current_detection

Get current detection

Source
dead?(max_age : Int32) : Bool

Should track be deleted?

Source
history

History for 3D reconstruction

Source
history=(history : Array(Tuple(Float64, Detection)))

History for 3D reconstruction

Source
hits
Source
hits=(hits : Int32)
Source
id=(id : Int32)
Source
iou(detection : Detection) : Float32

Compute IoU with detection

Source
mark_missed

Mark as missed this frame

Source
misses
Source
misses=(misses : Int32)
Source
predict(dt : Float32)

Predict next state

Source
state
Source
state=(state : LibCoreML::GSKalmanTrack)
Source
update(detection : Detection, timestamp : Float64)

Update with matched detection

Source