Skip to content

Commit 99efdb6

Browse files
Playback layout change
1 parent b8fe33a commit 99efdb6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

YoloObjectDetection/yolo_video_with_webcam.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
if use_webcam:
8888
cap = cv2.VideoCapture(0)
8989
while True:
90-
sg.TimerStart()
9190
# read the next frame from the file or webcam
9291
if use_webcam:
9392
grabbed, frame = cap.read()
@@ -192,7 +191,7 @@
192191
if not win_started:
193192
win_started = True
194193
layout = [
195-
[sg.Text('Yolo Output')],
194+
[sg.Text('Yolo Playback in PySimpleGUI Window', size=(30,1))],
196195
[sg.Image(data=imgbytes, key='_IMAGE_')],
197196
[sg.Text('Confidence'),
198197
sg.Slider(range=(0, 1), orientation='h', resolution=.1, default_value=.5, size=(15, 15), key='confidence'),
@@ -213,7 +212,6 @@
213212
break
214213
gui_confidence = values['confidence']
215214
gui_threshold = values['threshold']
216-
sg.TimerStop()
217215

218216

219217
win.Close()

0 commit comments

Comments
 (0)