Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions image_processing_course/sw_s01e10.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down