supervision
supervision copied to clipboard
Add support for limiting the number of instances in a video
Search before asking
- [X] I have searched the Supervision issues and found no similar feature requests.
Description
Currently, the Supervision library provides tools for tracking objects in a video, but there is no built-in support for limiting the number of instances. This can be useful in scenarios where we want to restrict the number of detections for a particular class, for example, in a football video, we want to limit the number of players to 22 maximum, for any given time, there are maximum 22 players on the field, so there should not be a no.23 tracker id.
because there are collisions of players in the video, so there will be mistracking happening. if a no.23 tracker id appears, and a no.10 tracker id disappears, and the distance of the two players are relatively close, then it's saft to say no.10 becomes no.23, we need to update tracker id 23 to 10.
Use case
This is particularly useful to track players on a sports field.
Additional
No response
Are you willing to submit a PR?
- [X] Yes I'd like to help by submitting a PR!