pub fn detect_gatherings(
conn: &Connection,
excluded_photo_ids: &HashSet<i64>,
) -> Vec<DetectedSuggestion>Expand description
A “gathering” is a 1–2 day window with ≥ 8 photos that contain at least 2 distinct named-or-unnamed face clusters. The intent is to catch family weekends, parties, and outings on libraries that have no location metadata at all (old phones, scanned DSLR exports).
We exclude photos already claimed by trip / event detectors so the same weekend doesn’t get suggested twice from different angles.