I want to continuously compare a video with a set of frames I have and save the sae frames occuring in that long video. I have tried using SURF and FLANN matching , but the video is not getting captured in the first place and i am getting following error :
(<unknown>:14784): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed Didnt Find Video File... OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /home/vuadmin/OpenCV-2.3.1/modules/imgproc/src/color.cpp, line 2834 terminate called after throwing an instance of 'cv::Exception' what(): /home/vuadmin/OpenCV-2.3.1/modules/imgproc/src/color.cpp:2834: error: (-215) scn == 3 || scn == 4 in function cvtColor
And i also get the GLib-GObject-CRITICAL error while trying out the starter_video.cpp in the Opencv/samples/cpp folder.
Please help me to figure out the issue.