1 | initial version |
IMHO the problems are the following:
You have applied the background subtraction, so you have now detections (ore regions of interest). So I am thinking of an approach like this for each detection:
For this you shall have some database of some images of that car in different positions and do the matching with all the features in your database. The matching threshold should be set based on some test. You have used a kalman filter for tracking, so you can use it for tracking, if you do not want to count the detection in each frame, but every time it enters in your field of view after it's out. Hope it is helpful.