Updated Timer Demos and added 4-line OpenCV demo

This commit is contained in:
PySimpleGUI 2019-10-02 21:13:58 -04:00
parent f50a9a0bf4
commit 91fe043c11
3 changed files with 36 additions and 43 deletions

View file

@ -0,0 +1,4 @@
import cv2, PySimpleGUI as sg
window, cap = sg.Window('Demo Application - OpenCV Integration', [[sg.Image(filename='', key='image')],], location=(800,400)), cv2.VideoCapture(0)
while window(timeout=20)[0] is not None:
window['image'](data=cv2.imencode('.png', cap.read()[1])[1].tobytes())