Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Track circles detected by HoughCircles without duplicates or false positives

My project detect the circular heads of enemies as they come into view in a game. The problem is the enemies are detected each frame which means each time is as if there is a new enemy, but in reality its the same enemy, but they moved. So the trick here is that I need to be able to detect the enemies using hough circles, but only to add a tracker to them so I can track them as single individual enemies.

There are a lot of problems with this though. First when do I run the hough circle detection to get the enemies? If I run it each frame it potentially finds the same enemies I already added a tracker to. Also it could add ones I removed trackers from because the enemy was hit, but for a few frames were still in the ROI and thus a tracker added to it again.

Lastly I am unsure which tracking algorithm is best to use for this. I tried MIL and am trying KCF, but without a good system for determining how to detect them once and track after I keep getting a bunch of false positives and duplicates.