Ask Your Question

OpenCV Image(object) detection in video

asked 2014-05-08 07:09:24 -0500

mamrkov gravatar image

I'm trying to recognize image(object) in every frame of video(picture by picture). I have a image of the object and want to find the rect where it is in every frame of the video. I was using feature detection (openCV) but it's not going well. Objects like TVs(objects which are one color) aren't recognized. So my question is which is best solution to do that? Are there some APIs which can use to find a image in picture?

edit retag flag offensive close merge delete


Did you try SVM approach ?

FLY gravatar imageFLY ( 2014-05-08 07:12:35 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-05-08 08:17:58 -0500

3 possible approaches

  1. SVM + HOG like @FLY suggested
  2. Cascade classifier training using the Viola&Jones algorithm
  3. Bag of words object recognition if your object doesn't change alot
edit flag offensive delete link more


I think that SVM is memory consuming and i want to use it on iphone. Although i didn't find tutorial how to add train images after recognizing the object while the process is working. So do you think that best approach is SVM with 3 trained images let say?

mamrkov gravatar imagemamrkov ( 2014-05-09 02:26:31 -0500 )edit

SVM with 3 images isn't a good idea, I suggest BOW approach there. However do not expect to find ready made tutorials for online SVM learning, it is an active research topic but there is no 'meal served on a plate' here :)

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-09 02:37:38 -0500 )edit

So do you think that if i have just a few images(up to 3) i can have good results (>85% recognition) with BOW approach? And what time you think i need to process a video about a minute 30 fps on IOS device? Thanks in advance i'm just trying to see if this is possible and applicable in real situation.

mamrkov gravatar imagemamrkov ( 2014-05-09 04:16:21 -0500 )edit

Object detection isn't just guessing how good it will work. Simply said, make an implementation and then see how good it performs, like all of us do. As to 30 FPS on handheld with object recognition, forget it :)

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-09 05:58:20 -0500 )edit

I mean that i have captured the video , make a circle over the object in three random frames and after that process the video. After processing i want to see the position of the object in every frame (circle or rectangle). What do you think about that?

mamrkov gravatar imagemamrkov ( 2014-05-09 07:50:45 -0500 )edit

LIKE I SAID, go do trial and error! It is impossible to predict if it will work or not without testing...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-09 08:14:10 -0500 )edit

Ok, thank you a lot !!!

mamrkov gravatar imagemamrkov ( 2014-05-09 08:26:10 -0500 )edit

Question Tools


Asked: 2014-05-08 07:09:24 -0500

Seen: 351 times

Last updated: May 08 '14