File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 84
84
# create window by name (as resizable)
85
85
86
86
cv2 .namedWindow (window_name , cv2 .WINDOW_NORMAL )
87
+ cv2 .setWindowProperty (window_name , cv2 .WND_PROP_FULLSCREEN ,
88
+ cv2 .WINDOW_FULLSCREEN & args .fullscreen )
87
89
88
90
while (keep_processing ):
89
91
115
117
# display image
116
118
117
119
cv2 .imshow (window_name , frame )
118
- cv2 .setWindowProperty (window_name , cv2 .WND_PROP_FULLSCREEN ,
119
- cv2 .WINDOW_FULLSCREEN & args .fullscreen )
120
120
121
121
# stop the timer and convert to ms. (to see how long processing and
122
122
# display takes)
148
148
keep_processing = False
149
149
elif (key == ord ('f' )):
150
150
args .fullscreen = not (args .fullscreen )
151
+ cv2 .setWindowProperty (window_name , cv2 .WND_PROP_FULLSCREEN ,
152
+ cv2 .WINDOW_FULLSCREEN & args .fullscreen )
151
153
152
154
# close all windows
153
155
You can’t perform that action at this time.
0 commit comments