I am trying to use cv2.VideoCapture(camera_port, cv2.CAP_DSHOW) to retrieve an image from a webcam.
The picture is taken but in bad quality since the webcam does not have enough time to start up and stabilize before taking the picture.
Are there any options for waiting for the camera to stabilize?