BNBSegmentationMask
Objective-C
@interface BNBSegmentationMask : NSObject
/**@return segmentation mask type. Can be background, hair, skin, lips, l_eye, r_eye. */
- (BNBSegmentationMaskType)getMaskType;
/**
*set segmentation mask activity flag
*@param active (bool): segmentation mask activity flag
*/
- (void)setActive:(BOOL)active;
/**@return segmentation mask activity flag (bool). */
- (BOOL)isActive;
/**@return upcast to base type */
- (nullable BNBImage *)asImage;
@end
Swift
class BNBSegmentationMask : NSObject
Undocumented
-
Declaration
Objective-C
- (BNBSegmentationMaskType)getMaskType;
Swift
func getMaskType() -> BNBSegmentationMaskType
Return Value
segmentation mask type. Can be background, hair, skin, lips, l_eye, r_eye.
-
set segmentation mask activity flag
Declaration
Objective-C
- (void)setActive:(BOOL)active;
Swift
func setActive(_ active: Bool)
Parameters
active
(bool): segmentation mask activity flag
-
Declaration
Objective-C
- (BOOL)isActive;
Swift
func isActive() -> Bool
Return Value
segmentation mask activity flag (bool).