Display Detection Lite

Updated at:

1. Product overview

Display Detection Lite is a lightweight product built on SKU recognition and grounding by a multimodal large model. It is designed for images of retail fixtures like a shelf, end cap, freezer, display stand, or display stack. The product aggregates product locations by SKU and supplements this data with grounding, bounding boxes, and short names for visible individual items. This helps your business systems display product locations, perform display audits, and conduct stocking verification.

2. Use cases

  1. Display auditing: The service returns detected product bounding boxes grouped by SKU for your business system to perform counts.

  2. Stocking verification: You can compare the list of recognized SKUs against your target list.

  3. Item location review: You can use the product bounding boxes and visible names to help verify recognition results.

3. Features

  1. Aggregation by SKU: In the Products array, multiple Boxes are grouped under the same SkuId. The skuIds field returns a list of unique SKU codes.

  2. Supplementary item grounding: The multimodal large model individually locates each recognizable sales packaging and provides a verifiable short name.

  3. Independent result sets: The Products array is generated from SKU recognition, while the grounding object is from supplementary grounding. The grounding object does not return SKU codes and does not necessarily have a one-to-one correspondence with the items in Products.

The API accepts a single HTTPS image URL as input. The grounding feature returns up to 12 targets. Each target includes a category, a bounding box, and visible text of up to 24 characters. The coverage field indicates whether the grounding is complete.

4. Developer guide

Refer to the actual published API for the public endpoint URL, authentication method, and platform gateway encapsulation details.

4.1 Request parameters

Parameter

Type

Required

Description

imageUrl

String

Yes

The HTTPS URL of the image to recognize. The URL must be accessible and must not contain whitespace or embedded username/password credentials.

4.2 Request example

{
  "imageUrl": "https://example.com/images/api-05.jpg"
}

The sample image URL and knowledge base identifier (if any) are placeholder values. Replace them with your actual resources when calling the API.

4.3 Response parameters

Common fields:

Field path

Type

Description

success

Boolean

Indicates whether the API call was successful. A successful call does not necessarily mean the operation passed all business checks.

errorCode

String

An empty string for a successful call, or an error code if the call fails.

errorMessage

String

An empty string for a successful call, or a detailed error message if the call fails.

result

Object

The business result object. This is an empty object if the call fails.

usageMap

Object

Returns {"ProcessingCount":1} if the call is successful. This is an empty object if the call fails.

usageMap.ProcessingCount

Integer

The processing count, which is 1 if the call is successful. This field is not returned if the call fails.

Business-specific fields:

Field path

Type

Description

result.type

String

The value is always sku.

result.Products

Array

An array of results aggregated by SKU. This array is not empty if the call is successful.

| result.Products[].SkuId | String | The SKU identifier, derived by removing the _ce suffix from the recognition name. |

| result.Products[].Boxes | Array | An array of bounding boxes for this SKU. |

| result.Products[].Boxes[].Left / Top / Right / Bottom | Integer | The left, top, right, and bottom coordinates. Range: 0–1000. The box must have a non-zero area. |

| result.skuIds | Array | A list of unique SkuId values. |

Grounding fields:

Field path

Type

Description

result.grounding

Object

The supplementary grounding results.

result.grounding.coverage

String

complete: All relevant visible targets are located. partial: Only some targets are valid or recognizable. Empty string: No valid grounding results are available.

result.grounding.regions

Array

An array of targets, with a maximum of 12 items. This can be empty if no relevant targets are found.

| result.grounding.regions[].label | String | The target category. See the table below for possible values. |

| result.grounding.regions[].bbox_2d | Integer[4] | The bounding box coordinates: [x_min, y_min, x_max, y_max]. Range: 0–1000, where x_min < x_max and y_min < y_max. |

| result.grounding.regions[].text | String | A verifiable short name or text, up to 24 characters. An empty string if the text is illegible. |

Target categories:

Label

Description

product

A single product item.

To convert the normalized coordinates to pixel values, use the following formulas: pixel_x = coordinate_x * original_image_width / 1000 and pixel_y = coordinate_y * original_image_height / 1000.

