i have code below ;
import cv import time cv.namedwindow("camera", 1) capture = cv.capturefromcam(0) while true: img = cv.queryframe(capture) cv.showimage("camera", img) if cv.waitkey(10) == 27: break
the above code opencv-2.2's own cam capture script python. know nothing wrong program. , can use cam different applications on linux program called cheese. when compile program error below;
(camera:2519): gstreamer-critical **: gst_debug_add_log_function: assertion `func != null' failed (gst-plugin-scanner:2521): gstreamer-warning **: failed load plugin '/usr/lib64/gstreamer-0.10/libgstbcmdec.so': /usr/lib64/gstreamer-0.10/libgstbcmdec.so: undefined symbol: gst_video_format_new_caps
i'm guessing there wrong gstreamer. there way fix this? or there problem opencv-2.2 itself? or maybe wrong sample script?
thank time.
that symbol should provided package gstreamer-plugins-base.
check if have installed. if have it, means version of package older opencv 2.2 needs. it's best update entire gstreamer on platform sure.
Comments
Post a Comment