Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

GLib-GObject-CRITICAL error in code Saving specific (matching) frames from a whole video

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.

click to hide/show revision 2
retagged

updated 2014-01-08 07:56:19 -0600

berak gravatar image

GLib-GObject-CRITICAL error in code Saving specific (matching) frames from a whole video

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.