| class info |
| com.huawei.hms.mlsdk.productvisionsearch.MLProductVisionSearch |
| Describes the result of product visual search. The information includes: 1. type: product type. 2. border: axis-aligned bounding rectangle, including left, top, right, and bottom. The values of left and top form the upper-left corner coordinates of the bounding rectangle, and the values of right and bottom form the lower-right corner coordinates. Currently, there is no gradient. 3. productList: product information list, which is sorted by confidence in descending order. |
| Constructor name |
| MLProductVisionSearch(String type, Rect border, List<MLVisionSearchProduct> productList)Constructor. |
| Return type | Method name |
| Rect | getBorder() |
| List<MLVisionSearchProduct> | getProductList() |
| String | getType() |
| Method |
| MLProductVisionSearch(String type, Rect border, List<MLVisionSearchProduct> productList) |
| Constructor. |
Parameters
| Parameter name | Parameter desc |
| type | Product type. |
| border | Axis-aligned bounding rectangle, including left, top, right, and bottom. The values of left and top form the upper-left corner coordinates of the bounding rectangle, and the values of right and bottom form the lower-right corner coordinates. Currently, there is no gradient. |
| productList | Product information list. |
Return
| Type | desc |
| Rect | Returns the axis-aligned bounding rectangle of a product in an image. |
| Method |
| public List<MLVisionSearchProduct> getProductList() |
| Obtains the product information list. |
Return
| Type | desc |
| List<MLVisionSearchProduct> | Returns the product information list. |
| Method |
| public String getType() |
| Obtains the product type. |
Return
| Type | desc |
| String | Returns the product type. |