Skip to content

fix(sentiment): frequent "face not detected" results #4

Description

@jvJUCA

We often get a "no faces detected" response from the backend, even when the video clearly shows a face.

Logs from sentiment-analysis-api

2026-01-27 14:26:14.114 BRT
2026-01-27 17:26:14 - services.emotion_analysis.emotion_analysis_imp - INFO - Total frames in video: 476
2026-01-27 14:26:14.114 BRT
2026-01-27 17:26:14 - services.emotion_analysis.emotion_analysis_imp - INFO - Frames actually processed: 0
2026-01-27 14:26:14.114 BRT
2026-01-27 17:26:14 - services.emotion_analysis.emotion_analysis_imp - INFO - Total faces detected: 0
2026-01-27 14:26:14.114 BRT
2026-01-27 17:26:14 - services.emotion_analysis.emotion_analysis_imp - WARNING - No faces detected or no predictions made.
2026-01-27 14:26:14.114 BRT
2026-01-27 17:26:14 - services.emotion_analysis.emotion_analysis_imp - INFO - Percentages of emotions detected: {'Angry': 0, 'Disgusted': 0, 'Fearful': 0, 'Happy': 0, 'Neutral': 0, 'Sad': 0, 'Surprised': 0}
2026-01-27 14:26:14.115 BRT
2026-01-27 17:26:14 - routes.video_routes - INFO - Emotion analysis result: Angry=0.0 Disgusted=0.0 Fearful=0.0 Happy=0.0 Neutral=0.0 Sad=0.0 Surprised=0.0
2026-01-27 14:26:14.115 BRT
2026-01-27 17:26:14 - routes.video_routes - INFO - Time taken for analysis: 1.2495639324188232 seconds

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions