BNBFaceTracker
Objective-C
@interface BNBFaceTracker : NSObject
/**
*Fabric method for face tracker creating.
*@return face tracker component (face_tracker)
*/
+ (nullable BNBFaceTracker *)create;
/**
*Sets face to face tracker.
*@param face (face): face asset
*/
- (void)setFace:(nullable BNBFace *)face;
/**@return face (face): face asset */
- (nullable BNBFace *)getFace;
/**
*true if fase with index, specified in face asset was recognized
*@return face recognition flag (bool)
*/
- (BOOL)hasFace;
/**
*true if mouth is open
*@return flag (bool)
*/
- (BOOL)isMouthOpen;
/**
*true if is smiling
*@return flag (bool)
*/
- (BOOL)isSmiling;
/**
*true if eyebrows up
*@return flag (bool)
*/
- (BOOL)isEyebrowsUp;
/**
*true if disgust
*@return flag (bool)
*/
- (BOOL)isDisgust;
/**@return eyes status (eyes_status) */
- (nonnull BNBEyesStatus *)getEyesStatus;
/**@return ears status [left, right] */
- (nonnull NSArray<BNBEar *> *)getEars;
/**@return upcast to base type */
- (nullable BNBComponent *)asComponent;
/**@return gender */
- (BNBGender)getGender;
@end
Swift
class BNBFaceTracker : NSObject
Undocumented
-
Fabric method for face tracker creating.
Declaration
Objective-C
+ (nullable BNBFaceTracker *)create;
Swift
class func create() -> BNBFaceTracker?
Return Value
face tracker component (face_tracker)
-
true if fase with index, specified in face asset was recognized
Declaration
Objective-C
- (BOOL)hasFace;
Swift
func hasFace() -> Bool
Return Value
face recognition flag (bool)
-
true if mouth is open
Declaration
Objective-C
- (BOOL)isMouthOpen;
Swift
func isMouthOpen() -> Bool
Return Value
flag (bool)
-
true if is smiling
Declaration
Objective-C
- (BOOL)isSmiling;
Swift
func isSmiling() -> Bool
Return Value
flag (bool)
-
true if eyebrows up
Declaration
Objective-C
- (BOOL)isEyebrowsUp;
Swift
func isEyebrowsUp() -> Bool
Return Value
flag (bool)
-
true if disgust
Declaration
Objective-C
- (BOOL)isDisgust;
Swift
func isDisgust() -> Bool
Return Value
flag (bool)
-
Declaration
Objective-C
- (nonnull BNBEyesStatus *)getEyesStatus;
Swift
func getEyesStatus() -> BNBEyesStatus
Return Value
eyes status (eyes_status)
-
Declaration
Objective-C
- (nullable BNBComponent *)asComponent;
Swift
func asComponent() -> BNBComponent?
Return Value
upcast to base type