ret, frame = cap.read()

main
luanhailiang 2023-09-22 12:45:52 +08:00
parent bd158261ef
commit 666782c109
1 changed files with 1 additions and 0 deletions

1
app.py
View File

@ -69,6 +69,7 @@ def worker(id,source,region=None,stream=False):
if not cap.isOpened():
print("Error opening video stream.")
while True:
ret, frame = cap.read()
ret, frame = cap.read()
if not ret:
print("Error read video stream.")