Introduction
Background removal, that is, separating the main character and the background in images or videos to obtain images with clear boundaries of the main character. For example, portrait matting in PhotoShop is a simple application of matting. Tencent Effect integrates AI algorithms to perform real-time matting on video streams.
Basic Usage
1. Import materials
2. Create segmentation object
3. Add background
3.1 Add foreground sticker (the foreground sticker added here is the background).
3.2 Rename the foreground sticker to "background sticker": right-click on the Foreground sticker, and click Rename.
(This sticker is the background, making it easy to distinguish from the foreground stickers added later.)
3.3 Select sticker file: When the background sticker is selected, click on the image file, and choose the sticker file in the pop-up window.
3.4 Adjust the background position and size.
4. Add foreground
4.1 Add foreground sticker object.
4.2 Select sticker file: Select the foreground sticker, click on the image file, and choose RenderTarget_Segmentation_1.rdt file.
(The RenderTarget_Segmentation_1.rdt file is generated when creating a segmentation object, which displays the separated portrait of the foreground.)
5. Adjust layer order
The order of the layers determines the rendering order. Adjust the layer order from top to bottom, in the order of segmentation capability, background sticker, and foreground sticker.
6. Preview
Was this page helpful?