tencent cloud

Tencent Effect SDK

Release Notes and Announcements
Release Notes
Tencent Effect SDK V3.5 Version Released
Tencent Effects SDK V3.0 Version Related API and Material Changes
Product Introduction
Overview
Features
Basic Concepts
Strengths
Use Cases
Purchase Guide
Pricing Overview
Purchase Guide
Payment Overdue and Refund
Tutorial
Demos
Free Trial License
Licenses
Adding and Renewing a License (Mobile)
Adding and Renewing a License (Desktop)
Adding and Renewing a License (Web)
FAQs
SDK Download
Features
SDK Download
Version History
SDK Integration Guide(No UI)
General Integration of Tencent Effect
Integrating Capabilities
SDK Integration Guide(Including UI)
General Integration of Tencent Effect
Integrating Tencent Effect into MLVB SDK
Integrating Tencent Effect into TRTC SDK
Integrating Tencent Effect into UGSV SDK
Virtual Avatars
API Documentation
iOS
Android
Flutter
Web
Feature Guide
Reducing SDK Size
SDK Integration Issue Troubleshooting
Performance Fine-Tuning
Effect Fine-Tuning
Material Usage
Effect Parameters
Recommended Parameters in Beautification Scenarios
UGSV Enterprise Edition Migration Guide
Integrating Tencent Effect for Third-Party Publishers (Flutter)
Integrating Beauty AR Web into Mini Programs
Tencent Effect Studio Usage
Beauty AR Web
Overview
Quick Start
SDK Integration
Parameters and APIs
Console Guide
Demos
Preset Effect List
Practical Tutorial
FAQs
FAQs
General
Technical
License
Legacy Documentation
Recommended Parameters in Beautification Scenarios
Beauty Parameters Table
One-Minute Integration of TRTC
One-Minute Integration of Live Streaming
TE SDK Policy
Privacy Policy
Data Processing And Security Agreement
Contact Us

Background Removal + GAN

PDF
Focus Mode
Font Size
Last updated: 2024-03-25 11:43:19

Introduction

In Tencent Effect, different gameplay can be combined to achieve diversified gameplay. For example, background removal and GAN can be used at the same time, replacing the background of the video while also replacing the characters in the video with cartoon faces.

Basic Usage

1. Import materials





2. Create a segmentation object.

Add a "Segmentation" object in the object panel.



In the resource panel, a RenderTarget_Segmentation_1.rdt generated by the segmentation object appears.




3. Add background

3.1 Add a "Foreground Sticker" in the object panel: This sticker will be used as the background.



3.2 Rename the "Foreground Sticker" to "Background" (to distinguish it from the foreground stickers added later).



3.3 Select the image file in the component panel.



3.4 Adjust the resource to the appropriate size.

4. Add foreground

4.1 Add a "Foreground Sticker" in the object panel: Add the segmented portrait to a canvas.



4.2 Rename the "Foreground Sticker" to "Segmented Portrait".
4.3 In the component panel, select the image file for the "Foreground Sticker": Select the RenderTarget_Segmentation_1.rdt file generated when the segmentation object was created, which is the foreground showing the just segmented portrait.




5. Add GAN

5.1 Add a "GAN" in the object panel.



5.2 In the component panel, import resources for the "GAN" object.




6. Preview










Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback