FirebaseMLVision Framework Reference Stay organized with collections Save and categorize content based on your preferences.
FIRVisionFace
@interfaceFIRVisionFace:NSObjectA human face detected in an image.
The rectangle that holds the discovered relative to the detected image in the viewcoordinate system.
Declaration
Objective-C
@property(nonatomic,readonly)CGRectframe;Indicates whether the face has a tracking ID.
Declaration
Objective-C
@property(nonatomic,readonly)BOOLhasTrackingID;The tracking identifier of the face.
Declaration
Objective-C
@property(nonatomic,readonly)NSIntegertrackingID;Indicates whether the detector found the head y euler angle.
Declaration
Objective-C
@property(nonatomic,readonly)BOOLhasHeadEulerAngleY;Indicates the rotation of the face about the vertical axis of the image. Positive y euler angleis when the face is turned towards the right side of the image that is being processed.
Declaration
Objective-C
@property(nonatomic,readonly)CGFloatheadEulerAngleY;Indicates whether the detector found the head z euler angle.
Declaration
Objective-C
@property(nonatomic,readonly)BOOLhasHeadEulerAngleZ;Indicates the rotation of the face about the axis pointing out of the image. Positive z eulerangle is a counter-clockwise rotation within the image plane.
Declaration
Objective-C
@property(nonatomic,readonly)CGFloatheadEulerAngleZ;Indicates whether a smiling probability is available.
Declaration
Objective-C
@property(nonatomic,readonly)BOOLhasSmilingProbability;Probability that the face is smiling.
Declaration
Objective-C
@property(nonatomic,readonly)CGFloatsmilingProbability;Indicates whether a left eye open probability is available.
Declaration
Objective-C
@property(nonatomic,readonly)BOOLhasLeftEyeOpenProbability;Probability that the face’s left eye is open.
Declaration
Objective-C
@property(nonatomic,readonly)CGFloatleftEyeOpenProbability;Indicates whether a right eye open probability is available.
Declaration
Objective-C
@property(nonatomic,readonly)BOOLhasRightEyeOpenProbability;Probability that the face’s right eye is open.
Declaration
Objective-C
@property(nonatomic,readonly)CGFloatrightEyeOpenProbability;Unavailable.
Declaration
Objective-C
-(nonnullinstancetype)init;Returns the landmark, if any, of the given type in this detected face.
Declaration
Objective-C
-(nullableFIRVisionFaceLandmark*)landmarkOfType:(nonnullFIRFaceLandmarkType)type;Parameters
typeThe type of the facial landmark.
Return Value
The landmark of the given type in this face.
nilif there isn’t one.Returns the contour, if any, of the given type in this detected face.
Declaration
Objective-C
-(nullableFIRVisionFaceContour*)contourOfType:(nonnullFIRFaceContourType)type;Parameters
typeThe type of the facial contour.
Return Value
The contour of the given type in this face.
nilif there isn’t one.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-11 UTC.