| class info |
| com.huawei.hms.mlsdk.objects.MLObjectAnalyzerSetting.Factory |
| 创建对象分析配置器的实例,用于设置对象检测的属性。 |
- MLObjectAnalyzerSetting options = new MLObjectAnalyzerSetting.Factory()
- .allowClassification()
- .setAnalyzerType(MLObjectAnalyzerSetting.TYPE_VIDEO)
- .create();
| Return type | Method name |
| MLObjectAnalyzerSetting.Factory | allowClassification() |
| MLObjectAnalyzerSetting.Factory | allowMultiResults() |
| MLObjectAnalyzerSetting | create() |
| MLObjectAnalyzerSetting.Factory | setAnalyzerType(int type) |
| Method |
| public MLObjectAnalyzerSetting.Factory allowClassification() |
| 设置是否对检测结果进行分类。 |
Return
| Type | desc |
| MLObjectAnalyzerSetting.Factory | 返回MLObjectAnalyzerSetting.Factory的实例。 |
| Method |
| public MLObjectAnalyzerSetting.Factory allowMultiResults() |
| 设置是否支持多对象检测。 |
Return
| Type | desc |
| MLObjectAnalyzerSetting.Factory | 返回MLObjectAnalyzerSetting.Factory的实例。 |
| Method |
| public MLObjectAnalyzerSetting create() |
| 创建对象分析配置器实例。 |
Return
| Type | desc |
| MLObjectAnalyzerSetting | 返回MLObjectAnalyzerSetting的实例。 |
| Method |
| public MLObjectAnalyzerSetting.Factory setAnalyzerType(int type) |
| 设置对象检测模式。 |
Parameters
| Parameter name | Parameter desc |
| type | 检测模式: 1:TYPE_VIDEO,表示视频流模式 0:TYPE_PICTURE,表示图片模式 |
Return
| Type | desc |
| MLObjectAnalyzerSetting.Factory | 返回MLObjectAnalyzerSetting.Factory的实例。 |