| class info |
| com.huawei.hms.mlsdk.common.MLAnalyzer.Result |
| Represents a detection result,encapsulation class,including : 1.the detection results 2.image metadata3.availability of the encapsulated data |
| Constructor name |
| Result(android.util.SparseArray<T> analyseList, MLFrame.Property frameProperty, boolean isAnalyzerAvailable) |
| Instantiates a class for encapsulating detection results. |
| Return type | Method name |
| android.util.SparseArray<T> | getAnalyseList() |
| MLFrame.Property | getFrameProperty() |
| boolean | isAnalyzerAvaliable() |
| Method |
| public Result(android.util.SparseArray<T> analyseList, MLFrame.Property frameProperty, boolean isAnalyzerAvailable) |
| Instantiates a class for encapsulating detection results. |
Parameters
| Parameter name | Parameter desc |
| analyseList | Original detection result list obtained by an analyzer. |
| frameProperty | Image metadata, including the image width and height. |
| isAnalyzerAvailable | Indicates whether the encapsulated data is available. |
| Method |
| public android.util.SparseArray<T> getAnalyseList() |
| Obtains the detection result list. |
Return
| Type | desc |
| android.util.SparseArray<T> | Detection result list, for example, SparseArray<MLFace>. |
| Method |
| public MLFrame.Property getFrameProperty() |
| Obtains image metadata. |
Return
| Type | desc |
| MLFrame.Property | Image metadata, including the image width and height. |
| Method |
| public boolean isAnalyzerAvaliable() |
| Checks whether the encapsulated data is available. |
Return
| Type | desc |
| boolean | true: encapsulated data available false: encapsulated data unavailable |