Banuba SDK
Instance Methods | Class Methods | List of all members
BNBFaceTracker Class Reference

Face tracker component. More...

#import <BNBFaceTracker.h>

Inheritance diagram for BNBFaceTracker:

Instance Methods

(void) - setFace:
 Sets face to face tracker. More...
 
(nullable BNBFace *) - getFace
 
(BOOL) - hasFace
 true if fase with index, specified in face asset was recognized More...
 
(BOOL) - isMouthOpen
 true if mouth is open More...
 
(BOOL) - isSmiling
 true if is smiling More...
 
(BOOL) - isEyebrowsUp
 true if eyebrows up More...
 
(BOOL) - isDisgust
 true if disgust More...
 
(nonnull BNBEyesStatus *) - getEyesStatus
 
(nonnull NSArray< BNBEar * > *) - getEars
 
(nullable BNBComponent *) - asComponent
 
(BNBGender) - getGender
 

Class Methods

(nullable BNBFaceTracker *) + create
 Fabric method for face tracker creating. More...
 

Detailed Description

Face tracker component.

All transformations components of entity with face_tracker component will update relatively face, which index was specified in face asset. Also updates face asset resources. Subclass of component.

Definition at line 23 of file BNBFaceTracker.h.

Method Documentation

◆ asComponent

- (nullable BNBComponent *) asComponent
Returns
upcast to base type

◆ create

+ (nullable BNBFaceTracker *) create

Fabric method for face tracker creating.

Returns
face tracker component (face_tracker)

◆ getEars

- (nonnull NSArray<BNBEar *> *) getEars
Returns
ears status [left, right]

◆ getEyesStatus

- (nonnull BNBEyesStatus *) getEyesStatus
Returns
eyes status (eyes_status)

◆ getFace

- (nullable BNBFace *) getFace
Returns
face (face): face asset

◆ getGender

- (BNBGender) getGender
Returns
gender

◆ hasFace

- (BOOL) hasFace

true if fase with index, specified in face asset was recognized

Returns
face recognition flag (bool)

◆ isDisgust

- (BOOL) isDisgust

true if disgust

Returns
flag (bool)

◆ isEyebrowsUp

- (BOOL) isEyebrowsUp

true if eyebrows up

Returns
flag (bool)

◆ isMouthOpen

- (BOOL) isMouthOpen

true if mouth is open

Returns
flag (bool)

◆ isSmiling

- (BOOL) isSmiling

true if is smiling

Returns
flag (bool)

◆ setFace:

- (void) setFace: (nullable BNBFace *)  face

Sets face to face tracker.

Parameters
face(face): face asset

The documentation for this class was generated from the following file: