Ask Your Question
0

How do I get Prosilica / Allied Vision Camera (PVAPI) working with OpenCV 2.4?

asked 2012-08-10 15:23:57 -0600

xamox gravatar image

I have a prosilica (allied vision) manta G032C GiG-E camera that I am trying to get working with OpenCV 2.4 under Ubuntu Linux 12.04. Currently I have the Prosilica camera drivers installed and can run the SampleViewer application and see images fine. What I am trying to do now is build OpenCV with the PvAPI wrapper that is included.

I tried to run:

cmake -D WITH_PVAPI=ON ..

from the build directory, but the status output looks like this:

-- Detected version of GNU GCC: 46 (406)
-- Extracting svn version, please wait...
-- SVNVERSION: exported
-- Found OpenEXR: /usr/lib/libIlmImf.so
-- checking for module 'gstreamer-app-0.10'
--   package 'gstreamer-app-0.10' not found
-- checking for module 'libdc1394-2'
--   package 'libdc1394-2' not found
-- checking for module 'libdc1394'
--   package 'libdc1394' not found
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- checking for module 'libavcodec'
--   package 'libavcodec' not found
-- checking for module 'libavformat'
--   package 'libavformat' not found
-- checking for module 'libavutil'
--   package 'libavutil' not found
-- checking for module 'libswscale'
--   package 'libswscale' not found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - not found
-- Looking for ffmpeg/avformat.h
-- Looking for ffmpeg/avformat.h - not found
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing:  CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "4.1")
-- Found Sphinx 1.1.3: /usr/bin/sphinx-build
-- 
-- General configuration for OpenCV 2.4.2 =====================================
-- 
--   Platform:
--     Host:                        Linux 3.2.0-27-generic x86_64
--     CMake:                       2.8.7
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               Release
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ Compiler:                /usr/bin/c++ (ver 4.6.3)
--     C++ flags (Release):         -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -ffunction-sections -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -ffunction-sections -g  -O0 -DDEBUG -D_DEBUG -ggdb3
--     C Compiler:                  /usr/bin/gcc
--     C flags (Release):           -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -ffunction-sections -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -ffunction-sections -g  -O0 -DDEBUG -D_DEBUG -ggdb3
--     Linker flags (Release):      
--     Linker flags (Debug):        
--     Precompiled headers:         NO
-- 
--   OpenCV modules:
--     To be built:                 core imgproc flann highgui features2d calib3d ml video objdetect contrib nonfree gpu legacy photo python stitching ts videostab
--     Disabled:                    -
--     Disabled by dependency:      -
--     Unavailable:                 androidcamera java world
-- 
--   GUI: 
--     QT 4.x:                      NO
--     GTK+ 2.x:                    YES (ver 2.24.10)
--     GThread :                    YES (ver 2.32.3)
--     GtkGlExt:                    NO
--     OpenGL support:              NO
-- 
--   Media I/O: 
--     ZLib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.3.4)
--     JPEG:                        /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
--     PNG:                         /usr/lib/x86_64-linux-gnu ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-08-11 10:45:35 -0600

Tim gravatar image

updated 2012-08-11 13:15:20 -0600

It looks to me like the library finder in OpenCVFindLibsVideo.cmake is broken. You can pass the location of the library to cmake directly. On my system I have a symlink to the library in /usr/local/lib, so I added:

-D PVAPI_LIBRARY="/usr/local/lib/libPvAPI.a"
edit flag offensive delete link more

Comments

Thank, I now see that the wrapper is is marked as yes to build. I am trying to run the example application here: https://github.com/xamox/OpenCV-Camera/blob/master/show-camera.cpp

Except I've uncommented the: CvCapture* capture = cvCaptureFromCAM( CV_CAP_PVAPI )

It will build but I'm getting capture is NULL.

xamox gravatar imagexamox ( 2012-08-13 10:29:18 -0600 )edit

Any ideas why this might be happening?

xamox gravatar imagexamox ( 2012-12-17 11:55:54 -0600 )edit
0

answered 2014-01-13 23:23:02 -0600

kaushal gravatar image

hello there,

please share, information how do i interface Procellica camera GC2450C under Ubuntu 12.04 LTS ..?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-08-10 15:23:57 -0600

Seen: 3,998 times

Last updated: Jan 13 '14