How to assign specific character to detected objects ?
1 view (last 30 days)
Show older comments
Hello, I want to count the number of object in my video. But the code that I have written, count all object in frames, so repeated objects will be count. My idea is to assign specific character to detected objects to avoid counting repeated object. But it is just an idea. How I can do this?? Please help me
0 Comments
Answers (1)
Jacopo Remondina
on 4 Oct 2018
It's not time efficent, and it can lead to many errors (fake positives), but in your situation, I would track any detected object coordinates (X,Y) in each frame. If two couples of subsequent coordinates are very near each other, I would not count it (probably an object just moved a bit), otherwise yes (probably a new object). As already written, if an object exit the screen and then it come again it, it's gonna be counted again.
Let me know if it's applicable to your application.
Jacopo
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!