-
Search before asking
QuestionIn all of the implementations I saw, we are using a line or a polygon to keep track of the count of objects. But let say in case of traffic surveillance for a intersection where we have to keep count of all the vehicles(possibly a counter for each category of vehicle). AdditionalIf we have unique id for each object detected and we are also detecting the class it belongs to, then can we not just use the unique id to keep count of each object along with the class it belongs to? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap. |
Beta Was this translation helpful? Give feedback.
-
Let me move that issue into our Q&A section. |
Beta Was this translation helpful? Give feedback.
-
Hi @quirrelHK 👋🏻! The short answer is yes. You can use This is especially happening when you have crowded scenes. Or scenes where there is some form of occlusion when an object disappears behind some other object and reemerges on the other side with a new id. In those cases, if you simply use the count of unique ids you will be way off. Counting objects crossing the line is much easier from that perspective because your |
Beta Was this translation helpful? Give feedback.
-
@AT9991, the quick workaround is to have two lines - one for each candy type. Then you filter detections = ...
detections_0 = detections[detections.class_id == 0]
detections_1 = detections[detections.class_id == 1] And use |
Beta Was this translation helpful? Give feedback.
Don't get me wrong. There are things you can do to improve your counter results, but it all depends on the scene you are trying to solve. Unless you are using single-stage trackers like FairMOT (where your detector and tracker form a single neural network), you probably have separate detection components and separate tracking components. In a setup like that, tracking success is pretty much dependent on the detection result. Low-hanging fruit is to work on the detector: