ArduCAM / MIPI_Camera

232 stars 108 forks source link

Setting Gain for Arducam 1MP*4 Quadrascopic Camera Bundle Kit #170

Open alonb235 opened 1 year ago

alonb235 commented 1 year ago

I am able to capture video using the Arducam 1MP*4 Quadrascopic Camera Bundle Kit however the images are very dark and I would like to adjust the gain values.

Using Opencv's VideoCapture object does not work and using a v4l2-ctl call such as

subprocess.call([‘v4l2-ctl -d /dev/video0 -c gain=10’],shell=True)

only adjusts the gain value for one frame. I have seen an arducam forum talking about using the IOCTL functions in utils.py but I have been unsuccessful in doing so or finding any documentation.

How can I use a fcntl.ioctl() command to set a fixed gain value for these cameras?