按空格键实现暂停播放,代码如下:

cv2.namedWindow("m1", 0)
cv2.resizeWindow("m1", 800, 600)
cv2.imshow('m1', images_origin[idx])
if cv2.waitKey(1) & 0xFF == ord(' '):
  cv2.waitKey(0)
else:
  break

 

相关文章:

  • 2021-12-02
  • 2022-01-01
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2021-12-15
  • 2021-12-01
  • 2021-12-12
猜你喜欢
  • 2021-05-01
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
相关资源
相似解决方案