Exposure control on Arducam Pivariety 8MP Synchronized Stereo camera

  1. Where did you get the camera module(s)?
    Arducam Pivariety 8MP Synchronized Stereo 360° Camera Kit for Raspberr– The Pi Hut

  2. Model number of the product(s)?
    IMX219 8MPx2

  3. What hardware/platform were you working on?
    Raspberry Pi 4, Buster

  4. Instructions you have followed. (link/manual/etc.)
    Set up the camera on a fresh install of Buster on a raspberry pi 4 and accessing the camera through python and opencv with the use of v4l2 loopback and gstreamer as explained here:
    How to access and program the Pivariety Camera using Command Line, Python, OpenCV, and GStreamer

  5. Problems you were having?
    Unable to manually control the exposure of the cameras through opencv. Manual exposure is required due to the use of a filter on one camera but the exposure is being set automatically from the brighter image with no filter.

  6. The dmesg log from your hardware?

  7. Troubleshooting attempts you’ve made?

  8. What help do you need?
    How can the exposure of the cameras be controlled for the stereo camera hat when a live stream is required?

Unfortunately, if you are using v4l2loopback, you can only set parameters when libcamera starts, not dynamically modify parameters through opencv.

Okay thanks. I am currently starting the v4l2 loop back with the following commands, is there a way to set the exposure within this?

sudo modprobe v4l2loopback video_nr=3

export GST_PLUGIN_PATH=$(pwd)/build/src/gstreamer

gst-launch-1.0 libcamerasrc ! ‘video/x-raw,width=1920,height=540’ ! videoconvert ! tee ! v4l2sink device=/dev/video3

Looks like we’ve run into another trouble,
The gstreamer plugin does not support setting exposure manually.