The image-based product detection API of HUAWEI ML Kit automatically identifies objects in images or taken by cameras, searches for similar products in third-party apps online, and displays the results to users.
For example, you can scan a product in a shopping app to quickly find the product.
| Class name | Class description |
| MLProductVisionSearch | Describes the result of product visual search. The information includes: 1. type: product type. (For details, please refer to the list of product types for product visual search.) 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. |
| MLVisionSearchProduct | Describes the product information. 1. productId: product ID. 2. imageList: product image list. |
| MLVisionSearchProductImage | Describes product image information. 1. productId: product ID. 2. imageId: product image ID. 3. possibility: confidence. |
| MLRemoteProductVisionSearchAnalyzer | Represents the product visual search analyzer, which detects product information from a supplied image. After the cloud API is called, the detection model runs on the cloud. A product visual search analyzer can be created in either of the following ways: // Method 1: Use default parameter settings. MLRemoteProductVisionSearchAnalyzer analyzer = MLAnalyzerFactory.getInstance().getRemoteProductVisionSearchAnalyzer(); // Method 2: Use customized parameter settings. MLRemoteProductVisionSearchAnalyzer analyzer = MLAnalyzerFactory.getInstance().getRemoteProductVisionSearchAnalyzer(setting); |
| MLRemoteProductVisionSearchAnalyzerSetting | Product visual search configurator, which is used to set the attributes of on-cloud product visual search. Attributes of on-cloud product visual search include: 1. Maximum number of products 2. Confidence threshold (reserved). |
| MLRemoteProductVisionSearchAnalyzerSetting.Factory | Factory class of MLRemoteProductVisionSearchAnalyzerSetting. |