tencent cloud

문서Tencent Effect SDK

Virtual Background(Android)

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-10-15 14:45:44
Accurately removes the background in real time and applies a virtual background (customizable):





Android Integration Guide

Android SDK Integration Guide. See Integrating Core SDK (Android).

Methodology

setEffect(String effectName, int effectValue, String resourcePath, Map<String, String> extraInfo)
Detailed parameter description, see setEffect.

Virtual Background Settings

mXmagicApi.setEffect(EffectName.EFFECT_SEGMENTATION, 45, AppConfig.motionResPath + "/segmentMotionRes/video_segmentation_blur_45", null);

Custom Background Settings

Map<String, String> extraInfo = new HashMap<>();
extraInfo.put("segType", "custom_background");
extraInfo.put("bgType", "0");
extraInfo.put("bgPath", imgPath);
mXmagicApi.setEffect(EffectName.EFFECT_SEGMENTATION, 0, AppConfig.motionResPath + "/segmentMotionRes/video_empty_segmentation", extraInfo);



도움말 및 지원

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

피드백