Skip to content

Commit

Permalink
update input output
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybreckon committed Jan 19, 2025
1 parent 5051b3b commit 0e0ee93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions canny.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ def nothing(x):
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, args.set_resolution[1])
cap.set(cv2.CAP_PROP_FRAME_WIDTH, args.set_resolution[0])

print("INFO: input resolution : (",
int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)), "x",
int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)), ")")

while (keep_processing):

# if video file successfully open then read frame from video
Expand Down
6 changes: 3 additions & 3 deletions sobel.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def nothing(x):
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, args.set_resolution[1])
cap.set(cv2.CAP_PROP_FRAME_WIDTH, args.set_resolution[0])

print("INFO: camera resolution : (",
cap.get(cv2.CAP_PROP_FRAME_WIDTH), "x",
cap.get(cv2.CAP_PROP_FRAME_HEIGHT), ")")
print("INFO: input resolution : (",
int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)), "x",
int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)), ")")

while (keep_processing):

Expand Down

0 comments on commit 0e0ee93

Please sign in to comment.