| class info |
| com.huawei.hms.mlsdk.objects.MLObjectAnalyzerSetting |
| Sets the attributes of the object analyzer (MLObjectAnalyzer). The analyzer attributes include: 1. Detection mode 2. Whether to support detection result classification 3. Whether to support multi-object detection |
| Type | Name | Desc |
| int | TYPE_PICTURE | Detection mode 0: image-based detection |
| int | TYPE_VIDEO | Detection mode 1: video stream-based detection |
| Return type | Method name |
| boolean | equals(Object target) |
| int | getAnalyzerType() |
| int | hashCode() |
| boolean | isClassificationAllowed() |
| boolean | isMultipleResultsAllowed() |
| Constant |
| public static final int TYPE_PICTURE |
| Detection mode 0: image-based detection |
| Constant value: 0 |
| Constant |
| public static final int TYPE_VIDEO |
| Detection mode 1: video stream-based detection |
| Constant value: 1 |
| Method |
| public boolean equals(Object target) |
| Determines whether the input instance is equal to the current instance. |
Parameters
| Parameter name | Parameter desc |
| target | Instance to be compared. |
Return
| Type | desc |
| boolean | true: The instances are equal. false: The instances are not equal. |
| Method |
| public final int getAnalyzerType() |
| Obtains the detection mode. |
Return
| Type | desc |
| int | Returns the detection mode result. 1: TYPE_VIDEO, indicating video stream-based detection 0: TYPE_PICTURE, indicating image-based detection |
| Method |
| public int hashCode() |
| Obtains the hash value of the current instance. |
Return
| Type | desc |
| int | Hash value of the instance. |
| Method |
| public final boolean isClassificationAllowed() |
| Determines whether to support detection result classification, for example, by plant or furniture. |
Return
| Type | desc |
| boolean | Indicates whether to support detection result classification. true: yes false: no |
| Method |
| public final boolean isMultipleResultsAllowed() |
| Determines whether the current mode is multi-object detection. |
Return
| Type | desc |
| boolean | Indicates whether the current mode is multi-object detection. true: yes, identify multiple objects false: no, identify only one object |