Skip to main content
PESDK/Android/Features

Background Removal

PhotoEditor SDK combined with Selfie segmentation with ML Kit allows to quickly remove background from pictures.

Remove background overlay action is available for any of the pictures where a clear background can be detected:

Remove background

This effect can be used to create transparent stickers, avatars, collages:

Removed background

Adding background removal option#

To enable background removal, just include the backend:background-removal module in your project's imglyConfig modules block -

imglyConfig {
...
modules {
...
include 'backend:background-removal'
}
}

WARNING: To achieve the effect of transparency in exported images, make sure that your output format supports that (e.g. use setExportFormat with ImageExportFormat.AUTO or ImageExportFormat.PNG).