From c4a87f5b5cf8c288aeaf5f9a53b6d3223468de7f Mon Sep 17 00:00:00 2001 From: Cat Cai Date: Sat, 17 May 2025 13:12:11 -0700 Subject: [PATCH] Fix AttributeError in streaming --- deepface/modules/streaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: