FSegmentationProperty
- Unreal Blueprint
更新时间不可用
背景图像的处理属性。
USTRUCT(BlueprintType)
struct FSegmentationProperty
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|SegmentationProperty")
ESEG_MODEL_TYPE modelType = ESEG_MODEL_TYPE::SEG_MODEL_AI;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|SegmentationProperty")
float greenCapacity = 0.5;
FSegmentationProperty(){}
FSegmentationProperty(const agora::rtc::SegmentationProperty & AgoraData){
modelType = static_cast<ESEG_MODEL_TYPE>(AgoraData.modelType);
greenCapacity = AgoraData.greenCapacity;
}
agora::rtc::SegmentationProperty CreateAgoraData() const {
agora::rtc::SegmentationProperty AgoraData;
AgoraData.modelType = static_cast<agora::rtc::SegmentationProperty::SEG_MODEL_TYPE>(modelType);
AgoraData.greenCapacity = greenCapacity;
return AgoraData;
}
void FreeAgoraData(agora::rtc::SegmentationProperty& AgoraData) const {
}
};属性
| 参数名 | 描述 |
|---|---|
modelType | 进行背景处理的算法。详见 ESEG_MODEL_TYPE。 |
greenCapacity |