id
TypeScriptget id(): FaceGroupAnalyzer_Face_IDSwift declarationlet id: FaceGroupAnalyzer.Face.IDA unique identifier for the face.
struct · iOS 27.0+ · SDK 27.1
struct FaceA face detected in an image asset. This type represents a single face that ``FaceGroupAnalyzer`` detects in an image. It records the face's location within the image, the identifier of the image it came from, and after ``FaceGroupAnalyzer/update(subprogress:)`` runs, the entity the face belongs to. The ``FaceGroupAnalyzer/Face/bounds`` rectangle uses normalized coordinates in the range `0.0` to `1.0` along both axes, with the origin at the top-left corner of the image.
get id(): FaceGroupAnalyzer_Face_IDSwift declarationlet id: FaceGroupAnalyzer.Face.IDA unique identifier for the face.
get bounds(): { x: number; y: number; width: number; height: number }Swift declarationlet bounds: CGRectA normalized rectangle describing the location of the face within its source image. The rectangle uses normalized coordinates, where `0.0` is the top-left corner and `1.0` is the bottom-right corner along each axis.
get assetID(): MediaIntelligenceImageAsset_IDSwift declarationlet assetID: MediaIntelligenceImageAsset.IDAn identifier for the image asset that contains this face.
get entityID(): (FaceGroupAnalyzer_Entity_ID) | nullSwift declarationlet entityID: FaceGroupAnalyzer.Entity.ID?An identifier for the entity this face belongs to. This value is `nil` until you call ``FaceGroupAnalyzer/update(subprogress:)``. After clustering runs, every face receives an entity identifier that groups it with other faces of the same person.
No declarations were skipped in this snapshot.