Skip to content

Commit

Permalink
refactor conditional on set res + fix pep8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybreckon committed Feb 29, 2024
1 parent a24581c commit f4d8752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canny.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def nothing(x):

# override default camera resolution

if not(args.set_resolution is None):
if (args.set_resolution is not None):
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, args.set_resolution[1])
cap.set(cv2.CAP_PROP_FRAME_WIDTH, args.set_resolution[0])

Expand Down

0 comments on commit f4d8752

Please sign in to comment.