Package com.banuba.sdk.scene
Interface FaceTracker
- All Known Implementing Classes:
FaceTracker.CppProxy
public interface FaceTracker
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.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FaceTracker
create()
Fabric method for face tracker creating.getEars()
getFace()
boolean
hasFace()
true if fase with index, specified in face asset was recognizedboolean
true if disgustboolean
true if eyebrows upboolean
true if mouth is openboolean
true if is smilingvoid
Sets face to face tracker.
-
Method Details
-
setFace
Sets face to face tracker.- Parameters:
face
- (face): face asset
-
getFace
- Returns:
- face (face): face asset
-
hasFace
boolean hasFace()true if fase with index, specified in face asset was recognized- Returns:
- face recognition flag (bool)
-
isMouthOpen
boolean isMouthOpen()true if mouth is open- Returns:
- flag (bool)
-
isSmiling
boolean isSmiling()true if is smiling- Returns:
- flag (bool)
-
isEyebrowsUp
boolean isEyebrowsUp()true if eyebrows up- Returns:
- flag (bool)
-
isDisgust
boolean isDisgust()true if disgust- Returns:
- flag (bool)
-
getEyesStatus
- Returns:
- eyes status (eyes_status)
-
getEars
- Returns:
- ears status [left, right]
-
asComponent
- Returns:
- upcast to base type
-
getGender
- Returns:
- gender
-
create
Fabric method for face tracker creating.- Returns:
- face tracker component (face_tracker)
-