diff --git a/DemoPrograms/PyDroid3/Demo_OpenCV_4_Line_Program.py b/DemoPrograms/PyDroid3/Demo_OpenCV_4_Line_Program.py new file mode 100644 index 00000000..b7cd3904 --- /dev/null +++ b/DemoPrograms/PyDroid3/Demo_OpenCV_4_Line_Program.py @@ -0,0 +1,5 @@ +import tkinter +import cv2, PySimpleGUI as sg +window, cap = sg.Window('Demo Application - OpenCV Integration', [[sg.Image(filename='', key='image')], ], location=(0, 0)), cv2.VideoCapture(0) +while window(timeout=20)[0] is not None: + window['image'](data=cv2.imencode('.png', cap.read()[1])[1].tobytes())