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 Image
in 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 Image
in 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 Image
in 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 Image
in 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 Image
in 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_ANALYSER
in Handle to the FaceAnalyser object.

in Source image to process.

hSegmentationMask ID3_FACE_IMAGE
out The mask of segmented face.

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.