Update Video.py

This commit is contained in:
jack G 2019-10-16 09:26:16 +08:00 committed by GitHub
parent 816bae97f7
commit 8ec757db75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,7 @@ class VideoStreaming:
image = cv2.imdecode(np.frombuffer(jpg, dtype=np.uint8), cv2.IMREAD_COLOR) image = cv2.imdecode(np.frombuffer(jpg, dtype=np.uint8), cv2.IMREAD_COLOR)
if self.video_Flag: if self.video_Flag:
self.face_detect(image) self.face_detect(image)
self.video_Flag=False
except: except:
break break