Open LapisRaider opened 8 months ago
Deepsort uses Kalman Filter, which gives the best compromise between a prediction and a measurement. Prediction is made from the past state to the present state
estimating the state of the system using past observations/data and current measurements. Mean and variance of our tracking estimation (previous data to estimate) and the mean and variance of the equations on motions to give us an estimate then combine to give us the optimal estimation. Cause speed may change, its not always constant.
How the deepsort works:
features = self.encoder(_vidFrameData, bboxes_xywh) # get appearance features of obj
detections = [Detection(bbox, score, feature, label) for bbox, score, feature, label in zip(bboxes_xywh, scores, features, labels)]
self.deepsortTracker.predict()
self.deepsortTracker.update(detections)
self.objsInFrames.append([])
Weak perspective camera inputs
Weak perspective makes it so the depth in a normal perspective camera will linearly scale the objects at a further distance instead of relying on the projection matrix.
It is a custom class created by VIBE and inherits from
pyrender.Camera
. It takes in 2 main parameter, ascale
andtranslation
New projection matrix created
Only affects x and y axis.
The x coordinates seems to be inversed if you move the camera's coordinates