The call can return success=true and coverage=partial if grounding yields only partial results. The coverage is also marked as partial if results are incomplete due to invalid boxes, duplicate removal, text shortening, or exceeding the target limit. A successful response can contain an empty but valid regions array, which does not imply that the upstream business logic also permits an empty result. If the primary SKU recognition succeeds but the grounding fails, the overall call is still considered successful. In this case, grounding.coverage is an empty string, grounding.regions is an empty array, and ProcessingCount is still 1. If the primary SKU recognition fails, the entire API call fails.

SKU results are aggregated by SkuId, skipping any items with empty names or with empty or caps labels. This version does not filter out all pending item results. Product bounding box coordinates are calculated from the original normalized coordinates, multiplied by 1000, rounded to the nearest integer, and clamped to the 0–1000 range. The call fails if the Products array is empty, or if the bounding boxes for items to be processed are invalid or have no area. The 12-box limit applies only to the grounding results.

4.4 Response examples

The following examples show the response structure and are not based on actual test results.

1. Successful response

{
  "success": true,
  "errorCode": "",
  "errorMessage": "",
  "result": {
    "type": "sku",
    "Products": [
      {
        "SkuId": "sku_test",
        "Boxes": [
          {
            "Left": 100,
            "Top": 200,
            "Right": 300,
            "Bottom": 400
          }
        ]
      }
    ],
    "skuIds": [
      "sku_test"
    ],
    "grounding": {
      "coverage": "complete",
      "regions": [
        {
          "label": "product",
          "bbox_2d": [
            100,
            200,
            300,
            400
          ],
          "text": "Beverage"
        }
      ]
    }
  },
  "usageMap": {
    "ProcessingCount": 1
  }
}

2. Response with partial grounding results

{
  "success": true,
  "errorCode": "",
  "errorMessage": "",
  "result": {
    "type": "sku",
    "Products": [
      {
        "SkuId": "sku_test",
        "Boxes": [
          {
            "Left": 100,
            "Top": 200,
            "Right": 300,
            "Bottom": 400
          }
        ]
      }
    ],
    "skuIds": [
      "sku_test"
    ],
    "grounding": {
      "coverage": "partial",
      "regions": [
        {
          "label": "product",
          "bbox_2d": [
            100,
            200,
            300,
            400
          ],
          "text": ""
        }
      ]
    }
  },
  "usageMap": {
    "ProcessingCount": 1
  }
}

Successful response with unavailable grounding

{
  "success": true,
  "errorCode": "",
  "errorMessage": "",
  "result": {
    "type": "sku",
    "Products": [
      {
        "SkuId": "sku_test",
        "Boxes": [
          {
            "Left": 100,
            "Top": 200,
            "Right": 300,
            "Bottom": 400
          }
        ]
      }
    ],
    "skuIds": [
      "sku_test"
    ],
    "grounding": {
      "coverage": "",

      "regions": [ ]

    }
  },
  "usageMap": {
    "ProcessingCount": 1
  }
}

Parameter error response

{
  "success": false,
  "errorCode": "InvalidParameter",
  "errorMessage": "The imageUrl must be a valid HTTPS image URL",
  "usageMap": {},
  "result": {}
}

Processing failure response

{
  "success": false,
  "errorCode": "DownstreamUnavailable",
  "errorMessage": "Failed to obtain valid product recognition results",
  "usageMap": {},
  "result": {}
}

4.5 Error codes

Error code

Description

Suggested action

InvalidParameter

The input is invalid, or the recognition service explicitly returned a business error.

Check the errorMessage, correct the parameters or business input, and then retry the call.

DownstreamUnavailable

A processing exception occurred, such as an issue with authentication, rate limiting, timeout, an empty response, missing fields, or parsing errors.

Check your resources and the service status based on the errorMessage. If the issue is temporary, you can retry after a short delay.

Evaluate the outcome by checking the success, errorCode, and errorMessage fields together. The source orchestration document does not define HTTP status codes for each business error type. For platform-wide common error codes, see Error codes. The table above lists the error codes specific to this API's workflow.