Hey guys,
hope I’m not duplicating question but I am not able to find solution anywhere: there is a project we are working on and I need to turn off LED lights on USB microscope (which - I believe - behaves like webcam when connected).
For some settings I succesfully used this:
import cv2
cap = cv2.VideoCapture(1)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 2592)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 1944)
cap.set(cv2.CAP_PROP_EXPOSURE, -8)
cap.set(cv2.CAP_PROP_BACKLIGHT, 0) # does not work!
result, image = cap.read()
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
But we need to turn lights off beacuse we have source of light underneath the sample. I hope it’s not too chaotic, sorry and BTW I am quite new to Python so…
Thanks for any hint!