Package com.banuba.sdk.types
Interface FrameData
- All Known Implementing Classes:
FrameData.CppProxy
public interface FrameData
getters throw exceptions when data are not available
android NNs usually output gpu masks
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionUnitsData(ActionUnitsData actionUnits) voidvoidaddDepthMap(DepthMap depthMap) voidaddExternalFaceData(FaceDataSource source, ArrayList<ExternalFaceData> data) voidExtra parameters during in-CPU feature calculations.voidaddFrameNumber(long frameNumber) voidaddFullImg(FullImageData img) voidaddTimestampUs(double timestampUs) add frame timestamp in microsecondsstatic FrameDatacreate()Creates empty `FrameData`.getBody()getBrows()floatEyelids gloss max brightnessgetEyes()getFace()Face detector is an input for face recognizer.intReturn value: 0 -- 'Undefined', 1 -- 'Heart', 2 -- 'Oblong', 3 -- 'Oval', 4 -- 'Round', 5 -- 'Square'.Get frx_recognition_result or null if not existsEyeglasses frame color in RGB spacegetHair()booleanbooleanbooleanbooleanbooleanfloatlist[0] and list[1] - x and y coordinates of the thermal temperature of the light source list[2] - the brightness of the framegetLips()floatLips gloss max brightnessfloatPupillary distance in mmfloatgetRuler()getSkin()getTeeth()Teeth color in Lab color spacevoidvoid
-
Method Details
-
getFullImgFormat
-
getFullImgTransform
-
getFrxRecognitionResult
Get frx_recognition_result or null if not exists -
setFrxRecognitionResult
-
getFaceDetectorResult
Face detector is an input for face recognizer. It gives only position of the face. Even if the face is present on the frame it doesn't mean that face detector can track it. -
getActionUnits
-
getAcneRegions
-
getIsSmile
boolean getIsSmile() -
getIsMouthOpen
boolean getIsMouthOpen() -
getIsBrowsRaised
boolean getIsBrowsRaised() -
getIsBrowsShifted
boolean getIsBrowsShifted() -
getIsWearGlasses
boolean getIsWearGlasses() -
getRuler
float getRuler() -
getEyesState
-
getLightCorrection
float getLightCorrection() -
getBackground
-
getBackgroundGpu
-
getHair
-
getHairGpu
-
getSkin
-
getSkinGpu
-
getLips
-
getLipsGpu
-
getTeeth
-
getBody
-
getLipsShine
-
getBrows
-
getEyes
-
getFace
-
getFaceSkin
-
getFaceAttributes
-
getFaceShape
int getFaceShape()Return value: 0 -- 'Undefined', 1 -- 'Heart', 2 -- 'Oblong', 3 -- 'Oval', 4 -- 'Round', 5 -- 'Square'. -
getPupillaryDistance
float getPupillaryDistance()Pupillary distance in mm -
getLightSourceParams
list[0] and list[1] - x and y coordinates of the thermal temperature of the light source list[2] - the brightness of the frame -
getTeethColor
Teeth color in Lab color space -
getLipsGlossMaxBrightness
float getLipsGlossMaxBrightness()Lips gloss max brightness -
getEyelidsGlossMaxBrightness
float getEyelidsGlossMaxBrightness()Eyelids gloss max brightness -
getGlassesFrameColor
Eyeglasses frame color in RGB space -
addFullImg
-
replaceFullImg
-
addBackground
-
addExternalFaceData
-
addDepthMap
-
addFrameNumber
void addFrameNumber(long frameNumber) -
addActionUnitsData
-
addFeatureParameters
Extra parameters during in-CPU feature calculations. Reference feature documentation. -
addTimestampUs
void addTimestampUs(double timestampUs) add frame timestamp in microseconds -
getChromakeyColor
-
create
Creates empty `FrameData`. Use `add*` function to fill it.
-