Closed ghost closed 1 year ago
Hi @avadhut-00!
Great application using Norfair. These days we discuss with the team different approaches to this problem and reply again.
Is it useful for your application to have the history of past detections of each TrackedObject
returned by the update
method or do you think of another solution?
Currently, this is partially possible, each TrackedObject
has an attribute called past_detections
, you can adjust the length of this in the tracker instantiation tracker = Tracker(..., past_detections_length=x, ...)
. The problem with this history for your application is that the detections are distributed equally spaced in time. For this reason, this attribute could be problematic unless your detections history keeps under a certain x
number and the past_detections
attribute can store all detections.
Let us know if you think of another solution or additional information that will be useful for the internal discussion. Greetings.
Hey @avadhut-00, we opened a PR to give the user the speed estimation for each TrackedObject
from the Kalman filter.
You can find more information in the description of this PR, we hope it merges in these days.
Greetings!
Is your feature request related to a problem? Please describe. I want to be able to perform speed estimation along with the tracking of the objects detected by Norfair. Is there a way we can currently go about implementing this with the current version of Norfair library
Describe the solution you'd like Knowing the history of x,y co-ordinates of bounding boxes detected on an image...associated with a particular object registered by Norfair... if this history can be accessed ...it would then be possible to calculate distance covered ( after camera calibration for a particular scene ) .Currently I do not see any way of accessing this history by direct interaction with the objects created by the tracker.update() method
Describe alternatives you've considered I do not know if there is any other way to go about getting the distance covered over a time frame...Please let me know if there is...
Additional context