BNBFrameData
Objective-C
@interface BNBFrameData : NSObject
/** Creates empty `FrameData`. Use `add*` function to fill it. */
+ (nullable BNBFrameData *)create;
- (nonnull BNBFullImageFormat *)getFullImgFormat;
- (nonnull NSArray<NSNumber *> *)getFullImgTransform;
/** Get frx_recognition_result or null if not exists */
- (nullable BNBFrxRecognitionResult *)getFrxRecognitionResult;
- (void)setFrxRecognitionResult:(nullable BNBFrxRecognitionResult *)result;
- (nonnull BNBActionUnitsData *)getActionUnits;
- (nonnull BNBAcneRegions *)getAcneRegions;
- (BOOL)getIsSmile;
- (BOOL)getIsMouthOpen;
- (BOOL)getIsBrowsRaised;
- (BOOL)getIsBrowsShifted;
- (BOOL)getIsWearGlasses;
- (float)getRuler;
- (nonnull BNBEyesState *)getEyesState;
- (float)getLightCorrection;
- (nonnull BNBTransformedMaskByte *)getBackground;
- (nonnull BNBTransformedMaskGpu *)getBackgroundGpu;
- (nonnull BNBTransformedMaskByte *)getHair;
- (nonnull BNBTransformedMaskGpu *)getHairGpu;
- (nonnull BNBTransformedMaskByte *)getSkin;
- (nonnull BNBTransformedMaskGpu *)getSkinGpu;
- (nonnull BNBTransformedMaskByte *)getLips;
- (nonnull BNBTransformedMaskGpu *)getLipsGpu;
- (nonnull BNBTransformedMaskByte *)getTeeth;
- (nonnull BNBTransformedMaskByte *)getOcclusion;
- (nonnull BNBTransformedMaskByte *)getBody;
- (nonnull BNBLipsShineMask *)getLipsShine;
- (nonnull BNBBrowsMask *)getBrows;
- (nonnull BNBEyesMask *)getEyes;
- (nonnull BNBTransformedMaskByte *)getFace;
- (nonnull BNBTransformedMaskByte *)getFaceSkin;
- (nullable NSString *)getFaceAttributes;
/** Pupillary distance in mm */
- (float)getPupillaryDistance;
- (void)addFullImg:(nonnull BNBFullImageData *)img;
- (void)replaceFullImg:(nonnull BNBFullImageData *)img;
- (void)addBackground:(nonnull BNBTransformedMaskByte *)mask;
- (void)addExternalFaceData:(BNBFaceDataSource)source
data:(nonnull NSArray<BNBExternalFaceData *> *)data;
- (void)addDepthMap:(nonnull BNBDepthMap *)depthMap;
- (void)addFrameNumber:(int64_t)frameNumber;
- (void)addActionUnitsData:(nonnull BNBActionUnitsData *)actionUnits;
/**
* Extra parameters during in-CPU feature calculations.
* Reference feature documentation.
*/
- (void)addFeatureParameters:(nonnull NSDictionary<NSNumber *, NSArray<BNBFeatureParameter *> *> *)params;
/**add frame timestamp in microseconds */
- (void)addTimestampUs:(double)timestampUs;
@end
Swift
class BNBFrameData : NSObject
Undocumented
-
Creates empty
FrameData
. Useadd*
function to fill it.Declaration
Objective-C
+ (nullable BNBFrameData *)create;
Swift
class func create() -> BNBFrameData?
-
Undocumented
Declaration
Objective-C
- (nonnull BNBFullImageFormat *)getFullImgFormat;
Swift
func getFullImgFormat() -> BNBFullImageFormat
-
Undocumented
Declaration
Objective-C
- (nonnull NSArray<NSNumber *> *)getFullImgTransform;
Swift
func getFullImgTransform() -> [NSNumber]
-
Get frx_recognition_result or null if not exists
Declaration
Objective-C
- (nullable BNBFrxRecognitionResult *)getFrxRecognitionResult;
Swift
func getFrxRecognitionResult() -> BNBFrxRecognitionResult?
-
Undocumented
Declaration
Objective-C
- (void)setFrxRecognitionResult:(nullable BNBFrxRecognitionResult *)result;
Swift
func setFrxRecognitionResult(_ result: BNBFrxRecognitionResult?)
-
Undocumented
Declaration
Objective-C
- (nonnull BNBActionUnitsData *)getActionUnits;
Swift
func getActionUnits() -> BNBActionUnitsData
-
Undocumented
Declaration
Objective-C
- (nonnull BNBAcneRegions *)getAcneRegions;
Swift
func getAcneRegions() -> BNBAcneRegions
-
Undocumented
Declaration
Objective-C
- (BOOL)getIsSmile;
Swift
func getIsSmile() -> Bool
-
Undocumented
Declaration
Objective-C
- (BOOL)getIsMouthOpen;
Swift
func getIsMouthOpen() -> Bool
-
Undocumented
Declaration
Objective-C
- (BOOL)getIsBrowsRaised;
Swift
func getIsBrowsRaised() -> Bool
-
Undocumented
Declaration
Objective-C
- (BOOL)getIsBrowsShifted;
Swift
func getIsBrowsShifted() -> Bool
-
Undocumented
Declaration
Objective-C
- (BOOL)getIsWearGlasses;
Swift
func getIsWearGlasses() -> Bool
-
Undocumented
Declaration
Objective-C
- (float)getRuler;
Swift
func getRuler() -> Float
-
Undocumented
Declaration
Objective-C
- (nonnull BNBEyesState *)getEyesState;
Swift
func getEyesState() -> BNBEyesState
-
Undocumented
Declaration
Objective-C
- (float)getLightCorrection;
Swift
func getLightCorrection() -> Float
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskByte *)getBackground;
Swift
func getBackground() -> BNBTransformedMaskByte
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskGpu *)getBackgroundGpu;
Swift
func getBackgroundGpu() -> BNBTransformedMaskGpu
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskByte *)getHair;
Swift
func getHair() -> BNBTransformedMaskByte
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskGpu *)getHairGpu;
Swift
func getHairGpu() -> BNBTransformedMaskGpu
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskByte *)getSkin;
Swift
func getSkin() -> BNBTransformedMaskByte
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskGpu *)getSkinGpu;
Swift
func getSkinGpu() -> BNBTransformedMaskGpu
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskByte *)getLips;
Swift
func getLips() -> BNBTransformedMaskByte
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskGpu *)getLipsGpu;
Swift
func getLipsGpu() -> BNBTransformedMaskGpu
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskByte *)getTeeth;
Swift
func getTeeth() -> BNBTransformedMaskByte
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskByte *)getOcclusion;
Swift
func getOcclusion() -> BNBTransformedMaskByte
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskByte *)getBody;
Swift
func getBody() -> BNBTransformedMaskByte
-
Undocumented
Declaration
Objective-C
- (nonnull BNBLipsShineMask *)getLipsShine;
Swift
func getLipsShine() -> BNBLipsShineMask
-
Undocumented
-
Undocumented
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskByte *)getFace;
Swift
func getFace() -> BNBTransformedMaskByte
-
Undocumented
Declaration
Objective-C
- (nonnull BNBTransformedMaskByte *)getFaceSkin;
Swift
func getFaceSkin() -> BNBTransformedMaskByte
-
Undocumented
Declaration
Objective-C
- (nullable NSString *)getFaceAttributes;
Swift
func getFaceAttributes() -> String?
-
Pupillary distance in mm
Declaration
Objective-C
- (float)getPupillaryDistance;
Swift
func getPupillaryDistance() -> Float
-
Undocumented
Declaration
Objective-C
- (void)addFullImg:(nonnull BNBFullImageData *)img;
Swift
func addFullImg(_ img: BNBFullImageData)
-
Undocumented
Declaration
Objective-C
- (void)replaceFullImg:(nonnull BNBFullImageData *)img;
Swift
func replaceFullImg(_ img: BNBFullImageData)
-
Undocumented
Declaration
Objective-C
- (void)addBackground:(nonnull BNBTransformedMaskByte *)mask;
Swift
func addBackground(_ mask: BNBTransformedMaskByte)
-
Undocumented
Declaration
Objective-C
- (void)addExternalFaceData:(BNBFaceDataSource)source data:(nonnull NSArray<BNBExternalFaceData *> *)data;
Swift
func addExternalFace(_ source: BNBFaceDataSource, data: [BNBExternalFaceData])
-
Undocumented
Declaration
Objective-C
- (void)addDepthMap:(nonnull BNBDepthMap *)depthMap;
Swift
func add(_ depthMap: BNBDepthMap)
-
Undocumented
Declaration
Objective-C
- (void)addFrameNumber:(int64_t)frameNumber;
Swift
func addFrameNumber(_ frameNumber: Int64)
-
Undocumented
Declaration
Objective-C
- (void)addActionUnitsData:(nonnull BNBActionUnitsData *)actionUnits;
Swift
func add(_ actionUnits: BNBActionUnitsData)
-
Extra parameters during in-CPU feature calculations. Reference feature documentation.
Declaration
Objective-C
- (void)addFeatureParameters: (nonnull NSDictionary<NSNumber *, NSArray<BNBFeatureParameter *> *> *) params;
Swift
func addFeatureParameters(_ params: [NSNumber : [BNBFeatureParameter]])
-
add frame timestamp in microseconds
Declaration
Objective-C
- (void)addTimestampUs:(double)timestampUs;
Swift
func addTimestampUs(_ timestampUs: Double)