目录

class info
com.huawei.hms.mlsdk.productvisionsearch.cloud.MLRemoteProductVisionSearchAnalyzerSetting.Factory
Factory class of MLRemoteProductVisionSearchAnalyzerSetting.

Public Method Summary

Return typeMethod name
MLRemoteProductVisionSearchAnalyzerSettingcreate()
MLRemoteProductVisionSearchAnalyzerSetting.FactorysetLargestNumOfReturns(int maxResults)

Public Methods

Method
public MLRemoteProductVisionSearchAnalyzerSetting create()
Creates an instance of the product visual search configurator (MLRemoteProductVisionSearchAnalyzerSetting).

Return

Typedesc
MLRemoteProductVisionSearchAnalyzerSettingReturns an instance of the product visual search configurator (MLRemoteProductVisionSearchAnalyzerSetting).
Method
public MLRemoteProductVisionSearchAnalyzerSetting.Factory setLargestNumOfReturns(int maxResults)
Sets the maximum number of detection results for the analyzer.

Parameters

Parameter nameParameter desc
maxResultsReturns the maximum number of detection results. The value ranges from 1 to 20. The default value is 5.


Return

Typedesc
MLRemoteProductVisionSearchAnalyzerSetting.FactoryReturns the instance of MLRemoteProductVisionSearchAnalyzerSetting.Factory.