Skip to content

Commit e882ad3

Browse files
committed
add image size output
1 parent f93b44a commit e882ad3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sobel.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ def nothing(x):
114114
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, args.set_resolution[1])
115115
cap.set(cv2.CAP_PROP_FRAME_WIDTH, args.set_resolution[0])
116116

117+
print("INFO: camera resolution : (",
118+
cap.get(cv2.CAP_PROP_FRAME_WIDTH), "x",
119+
cap.get(cv2.CAP_PROP_FRAME_HEIGHT), ")")
120+
117121
while (keep_processing):
118122

119123
# if video file successfully open then read frame from video

0 commit comments

Comments
 (0)