diff --git a/image_processing_course/sw_s01e10.py b/image_processing_course/sw_s01e10.py index 73704f6..bc50358 100644 --- a/image_processing_course/sw_s01e10.py +++ b/image_processing_course/sw_s01e10.py @@ -20,9 +20,6 @@ def empty(_): cv2.createTrackbar('threshold', 'current_frame', 20, 255, empty) cap = cv2.VideoCapture(0) - # alternative solution to the one with setting the env variable is to use DSHOW, - # however, it might reduce the achievable fps - # cap = cv2.VideoCapture(0, cv2.CAP_DSHOW) img_gray = cv2.cvtColor(cap.read()[1], cv2.COLOR_BGR2GRAY) img_current = np.copy(img_gray)