Filter the grid to a person with their eyes open

An "Eyes open" chip beside the people chips, offered only while someone
is chosen and dropped when the last person goes, so no term narrows the
grid with nothing on the bar to say so. It compiles the rule in
dr_face::eyes into the person's face subquery — Anna, eyes open, whoever
else is blinking beside her — and drops a frame only on a closed eye that
could be read: sunglasses, eyes too small or soft to read, and faces never
read all pass, so an old library shows everything under the chip until
the measuring pass has run. A test drives the same readings through the
SQL and through the rule and requires them to agree.

The People screen badges a face "Eyes closed", "Sunglasses" or "Eyes
unclear" so the reason a frame is or is not in the grid can be read off
the face; the sweep loads the three models when they are beside the pair
and reads eyes on the indexing and measuring passes from the native
render; the coverage line counts unread faces as work to measure so an
already-indexed library keeps its Index button. The term travels with the
place.
This commit is contained in:
2026-09-19 14:04:35 +02:00
parent 6aae4c3eb0
commit 83f4253b6a
16 changed files with 984 additions and 183 deletions
+6 -6
View File
@@ -76,6 +76,7 @@ pub use develop::DevelopSession;
/// APK may carry a bundled copy and has to write it out before any store is
/// opened — see `library::shared_face_models_dir`.
pub use library::shared_face_models_dir;
pub use library::FaceModelPaths;
/// The scene model's three files, wherever this device keeps them.
///
@@ -3894,18 +3895,17 @@ fn refresh_face_status(
let store = library
.session()
.and_then(|c| dr_thumbs::ThumbStore::open(&library::thumbs_dir(&c.account)).ok());
let models = library
.session()
.and_then(|c| library::face_models(&c.account, detector));
identity_ui::refresh_coverage(
window,
&library.catalog(),
store.as_ref(),
detector.model_id(),
models.as_ref().is_some_and(|m| m.eyes.is_some()),
);
window.set_identity_model_missing(
library
.session()
.and_then(|c| library::face_models(&c.account, detector))
.is_none(),
);
window.set_identity_model_missing(models.is_none());
}
fn describe_cache_usage(library: &Rc<library_ui::LibraryController>) -> String {