| com.huawei.hms.mlsdk.classification.MLRemoteClassificationAnalyzerSetting.Factoryclass info |
| com.huawei.hms.mlsdk.classification.MLRemoteClassificationAnalyzerSetting.Factory |
| Creates an instance of the on-cloud image classification configurator. |
| Return type | Method name |
| MLRemoteClassificationAnalyzerSetting | create() |
| MLRemoteClassificationAnalyzerSetting.Factory | setLargestNumOfReturns(int largestNum) |
| MLRemoteClassificationAnalyzerSetting.Factory | setMinAcceptablePossibility(float minAcceptablePossibility) |
| Method |
| public MLRemoteClassificationAnalyzerSetting create() |
| Creates an instance of the on-cloud image classification configurator. |
Return
| Type | desc |
| MLRemoteClassificationAnalyzerSetting | Returns the instance of MLRemoteClassificationAnalyzerSetting. |
Sample Code
- MLRemoteClassificationAnalyzerSetting setting = new MLRemoteClassificationAnalyzerSetting.Factory()
- .setMinAcceptablePossibility(0.8f)
- .setLargestNumOfReturns(0)
- .create();
| Method |
| public MLRemoteClassificationAnalyzerSetting.Factory setLargestNumOfReturns(int largestNum) |
| Sets the maximum number of classifications to be returned from the analyzer. |
Parameters
| Parameter name | Parameter desc |
| largestNum | Maximum number of classifications. |
Return
| Type | desc |
| MLRemoteClassificationAnalyzerSetting.Factory | Returns the instance of MLRemoteClassificationAnalyzerSetting.Factory. |
| Method |
| public MLRemoteClassificationAnalyzerSetting.Factory setMinAcceptablePossibility(float minAcceptablePossibility) |
| Sets the confidence threshold for the on-cloud image classification analyzer. |
Parameters
| Parameter name | Parameter desc |
| minAcceptablePossibility | Confidence threshold. The value range is 0.0–1.0 (default value: 0.5). Classifications whose confidence is lower than the threshold will be filtered out. |
Return
| Type | desc |
| MLRemoteClassificationAnalyzerSetting.Factory | Returns the instance of MLRemoteClassificationAnalyzerSetting.Factory. |