views:

220

answers:

2

i'm trying to detect car in a video file.i can do background subtraction and the moving cars are visible as foreground object. but i can't draw rectangle around the car. how can i do it?

or how can i say in a particular area of the frame there is a car/or there is no car now.please help.

A: 

check out this blog post

controlfreak123
A: 

If you need to draw lines, circles, poligons, etc., you should use the drawing functions that OpenCV has to help you in this case.

So, (for instance) once you've found each object in the image, look for its center and then draw an ellpise around it.

Federico Cristina