File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 8484 # create window by name (as resizable)
8585
8686 cv2 .namedWindow (window_name , cv2 .WINDOW_NORMAL )
87+ cv2 .setWindowProperty (window_name , cv2 .WND_PROP_FULLSCREEN ,
88+ cv2 .WINDOW_FULLSCREEN & args .fullscreen )
8789
8890 while (keep_processing ):
8991
115117 # display image
116118
117119 cv2 .imshow (window_name , frame )
118- cv2 .setWindowProperty (window_name , cv2 .WND_PROP_FULLSCREEN ,
119- cv2 .WINDOW_FULLSCREEN & args .fullscreen )
120120
121121 # stop the timer and convert to ms. (to see how long processing and
122122 # display takes)
148148 keep_processing = False
149149 elif (key == ord ('f' )):
150150 args .fullscreen = not (args .fullscreen )
151+ cv2 .setWindowProperty (window_name , cv2 .WND_PROP_FULLSCREEN ,
152+ cv2 .WINDOW_FULLSCREEN & args .fullscreen )
151153
152154 # close all windows
153155
You can’t perform that action at this time.
0 commit comments