如何解决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(将#修改为@)