I am trying to create a small C ++ application that will return a probability value (a real number from 0 to 1) for recognizing two images in a video. My idea is to find ads in certain videos. I thought about trimming the first frame with both commercial and last. That way, I could create an application using OpenCV that would download the video (TV content) and then look for the first frame tagged from the advertisement. If he finds it (with a probability of more than SOME_PARAMETER) than the application can conclude that these commercials begin there. Then I would like to find the last frame, and if it is found (again with a probability of more than SOME_PARAMETER) than the application can come to the conclusion that the desired commercial content really exists in this video. This is just an idea. I am an expert in C ++, but new to OpenCV. If someone can point me or give an example, it will be very appreciated. Of course, I am open to any suggestions regarding the idea. Thanks,
M.
source share