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
Nested Classes Modifier and Type Interface Description static class
FaceTracker.CppProxy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Component
asComponent()
static FaceTracker
create()
Fabric method for face tracker creating.java.util.ArrayList<Ear>
getEars()
EyesStatus
getEyesStatus()
Face
getFace()
Gender
getGender()
boolean
hasFace()
true if fase with index, specified in face asset was recognizedboolean
isDisgust()
true if disgustboolean
isEyebrowsUp()
true if eyebrows upboolean
isMouthOpen()
true if mouth is openboolean
isSmiling()
true if is smilingvoid
setFace(Face face)
Sets face to face tracker.
-
-
-
Method Detail
-
setFace
void setFace(@Nullable Face face)
Sets face to face tracker.- Parameters:
face
- (face): face asset
-
getFace
@Nullable Face 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
@NonNull EyesStatus getEyesStatus()
- Returns:
- eyes status (eyes_status)
-
getEars
@NonNull java.util.ArrayList<Ear> getEars()
- Returns:
- ears status [left, right]
-
asComponent
@Nullable Component asComponent()
- Returns:
- upcast to base type
-
getGender
@NonNull Gender getGender()
- Returns:
- gender
-
create
@Nullable static FaceTracker create()
Fabric method for face tracker creating.- Returns:
- face tracker component (face_tracker)
-
-