Skip to content

Subtitle face check: no face seen is unknown, not clear - #62

Merged
IsraelWebDev merged 1 commit into
mainfrom
face-clear-flag
Nov 22, 2026
Merged

IsraelWebDev merged 1 commit into
mainfrom
face-clear-flag

Conversation

@IsraelWebDev

Copy link
Copy Markdown
Owner

Subtitle face check: no face seen is unknown, not clear

The audit's faces.clear was true whenever the caption touched no detected face. So a cue with no face found read as clear. The Haar cascade can miss a face (a head tilted down, glasses), and then a caption can cover a face the audit calls clear.

Now clear is null, with a reason, when no face was detected. Caption placement is unchanged.

Found on a 3-minute Hebrew excerpt: the centre caption at 62 s sat across the speaker's mouth, and the finder saw no face in that frame.

Tests

  • tests/test_faces.py::test_no_face_found_is_unknown_not_clear: zero faces gives clear: None with the busyness reason.
  • Full tests/test_faces.py passes with and without OpenCV 4.10 (the real cascade).
  • ruff check and ruff format --check clean.

Generated by Claude Code

The audit's faces.clear was true whenever the caption touched no detected face, so a cue with no face found read as
clear. The Haar cascade can miss a face (a head tilted down, glasses), so a caption can cover a face the audit calls
clear. The audit now reports clear as null, with a reason, when no face was detected. Placement is unchanged.

Found on a 3-minute Hebrew excerpt: the centre caption at 62 s sat across the speaker's mouth; the finder saw no face.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017qYKdYke3ySSZS76W9Tp34
@IsraelWebDev
IsraelWebDev merged commit 640be41 into main Nov 22, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants