FaceAnalyser.segmentBackground Method¶
Module: FaceAnalyser
Definition¶
Computes face segmentation mask for background removal.
Important
This methods requires the FaceBackgroundSegmenter
model to be loaded.
segment_background(self, image: Image) -> Image
Parameters
image
Imagein Source image to process.
Returns
The mask of segmented face.
Exceptions
An error has occurred during Face Library execution.
Image segmentBackground(Image image)
Parameters
image
Imagein Source image to process.
Returns
The mask of segmented face.
Exceptions
An error has occurred during Face Library execution.
public Image SegmentBackground(Image image)
Parameters
image
Imagein Source image to process.
Returns
The mask of segmented face.
Exceptions
An error has occurred during Face Library execution.
public Image segmentBackground(Image image) throws FaceException
Parameters
image
Imagein Source image to process.
Returns
The mask of segmented face.
Exceptions
An error has occurred during Face Library execution.
public func segmentBackground(image: Image) throws -> Image
Parameters
image
Imagein Source image to process.
Returns
The mask of segmented face.
Exceptions
An error has occurred during Face Library execution.
int id3FaceAnalyser_SegmentBackground (
ID3_FACE_ANALYSER hFaceAnalyser,
ID3_FACE_IMAGE hImage,
ID3_FACE_IMAGE hSegmentationMask)
Parameters
hFaceAnalyser
ID3_FACE_ANALYSERin Handle to the FaceAnalyser object.hImage
ID3_FACE_IMAGEin Source image to process.hSegmentationMask
ID3_FACE_IMAGEout The mask of segmented face.
Returns