MediaPipeTasksVision Framework Reference

FaceLandmarksConnections

enum FaceLandmarksConnections

Landmark connection topologies of the 478-point MediaPipe face mesh, exposed as [Connection] arrays of landmark index pairs.

  • All facial feature contours: lips, eyes, eyebrows, irises, and face oval.

    Declaration

    Swift

    static let contours: [Connection]
  • Lips, contours, and tesselation combined. Lips appear twice (once directly and once within contours), matching the legacy Objective-C faceConnections.

    Declaration

    Swift

    static let faceConnections: [Connection]
  • Connections outlining the face oval.

    Declaration

    Swift

    static let faceOval: [Connection]
  • Connections outlining the left eye.

    Declaration

    Swift

    static let leftEye: [Connection]
  • Connections outlining the left eyebrow.

    Declaration

    Swift

    static let leftEyebrow: [Connection]
  • Connections outlining the left iris.

    Declaration

    Swift

    static let leftIris: [Connection]
  • Connections outlining the outer and inner lips.

    Declaration

    Swift

    static let lips: [Connection]
  • Connections outlining the right eye.

    Declaration

    Swift

    static let rightEye: [Connection]
  • Connections outlining the right eyebrow.

    Declaration

    Swift

    static let rightEyebrow: [Connection]
  • Connections outlining the right iris.

    Declaration

    Swift

    static let rightIris: [Connection]
  • Triangular mesh connections tessellating the entire face surface.

    Declaration

    Swift

    static let tesselation: [Connection]