Ask Your Question
2

Hot to detect logo region in video?

asked 2013-02-07 23:46:21 -0600

alex1306 gravatar image

Hi,

I have video. I need to detect logo region( x y width height). Region=red rectangle. image description

I do not know in advance how the logo looks like, I do not have its picture.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-02-08 05:56:53 -0600

Since you do not know the logo beforehand, the problem cannot be solved easy. What you could do is look for regions in the video where no difference exists between different frames of the video input. Since a logo is mostly fixed at a certain position in the video, this would give you possible interesting regions.

Then in that region you can apply multiple approaches: 1) Template matching using that logo if the situation provides it - adaptable for each new logo 2) Perform OCR on the region and maybe try to extract text - save texts to file and later select which text is interesting depending on characteristics.

Just some suggestions, but I would suggest to first define better what you actually want, since detecting any object, with no prior information is kinda impossible I guess. You will always have to give some input.

edit flag offensive delete link more

Comments

I think about searching region with no difference. But how can I do it (I use python) ? I only need detect logo region, so I need data: X coordinate of the top left corner of the logo region, Y coordinate of the top left corner of the logo region, width of the logo region, height of the logo region.

alex1306 gravatar imagealex1306 ( 2013-02-08 07:22:01 -0600 )edit
1

Like I suggested you need to define you're strategy better. First things is reading through documentation. However these could be steps to follow: - Create a capture stream from a video - Store first frame - Storge second frame - Subtract both frames from eachother (identical images will create a 0. - Segement regions based on this 0. - Grow smaller regions together. - Find bounding box

If yoy have tried this, and you still have questions, report back with progress.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-02-08 07:35:42 -0600 )edit
1

answered 2013-02-08 02:49:03 -0600

If the logo isn't affected by transformations (projection, difference of scale, etc.) you should test template matching (samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp) The first parameter is your image, the second you template to search (ie. your logo). the logo

The logo

Result

The result (red rectangle).

Otherwise, it is more complex (transformations involve) you can use SIFT/SURF/etc. See Features2D + Homography in the doc.

edit flag offensive delete link more

Comments

Main condition: I don't know before video processing how the logo looks like. So I can't make and use any template. That is the salt of problem.

alex1306 gravatar imagealex1306 ( 2013-02-08 07:18:09 -0600 )edit

Question Tools

Stats

Asked: 2013-02-07 23:46:21 -0600

Seen: 1,151 times

Last updated: Feb 08 '13