[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/ios/firebasemlvision/api/reference/Classes/FIRVisionFace [Back]  [Original]

FirebaseMLVision Framework Reference Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback

FirebaseMLVision Framework Reference Stay organized with collections Save and categorize content based on your preferences.

FIRVisionFace


@interface FIRVisionFace : NSObject

A human face detected in an image.

  • The rectangle that holds the discovered relative to the detected image in the view coordinate system.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGRect frame;
  • Indicates whether the face has a tracking ID.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL hasTrackingID;
  • The tracking identifier of the face.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger trackingID;
  • Indicates whether the detector found the head y euler angle.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL hasHeadEulerAngleY;
  • Indicates the rotation of the face about the vertical axis of the image. Positive y euler angle is when the face is turned towards the right side of the image that is being processed.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat headEulerAngleY;
  • Indicates whether the detector found the head z euler angle.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL hasHeadEulerAngleZ;
  • Indicates the rotation of the face about the axis pointing out of the image. Positive z euler angle is a counter-clockwise rotation within the image plane.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat headEulerAngleZ;
  • Indicates whether a smiling probability is available.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL hasSmilingProbability;
  • Probability that the face is smiling.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat smilingProbability;
  • Indicates whether a left eye open probability is available.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL hasLeftEyeOpenProbability;
  • Probability that the face’s left eye is open.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat leftEyeOpenProbability;
  • Indicates whether a right eye open probability is available.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL hasRightEyeOpenProbability;
  • Probability that the face’s right eye is open.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat rightEyeOpenProbability;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Returns the landmark, if any, of the given type in this detected face.

    Declaration

    Objective-C

    - (nullable FIRVisionFaceLandmark *)landmarkOfType:
        (nonnull FIRFaceLandmarkType)type;

    Parameters

    type

    The type of the facial landmark.

    Return Value

    The landmark of the given type in this face. nil if there isn’t one.

  • Returns the contour, if any, of the given type in this detected face.

    Declaration

    Objective-C

    - (nullable FIRVisionFaceContour *)contourOfType:
        (nonnull FIRFaceContourType)type;

    Parameters

    type

    The type of the facial contour.

    Return Value

    The contour of the given type in this face. nil if there isn’t one.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-02-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-02-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page