tencent cloud

Tencent Effect SDK

제품 소개
기본 개념
제품 장점
시나리오
구매 가이드
가격 리스트
구매 안내
연체 및 환불
Demo 체험
무료 평가판 License
License 가이드
License 추가 및 연장(모바일)
FAQ
SDK 다운로드
기능 설명
SDK 다운로드
SDK 통합 가이드
Tencent Effect SDK 통합하기
원자 기능 통합 가이드
API 문서
iOS
Android
Flutter
기능 사례
SDK 패키지 축소
뷰티 필터 시나리오의 권장 매개변수
UGSV 엔터프라이즈 버전 마이그레이션 가이드
서드 파티 퍼블리셔 Tencent Effect 통합(Flutter)
FAQ
일반 질문
기술 관련 질문
License 관련
TE SDK 정책
개인 정보 보호 정책
데이터 처리 및 보안 계약
문서Tencent Effect SDK

Background Segmentation

포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-03-30 18:03:42

Introduction

Background segmentation separates the primary subject from the surrounding background in images or videos, resulting in a crisp outline around the subject. For example, the portrait cutout feature in Photoshop is a basic application of background segmentation. Tencent Effect leverages AI algorithms to enable real-time background segmentation for video streams.

Basic Usage

Step 1: Import Assets

Import a PAG animation into the asset panel to use as your background material. You can also use a PNG image.




Step 2: Create Segmentation Object

Add a segmentation object in the object panel.




Step 3: Add Background

1. Add a sticker object (in this step, the sticker will function as the background).



2. Rename the sticker to "Background Sticker": Right-click the sticker and select Rename. This sticker will serve as the background, making it easier to distinguish from the foreground sticker you'll add later.



3. Select the sticker file: With the background sticker selected, click the image file and choose the appropriate sticker file in the pop-up window.



4. Adjust the position and size of the background as needed.




Step 4: Add Foreground

1. Add a foreground sticker object.



2. Select the sticker file: With the foreground sticker selected, click the image file and choose the RenderTarget_Segmentation_1.rdt file.
The RenderTarget_Segmentation_1.rdt file is generated when you create the segmentation object, and it presents the segmented portrait as the foreground.







Step 5: Adjust Layer Order

The layer order determines the rendering sequence. Arrange the layers so that, from top to bottom, the order is: segmentation object, background sticker, foreground sticker.
Note:
The layer order controls rendering priority—layers at the top are rendered first, and those lower in the list are rendered later. Place the "Foreground Sticker" at the bottom to ensure it appears above the background.




Step 6: Preview

After completing the setup, start the preview.





도움말 및 지원

문제 해결에 도움이 되었나요?

피드백