How to assign specific character to detected objects ?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Jacopo Remondina
2018-10-4
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!