fix: reset counter after each loop

ref: N25B-395
This commit is contained in:
2026-01-30 20:39:10 +01:00
parent 3efe8a7b06
commit dfd2c3a0a1

View File

@@ -145,6 +145,8 @@ class VisualEmotionRecognitionAgent(BaseAgent):
self._face_detected = False
await self._inform_face_detected()
face_detection_yes_no = [0, 0]
await self.update_emotions(prev_dominant_emotions, window_dominant_emotions)
prev_dominant_emotions = window_dominant_emotions
face_stats.clear()