---
title: "identifyFaces(in:)"
framework: Media Intelligence
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "mediaintelligence/facegroupanalyzer/identifyfaces(in:)"
---

# identifyFaces(in:)

Detects and identifies faces without modifying the analyzer’s data.

## Declaration

```swift
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

Detecting and grouping faces in images

## Return Value

Return Value An async sequence of (assetID, faces) pairs.

## Discussion

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.

## See Also

### Fetching and identifying faces

- [fetchFaces(_:)](mediaintelligence/facegroupanalyzer/fetchfaces(_:).md)
- [fetchFaces(for:)](mediaintelligence/facegroupanalyzer/fetchfaces(for:).md)
- [fetchFaces(in:)](mediaintelligence/facegroupanalyzer/fetchfaces(in:).md)
- [fetchAssetIDs(for:)](mediaintelligence/facegroupanalyzer/fetchassetids(for:).md)
