Fix AttributeError in streaming

This commit is contained in:
Cat Cai 2025-05-17 13:12:11 -07:00
parent 774012ab88
commit c4a87f5b5c

View File

@ -110,11 +110,11 @@ def analysis(
while True: while True:
has_frame, img = cap.read() has_frame, img = cap.read()
raw_img = img.copy()
if not has_frame: if not has_frame:
break break
raw_img = img.copy()
faces_coordinates = [] faces_coordinates = []
if not freeze: if not freeze: