目录

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

Constant Summary

TypeNameDesc
intTYPE_PICTUREDetection mode 0: image-based detection
intTYPE_VIDEODetection mode 1: video stream-based detection

Public Method Summary

Return typeMethod name
booleanequals(Object target)
intgetAnalyzerType()
inthashCode()
booleanisClassificationAllowed()
booleanisMultipleResultsAllowed()

Constants

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

Public Methods

Method
public boolean equals(Object target)
Determines whether the input instance is equal to the current instance.

Parameters

Parameter nameParameter desc
targetInstance to be compared.


Return

Typedesc
booleantrue: The instances are equal.
false: The instances are not equal.
Method
public final int getAnalyzerType()
Obtains the detection mode.

Return

Typedesc
intReturns 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

Typedesc
intHash value of the instance.
Method
public final boolean isClassificationAllowed()
Determines whether to support detection result classification, for example, by plant or furniture.

Return

Typedesc
booleanIndicates 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

Typedesc
boolean

Indicates whether the current mode is multi-object detection.

true: yes, identify multiple objects

false: no, identify only one object