Ask Your Question
0

Video processing to detect a logo in frames

asked 2017-12-05 12:55:19 -0600

Tina  J gravatar image

updated 2017-12-05 14:23:13 -0600

I am trying to detect a TV channel logo inside a video file, so simply given an input .mp4 video, detect if it has that logo present in all (or most) of frames or not (or maybe what percentage of frames include that logo). My aim is to classify ad and video portions (I noticed ads do not have the logo).

We have that logo in advance and the location is always fixed, so I believe the problem can be trivial to just a matching problem.

I have no prior knowledge about OpenCV. Can it do this task?

enter image description here

enter image description here

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
3

answered 2017-12-06 08:34:37 -0600

VxW gravatar image

template matching could work, but then you have to train every logo. If the logo changes you have to retrain etc.

I would generate a time averaged frame this means every region becomes more and more grey over time except the logo which should be stable. Afterward you can apply edge detection or thresholding to identify the region of the logo.

averaged frame

The source of the image and a related paper to this topic can be found here

edit flag offensive delete link more
1

answered 2017-12-05 13:41:01 -0600

A couple methods come in mind.

  1. Most TV logos are located on the edges of the frame. So a naive way is just looking for any sort of text along the frame corners.

  2. This is a very good use case for template matching. You pretty much have to gather images consisting of your logos and let the algorithm do the rest.

  3. Feature extraction is another good candidate for this.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-12-05 12:55:19 -0600

Seen: 44 times

Last updated: Dec 06