FaceGroupAnalyzer
An object that detects faces in images and groups them by person.
Declaration
final class FaceGroupAnalyzerMentioned in
Overview
FaceGroupAnalyzer is the central object in the face analysis pipeline. It detects faces in images, stores their data persistently in a working directory you choose, and clusters the faces into groups called entities, where each entity represents a distinct person.
The analyzer stores all face data and cluster assignments in the directory you pass to init(workingDirectory:). This directory persists between app launches, so subsequent runs resume from where the previous session ended. Call purge(workingDirectory:) to remove all data from the directory.
Use identifyFaces(in:) to detect and match faces in images without storing anything. This is useful for recognizing people in new images against an existing gallery without modifying the analyzer’s data.
Topics
Creating an analyzer
Managing assets
Updating the gallery
Retrieving faces and entities
allFacesallFacesByEntityIDallEntitiesallAssetIDsallAssetIDsByEntityIDFaceGroupAnalyzer.FaceFaceGroupAnalyzer.Entity