PESDK/Android/Guides
Background Removal for Android
PhotoEditor SDK combined with Google's Selfie Segmentation with ML Kit allows to quickly remove the background from pictures.
Remove background overlay action is available for any of the pictures where a clear background can be detected:
This effect can be used to create transparent stickers, avatars, or collages:
Adding background removal option#
To enable background removal, just include the backend:background-removal
module. Refer to our documentation on how to include the module in your project.
WARNING: To achieve the effect of transparency in exported images, make sure that your output format supports that (e.g. use
setExportFormat()
withImageExportFormat.AUTO
orImageExportFormat.PNG
).