class info |
| com.huawei.hms.mlsdk.objects.MLObjectAnalyzerSetting.Factory |
| Creates an instance of the object analysis configurator to set object detection attributes. |
- 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() |
| Sets whether to support detection result classification. |
Return
| Type | desc |
| MLObjectAnalyzerSetting.Factory | Returns the instance of MLObjectAnalyzerSetting.Factory. |
| Method |
| public MLObjectAnalyzerSetting.Factory allowMultiResults() |
| Sets whether to support multi-object detection. |
Return
| Type | desc |
| MLObjectAnalyzerSetting.Factory | Returns the instance of MLObjectAnalyzerSetting.Factory. |
| Method |
| public MLObjectAnalyzerSetting create() |
| Creates an instance of the object analysis configurator. |
Return
| Type | desc |
| MLObjectAnalyzerSetting | Returns the instance of MLObjectAnalyzerSetting. |
| Method |
| public MLObjectAnalyzerSetting.Factory setAnalyzerType(int type) |
| Sets the object detection mode. |
Parameters
| Parameter name | Parameter desc |
| type | Detection mode. 1: TYPE_VIDEO, indicating the video stream mode 0: TYPE_PICTURE, indicating the image mode |
Return
| Type | desc |
| MLObjectAnalyzerSetting.Factory | Returns the instance of MLObjectAnalyzerSetting.Factory. |