目录

class info
com.huawei.hms.mlsdk.landmark.MLRemoteLandmarkAnalyzerSetting

Represents the landmark analysis configurator, which is used to obtain the landmark analyzer attributes.

The landmark analyzer attributes include:

1. Maximum number of detection results
2. Mode used by the analyzer
3. Whether certificate fingerprint authentication is enabled for the analyzer

Constant Summary

TypeNameDesc
MLRemoteLandmarkAnalyzerSettingDEFAULT_SETTINGSDefault instance of the landmark analysis configurator.
maxResults: maximum number of detection results.
The default value is 10.
modelType: mode used by the analyzer. The default value is 1,
indicating the stable mode (STEADY_PATTERN).
enforceCertFingerprintMatch: indicates whether certificate
fingerprint verification is enabled. The default value is false.
intNEWEST_PATTERNLatest mode.
intSTEADY_PATTERNStable mode.

Public Method Summary

Return typeMethod name
MLRemoteLandmarkAnalyzerSetting.Factorycreate()
booleanequals(Object obj)
intgetLargestNumOfReturns()
intgetPatternType()
inthashCode()

Constants

Constant
public static final MLRemoteLandmarkAnalyzerSetting DEFAULT_SETTINGS
Default instance of the landmark analysis configurator.
maxResults: maximum number of detection results. The default value is 10.
modelType: mode used by the analyzer. The default value is 1, indicating the stable mode (STEADY_PATTERN).
enforceCertFingerprintMatch: indicates whether certificate fingerprint verification is enabled. The default value is false.
Constant
public static final int NEWEST_PATTERN
Latest mode.
Constant value: 2
Constant
public static final int STEADY_PATTERN
Stable mode.
Constant value: 1

Public Methods

Method
public MLRemoteLandmarkAnalyzerSetting.Factory create()
Creates an instance of MLRemoteAnalyzerSetting.Factory.

Return

Typedesc
MLRemoteLandmarkAnalyzerSetting.FactoryReturns the instance of MLRemoteAnalyzerSetting.Factory.
Method
public boolean equals(Object obj)
Checks whether two landmark analysis configurator instances are equal.

Parameters

Parameter nameParameter desc
objLandmark analysis configurator to be compared.


Return

Typedesc
booleantrue: Two landmark analysis configurator instances are equal.
false: Two landmark analysis configurator instances are not equal.
Method
public int getLargestNumOfReturns()
Obtains the maximum number of detection results.

Return

Typedesc
intReturns the maximum number of detection results.
Method
public int getPatternType()
Obtains the mode used by the analyzer.

Return

Typedesc
intReturns the mode used by the analyzer.
STEADY_PATTERN: The value is 1, indicating the stable mode.
NEWEST_PATTERN: The value is 2, indicating the latest mode.
Method
public int hashCode()
Obtains the hash value of the landmark analysis configurator instance.

Return

Typedesc
intReturns the hash value of the landmark analysis configurator instance.