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:
This effect can be used to create transparent stickers, avatars, collages:
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
withImageExportFormat.AUTO
orImageExportFormat.PNG
).
Previous
Transform
Next
Introduction