Skip to content

Commit f4d8752

Browse files
committed
refactor conditional on set res + fix pep8 issue
1 parent a24581c commit f4d8752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

canny.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def nothing(x):
115115

116116
# override default camera resolution
117117

118-
if not(args.set_resolution is None):
118+
if (args.set_resolution is not None):
119119
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, args.set_resolution[1])
120120
cap.set(cv2.CAP_PROP_FRAME_WIDTH, args.set_resolution[0])
121121

0 commit comments

Comments
 (0)