Package com.banuba.sdk.scene
Class FaceTracker.CppProxy
- java.lang.Object
-
- com.banuba.sdk.scene.FaceTracker.CppProxy
-
- All Implemented Interfaces:
FaceTracker
- Enclosing interface:
- FaceTracker
public static final class FaceTracker.CppProxy extends java.lang.Object implements FaceTracker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.FaceTracker
FaceTracker.CppProxy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
Component
asComponent()
static FaceTracker
create()
Fabric method for face tracker creating.protected void
finalize()
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
-
_djinni_private_destroy
public void _djinni_private_destroy()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
setFace
public void setFace(Face face)
Description copied from interface:FaceTracker
Sets face to face tracker.- Specified by:
setFace
in interfaceFaceTracker
- Parameters:
face
- (face): face asset
-
getFace
public Face getFace()
- Specified by:
getFace
in interfaceFaceTracker
- Returns:
- face (face): face asset
-
hasFace
public boolean hasFace()
Description copied from interface:FaceTracker
true if fase with index, specified in face asset was recognized- Specified by:
hasFace
in interfaceFaceTracker
- Returns:
- face recognition flag (bool)
-
isMouthOpen
public boolean isMouthOpen()
Description copied from interface:FaceTracker
true if mouth is open- Specified by:
isMouthOpen
in interfaceFaceTracker
- Returns:
- flag (bool)
-
isSmiling
public boolean isSmiling()
Description copied from interface:FaceTracker
true if is smiling- Specified by:
isSmiling
in interfaceFaceTracker
- Returns:
- flag (bool)
-
isEyebrowsUp
public boolean isEyebrowsUp()
Description copied from interface:FaceTracker
true if eyebrows up- Specified by:
isEyebrowsUp
in interfaceFaceTracker
- Returns:
- flag (bool)
-
isDisgust
public boolean isDisgust()
Description copied from interface:FaceTracker
true if disgust- Specified by:
isDisgust
in interfaceFaceTracker
- Returns:
- flag (bool)
-
getEyesStatus
public EyesStatus getEyesStatus()
- Specified by:
getEyesStatus
in interfaceFaceTracker
- Returns:
- eyes status (eyes_status)
-
getEars
public java.util.ArrayList<Ear> getEars()
- Specified by:
getEars
in interfaceFaceTracker
- Returns:
- ears status [left, right]
-
asComponent
public Component asComponent()
- Specified by:
asComponent
in interfaceFaceTracker
- Returns:
- upcast to base type
-
getGender
public Gender getGender()
- Specified by:
getGender
in interfaceFaceTracker
- Returns:
- gender
-
create
@Nullable public static FaceTracker create()
Description copied from interface:FaceTracker
Fabric method for face tracker creating.- Returns:
- face tracker component (face_tracker)
-
-