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