Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are “min_hits” and “hit_streak” parameters? #104

Open
jainpulkit54 opened this issue May 23, 2020 · 4 comments
Open

What are “min_hits” and “hit_streak” parameters? #104

jainpulkit54 opened this issue May 23, 2020 · 4 comments

Comments

@jainpulkit54
Copy link

@abewley First of all thanks for this wonderful piece of work...it literally gave me insights into object tracking...just one question for you...can you please tell me for what are the “min_hits” and “hit_streak” parameters for?
I tried a lot to understand but could not figure it out?
Just one more request please give an elaborate description of it!!!

Thanks in advance!!!

@jainpulkit54
Copy link
Author

@cygerts Could you also please chip in?

@tadbeer
Copy link

tadbeer commented Jun 1, 2020

hit_streak is quite literally a track's hit streak. By hit, a match of a track with a new detection is implied. So for a given track, hit_streak is the total number of times it consecutively got matched with a detection in the last frames.
min_hits is the minimum value of hit streak of a track, required, such that it gets displayed in the outputs.

@LMerCy
Copy link

LMerCy commented Sep 23, 2020

hit_streak is quite literally a track's hit streak. By hit, a match of a track with a new detection is implied. So for a given track, hit_streak is the total number of times it consecutively got matched with a detection in the last frames.
min_hits is the minimum value of hit streak of a track, required, such that it gets displayed in the outputs.

Is this used to remove some false positive in only unconsecutive frame, but this will cause re-entering problem?If one frame is miss detected, once it has been detected again, due to the hit_streak, it wont displayer once. And actually the tracker hasn't been removed, why not just display them?

@ManuelZ
Copy link

ManuelZ commented Feb 11, 2025

@LMerCy I noticed the same. It makes more sense to me to have a condition like tracker.hits >= self.min_hits. Maybe this idea was considered and for some reason discarded, because in the code I can see the attribute called self.hits which is incremented with each call to update and never resets to zero. But this attribute doesn't get used in the rest of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants