Ask Your Question
0

OpenCV Image(object) detection in video

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

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

Comments

Did you try SVM approach ?

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

1 answer

Sort by ยป oldest newest most voted
2

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

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

Comments

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 -0600 )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 -0600 )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 -0600 )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 -0600 )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 -0600 )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 -0600 )edit

Ok, thank you a lot !!!

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

Question Tools

Stats

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

Seen: 464 times

Last updated: May 08 '14