identifyFaces(in:)
Detects and identifies faces without modifying the analyzer’s data.
Declaration
final nonisolated(nonsending) func identifyFaces(in assets: [MediaIntelligenceImageAsset]) async throws -> some AsyncSequence<(assetID: MediaIntelligenceImageAsset.ID, faces: Array<FaceGroupAnalyzer.Face>), any Error>
Parameters
- assets:
The image assets to analyze.
Mentioned in
Return Value
An async sequence of (assetID, faces) pairs.
Discussion
Use this method to recognize people in new images against the existing gallery without storing any face data. Each returned face has an entityID if the framework matched it to a known entity, or nil if no match was found.