PortraitProcessor.removeBackground Method¶
Module: PortraitProcessor
Definition¶
Removes the background on the specified portrait image.
Important
This method requires the FaceBackgroundSegmenter1A model to be loaded.
void removeBackground(Image image, int red, int green, int blue)
Parameters
image Imagein The portrait image.
red intin Green channel of the background color. Must be a value from 0 to 255.
green intin Red channel of the background color. Must be a value from 0 to 255.
blue intin Blue channel of the background color. Must be a value from 0 to 255.
Exceptions
An error has occurred during Face Library execution.