I have the 2 Channel multi adapter board v2.2 and am trying to get the compiled example to work. The shell example does work and captures 1 image from each sensor as expected.
To get the compiled example to build I had to make the following changes:
Makefile:
-CXXFLAGS = `pkg-config --cflags --libs opencv` #sudo apt-get install libopencv-dev
+CXXFLAGS = `pkg-config --cflags --libs opencv4` #sudo apt-get install libopencv-dev
arducam_multi_adapter_uc444.cpp:
- cap.set(CV_CAP_PROP_FRAME_WIDTH,320);
- cap.set(CV_CAP_PROP_FRAME_HEIGHT,240);
+ cap.set(CAP_PROP_FRAME_WIDTH,320);
+ cap.set(CAP_PROP_FRAME_HEIGHT,240);
Resulting in the following error:
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Failed to allocate required memory.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (914) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src1 reported: Failed to allocate required memory.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (914) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
unknown control 'brightness'
unknown control 'contrast'
unknown control 'saturation'
unknown control 'rotate'
unknown control 'auto_exposure'
unknown control 'exposure_time_absolute'
unknown control 'brightness'
unknown control 'contrast'
unknown control 'saturation'
unknown control 'rotate'
unknown control 'auto_exposure'
unknown control 'exposure_time_absolute'
Start grabbing
From googling, it seems like there are other people that have had this same issue. Let me know if you have any ideas.