Contents

FaceGroupAnalyzer

An object that detects faces in images and groups them by person.

Declaration

final class FaceGroupAnalyzer

Mentioned 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

Fetching and identifying faces

See Also

Image analysis