| class info |
| com.huawei.hms.mlsdk.imgseg.MLImageSegmentationSetting |
图像分割检测器设置类:用于设置检测器(MLImageSegmentationAnalyzer)属性。属性包括: 1. 检测模式(人像检测模式、图像多类别检测模式),默认为人像检测模式。 2. 是否支持精细检测(人像模式和图像多分类检测模式都支持,默认为精细模式)。 3. 支持返回结果的种类,默认返回所有结果。 |
| Type | Name | Desc |
| int | BODY_SEG | 检测模式0:基于人像模型的检测。 |
| int | IMAGE_SEG | 检测模式1:基于图像多类别模式的检测。 |
| Return type | Method name |
| boolean | equals(Object target) |
| int | getAnalyzerType() |
| int | getScene() |
| int | hashCode() |
| boolean | isExact() |
| Constant |
| public static final int BODY_SEG |
| 检测模式0:基于人像模型的检测。 Constant Value: 0 |
| Constant |
| public static final int IMAGE_SEG |
| 检测模式1:基于图像多分类模式的检测。 Constant Value: 1 |
| Method |
| public boolean equals(Object target) |
| 判断输入实例是否与本实例相等。 |
Parameters
| Parameter name | Parameter desc |
| target | 对比的实例。 |
Return
| Type | desc |
| boolean | true:表示两个实例相等; false:表示两个实例不相等。 |
| Method |
| public int getAnalyzerType() |
| 获取检测模式。 |
Return
| Type | desc |
| int | 返回检测模式结果。 0:BODE_SEG表示人像检测模式(支持人和背景的区分); 1:IMAGE_SEG表示图像多类别模式(支持MLImageSegmentationClassification中所有物品分类)。 |
| Method |
| public int getScene() |
| 用户所需能力场景,用户可以根据自身需求选择需要返回的结果,从而减少不必要能力的处理时间。 |
Return
| Type | desc |
| int | 0:全部能力场景。 1:只要像素标记能力。 2:只要人像前景抠图能力。 |
| Method |
| public int hashCode() |
| 获取当前实例的哈希值。 |
Return
| Type | desc |
| int | 实例的哈希值。 |
| Method |
| public boolean isExact() |
| 是否是精细检测。 |
Return
| Type | desc |
| boolean | 返回当前是否是精细检测模式。 true:精细检测; false:非精细检测。 |