I need to call Gstremaer inside an openCV code (opening a video camera essentially).
As I looked through the source code, modules/highgui/src/cap_gstreamer.cpp
seems to be the file I'm looking for.
I compiled OpenCV with Gstreamer flag.
GStreamer:
-- base: YES (ver 1.2.3)
-- video: YES (ver 1.2.3)
-- app: YES (ver 1.2.3)
-- riff: YES (ver 1.2.3)
-- pbutils: YES (ver 1.2.3)
but I'm not able to call a Gstreamer-related functions (e.g. cvCreateCapture_GStreamer
which is defined inside cap_gstreamer.cpp
)
cap_gstreamer.cpp
was built successfully as the opencv install log suggested:
[ 17%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_gstreamer.cpp.o
cvCreateCapture_GStreamer
is also present inside /usr/local/lib/libopencv_highgui.so.3.0.0
after building openCV
(found that using grep
)
I use #include <opencv/highgui.h>
but calling cvCreateCapture_GStreamer
fails(-lopencv_highgui
flag is set inside the Makefile):
error: ‘cvCapture_GStreamer’ was not declared in this scope
Any suggestions would be helpful and greatly appreciated.
Thanks!