File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 49
49
50
50
# Display the resulting frame
51
51
cv2 .imshow ('frame' , gray )
52
+ cv2 .setWindowTitle ('frame' , 'COLOR_BGR2GRAY' )
52
53
53
54
# Property=cv2.getWindowProperty('frame',0)#无用
54
55
55
56
# if cv2.waitKey(1) & 0xFF == ord('q'):#不行
56
57
# break
57
- key = cv2 .waitKey (delay = 1 )
58
+ key = cv2 .waitKey (delay = 10 )
58
59
if key == ord ("q" ):
59
60
break
60
61
Original file line number Diff line number Diff line change 24
24
25
25
if ret0 :
26
26
cv2 .imshow ('frame0' , frame0 )
27
+ cv2 .setWindowTitle ('frame0' ,'On Top' )
27
28
if ret1 :
28
29
cv2 .imshow ('frame1' , frame1 )
29
30
# cv2.moveWindow('frame1', x=frame0.shape[1], y=0)
30
- cv2 .moveWindow ('frame1' , x = 320 , y = 10 )
31
+ cv2 .moveWindow ('frame1' , x = 320 , y = 40 )
31
32
32
33
key = cv2 .waitKey (delay = 2 )
33
34
if key == ord ("q" ):
You can’t perform that action at this time.
0 commit comments