diff --git a/deepface/modules/streaming.py b/deepface/modules/streaming.py index b43f4cf..c75472d 100644 --- a/deepface/modules/streaming.py +++ b/deepface/modules/streaming.py @@ -110,11 +110,11 @@ def analysis( while True: has_frame, img = cap.read() - raw_img = img.copy() - if not has_frame: break + raw_img = img.copy() + faces_coordinates = [] if not freeze: