I am trying to create small application in C++ that will return probability value (real number from 0 to 1) for recognizing two pictures in video. My idea is to find commercials in certain video material. I was thinking to cut first frame from commercial as well as the last one. In that way I could create app, using OpenCV, that will load a video (TV content) and then it will search for the first frame catted from commercials. If it finds it (with probability more than SOME_PARAMETER) than app can conclude that that commercials starts there. Then I would like to search for the last frame and if it's found (again with probability more than SOME_PARAMETER) than the app can conclude that wanted commercial really exists in given video. This is just an idea. I am expert in C++ but totally newbie with OpenCV. If someone can point me out, or give an example it would be much appreciated. Of course I am open to any suggestions regarding idea. Thanks,
M.