How to set Contrast and Saturation parameters on DMM 37UX226-ML camera

I don’t know this particular camera, but contrast and saturation are not camera parameters (like exposure for example). They are always set in post processing, even if this is performed in camera.
But you can do this post-processing yourself.

imghsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV).astype("float32")
(h, s, v) = cv2.split(imghsv)
s = s * satadj
s = np.clip(s,0,255)
v = (v - 128) * contrastadj + 128
v = np.clip(v,0,255)
imghsv = cv2.merge([h,s,v])
imgrgb = cv2.cvtColor(imghsv.astype("uint8"), cv2.COLOR_HSV2BGR)
1 Like