Repository navigation
Subtitle face check: no face seen is unknown, not clear - #62
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Subtitle face check: no face seen is unknown, not clear
The audit's
faces.clearwastruewhenever 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
clearisnull, 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 givesclear: Nonewith the busyness reason.tests/test_faces.pypasses with and without OpenCV 4.10 (the real cascade).ruff checkandruff format --checkclean.Generated by Claude Code