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
imageImagein Source image to process.
Returns
The mask of segmented face.
Exceptions
An error has occurred during Face Library execution.
Image segmentBackground(Image image)
Parameters
imageImagein 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
imageImagein 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
imageImagein 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
imageImagein 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
hFaceAnalyserID3_FACE_ANALYSERin Handle to the FaceAnalyser object.hImageID3_FACE_IMAGEin Source image to process.hSegmentationMaskID3_FACE_IMAGEout The mask of segmented face.
Returns