Repository navigation
Conversation
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
|
Hi @1234destiny1234, this PR missed language localizations for some new strings. It's failing 2 tests: lcc_ui_egui::i18n::tests::no_language_has_translation_gaps and lcc_ui_egui::tests_i18n_coverage::ui_text_is_in_every_catalog |
|
The two failing tests (@clydecbrown's note above) come from the three strings this PR added in Settings ▸ Faces — Rectified in #1681 (Upstream intake 2026-11-29), commit |
Summary
Related to #1444 — partial mitigation, not a complete resolution.
This PR reduces weak or misplaced face detections and adds a configurable detection confidence control.
Changes
Set the default detection confidence floor to 0.75.
Add Detection sensitivity / Confidence required in Settings → Faces.
Expose the setting through faces.matching as detectionScore (0.65–0.95; null restores the default).
Reject detections smaller than 24 pixels on either side in the detector input before landmark fitting and recognition.
Require confidence of at least 0.90 when FaceMesh cannot confirm a face.
Reject meshes whose face oval centre or size no longer corresponds to the detected box, guarding against retry crops locking onto a neighbouring face.
Add regression tests for mesh consistency and settings deserialization, plus documentation.
Behaviour and limitations
Settings apply to future detection jobs. Existing detections require an explicit rescan.
This change does not silently delete existing regions or change the existing protection for named and manually added regions.
Faces within background photographs or posters may still be detected.
Different real people receiving the same suggested identity is not directly fixed by this PR.
Validation
git diff --check passed.
Rust compilation, formatting checks, and tests have not been run because cargo, rustc, and rustfmt were unavailable in the editing environment.
The reporter’s examples and representative real-model precision/recall cases have not been validated.
Before merging
Run formatting checks, compile, and execute relevant engine, TFLite, and UI tests with the required Rust toolchain.
Validate against the reporter’s examples and representative group photos and profiles.
Assess recall loss from the confidence, minimum-size, and mesh-consistency gates; calibrate thresholds if needed.
Investigate incorrect identity matching separately.
This is a draft PR for review and validation. It should not automatically close #1444.