Set number of bits per pixel via Python

  1. Where did you get the camera module(s)?
  2. Model number of the product(s)?
    USB3 Camera Shield UC0593 Rev.C ( 108MP USB 3.0 Camera Evaluation Kit, Motorised Focus)
  3. What hardware/platform were you working on?
    Windows 10/python 3.10
  4. Instructions you have followed. (link/manual/etc.)
    ArduCAM_USB_Camera_Shield/Windows/Python/External_trigger_demo/ at master · ArduCAM/ArduCAM_USB_Camera_Shield · GitHub
  5. Problems you were having?
    With the GUI I can choose between 8bit and 16bit images. However, with python the default seems to be 8bit (max pixel value of 255) and I do not know how to change it. I’ve tried simply changing the
  6. The dmesg log from your hardware?
    I don’t know what this means
  7. Troubleshooting attempts you’ve made?
    I’ve tried modifying the ArduCAM_108MP_MIPI_2Lane_RAW8_4000x3000_14fps.cfg file by changing BIT_WIDTH = 8 to BIT_WIDTH = 16. However, then the read command always times out even when I increase the timeout to very 10 seconds. I’ve also tried setting the cfg in python (cfg[“u8PixelBits”]=16), but then nothing changes.
  8. What help do you need?
    I would like to be able to switch the pixels from 8 bit to 16 bit.

Note, my python code for taking pictures is:
camera = Arducam.ArducamCamera()
ret, data, cfg =
image = ImageConvert.convert_image(data, cfg, camera.color_mode)


This actually doesn’t work.

What we currently offer does not include this part of the content
if you want,you can contact [email protected]