如何解决tkinter中的弹出视频流窗口
当我单击GUI上的按钮时,我想在其他窗口中显示摄像机流。当显示摄像机流时,gui可以正常工作,所以我认为当我使用tkinter.Toplevel()
创建弹出窗口时,也许可以这样做,但是我无法配置新的弹出窗口?
对此有什么解决方案或建议吗?
def Button_A_Function():
top=tkinter.Toplevel()
. . .
这是从摄像机获取videoStream的代码
cap = cv2.VideoCapture(0)
while(True):
# Capture frame-by-frame
ret,frame = cap.read()
# Display the resulting frame
cv2.imshow('frame',frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# When everything done,release the capture
cap.release()
cv2.destroyAllWindows()
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。