SegmentationProperty

  • Flutter

更新时间不可用

背景图像的处理属性。

Dart
class SegmentationProperty implements AgoraSerializable {
  const SegmentationProperty(
      {this.modelType, this.greenCapacity, this.screenColorType});

  @JsonKey(name: 'modelType')
  final SegModelType? modelType;

  @JsonKey(name: 'greenCapacity')
  final double? greenCapacity;

  @JsonKey(name: 'screenColorType')
  final ScreenColorType? screenColorType;

  factory SegmentationProperty.fromJson(Map<String, dynamic> json) =>
      _$SegmentationPropertyFromJson(json);

  @override
  Map<String, dynamic> toJson() => _$SegmentationPropertyToJson(this);
}

属性

参数名描述
modelType

进行背景处理的算法。详见 SegModelType。

greenCapacity

对画面中背景颜色识别的精度范围。取值范围为 [0,1],默认值为 0.5。取值越大,代表可识别的纯色范围越大。当该参数取值过大时,人像边缘和人像范围内的纯色也会被识别。建议你根据实际效果动态调整该参数的值。

注: 该参数仅在 modelType 设置为 segModelGreen 时生效。

screenColorType

屏幕颜色类型。详见 ScreenColorType。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?