Display scene detection
1. Product overview
Built on display scene recognition and a multimodal large model, this product detects in-store display areas like shelves, coolers, and floor stacks. It outputs scene names, locations, display metrics, and supplementary bounding boxes for entire fixtures, making it ideal for fixture inspections, area visualization, and metric reviews.
2. Use cases
Display fixture inspection: Identify fixtures such as shelves, endcaps, floor stacks, upright coolers, and chest freezers.
Display metric review: Read available metrics, such as ratios, purity, and plenitude, for evaluation by downstream systems.
Display area visualization: Overlay display area locations and overall fixture bounding boxes on the original image.
3. Features
Structured scene output: Returns scene names, center points, area contours, and available metrics.
Holistic fixture detection: Provides a single bounding box for each independent fixture or stack, suitable for overall area review.
Dual coordinate systems: The
scenesobject uses the original normalized coordinates from the recognition service, while thegroundingobject uses integer-based coordinates on a 0–1000 scale.
The API accepts a single image URL over HTTPS. The supplementary grounding feature returns a maximum of 12 targets, each including a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the grounding is complete.
4. Developer guide
The request and response fields in this document follow the exact case sensitivity and structure of the corresponding API implementation. The examples show direct inputs and outputs for the business workflow and do not assume any platform gateway encapsulation. The public endpoint address, authentication method, and gateway encapsulation details depend on the final published API.
4.1 Request parameters
Parameter | Type | Required | Description |
imageUrl | String | Yes | The HTTPS URL of the source image for recognition. The URL must be publicly accessible and not contain spaces or embedded usernames or passwords. |
4.2 Request example
{
"imageUrl": "https://example.com/images/api-06.jpg"
}The image URL and knowledge base identifier in the example are placeholders. Replace them with your actual resources when making an API call.
4.3 Response parameters
Common fields:
Field path | Type | Description |
success | Boolean | Indicates whether the API call succeeded. A successful call does not guarantee that the business review passed. |
errorCode | String | An empty string on success, or an error code on failure. |
errorMessage | String | An empty string on success, or a detailed error message on failure. |
result | Object | The business result object. An empty object on failure. |
usageMap | Object | On success, returns |
usageMap.ProcessingCount | Integer | On success, the processing count is 1. This field is not returned on failure. |
Business fields:
Field path | Type | Description |
result.type | String | A fixed value of |
result.scenes | Array | A non-empty array of scene details. |
| result.scenes[].sceneName | String | Scene identifier. Always present and non-empty. |
| result.scenes[].sceneActualName | String | The display name for the scene. An empty string if not available. |
| result.scenes[].areaRate | Number | Optional. The area ratio. |
| result.scenes[].sceneCenter | Number[2] | The center point of the scene, in original normalized coordinates. An empty array if not available. |
| result.scenes[].sceneLocation | Array | A list of points defining the area contour. Each point is an {x,y} object in original normalized coordinates. An empty array if not available. |
| result.scenes[].sceneLocation[].x / y | Number | The x or y coordinate of a contour point. Not converted to the 0–1000 scale. |
| result.scenes[].ownPurity | Number | Optional. The purity metric for your own products. The recognition service determines the specific business logic. |
| result.scenes[].plumpness | Number | Optional. The plenitude metric for the display. |
| result.scenes[].shelfDistributionRate | Number | Optional. The shelf distribution ratio metric. The recognition service determines the specific business logic. |
Supplementary grounding fields:
Field path | Type | Description |
result.grounding | Object | The result of supplementary grounding. |
result.grounding.coverage | String |
|
result.grounding.regions | Array | An array of up to 12 targets. The array is empty if no relevant targets are found. |
| result.grounding.regions[].label | String | The target category. See the table below for enumerated values. |
| result.grounding.regions[].bbox_2d | Integer[4] | Bounding box as [x_min, y_min, x_max, y_max] in 0–1000 coordinates, where x_min < x_max and y_min < y_max. |
| result.grounding.regions[].text | String | A confirmed short name or text, up to 24 characters. An empty string if not legible. |
Target categories:
label | Description |
shelf | shelf |
endcap | endcap |
floor_stack | floor stack |
upright_cooler | upright cooler |
chest_freezer | chest freezer |
display_area | other display area |
To convert coordinates to pixel values: pixel_x = coordinate_x * original_image_width / 1000; pixel_y = coordinate_y * original_image_height / 1000.
If the grounding process returns only partial results, the response can still have success=true and coverage="partial". Truncation occurs if the service removes invalid boxes, deletes duplicates, shortens text, or the number of targets exceeds the limit. In these cases, the service retains only fully parsed, valid targets. A response with a valid but empty regions array is also considered successful, but this does not imply that the upstream business logic permits an empty result. If the main business recognition succeeds but supplementary grounding fails, the overall call is still successful. In this case, grounding.coverage returns an empty string, grounding.regions returns an empty array, and ProcessingCount is still 1. If the main business recognition fails, the entire call fails.
The service converts percentage strings to ratios; for example, "80%" becomes 0.8. The response omits optional scalar values if not present. The coordinates in sceneCenter and sceneLocation are not converted to the 0–1000 scale, and original coordinates slightly outside the 0–1 range are not clipped.
4.4 Response examples
The following examples show the response structure, not actual test results.
1) Successful response
{
"success": true,
"errorCode": "",
"errorMessage": "",
"result": {
"type": "scene",
"scenes": [
{
"sceneName": "shelf",
"sceneActualName": "shelf",
"areaRate": 0.8,
"sceneCenter": [
0.5,
0.5
],
"sceneLocation": [
{
"x": 0.1,
"y": 0.1
},
{
"x": 0.9,
"y": 0.1
},
{
"x": 0.9,
"y": 0.9
}
],
"ownPurity": 1.0,
"plumpness": 0.8,
"shelfDistributionRate": 0.2
}
],
"grounding": {
"coverage": "complete",
"regions": [
{
"label": "shelf",
"bbox_2d": [
100,
200,
300,
400
],
"text": "shelf"
}
]
}
},
"usageMap": {
"ProcessingCount": 1
}
}2) Supplementary grounding returns partial results
{
"success": true,
"errorCode": "",
"errorMessage": "",
"result": {
"type": "scene",
"scenes": [
{
"sceneName": "shelf",
"sceneActualName": "shelf",
"areaRate": 0.8,
"sceneCenter": [
0.5,
0.5
],
"sceneLocation": [
{
"x": 0.1,
"y": 0.1
},
{
"x": 0.9,
"y": 0.1
},
{
"x": 0.9,
"y": 0.9
}
],
"ownPurity": 1.0,
"plumpness": 0.8,
"shelfDistributionRate": 0.2
}
],
"grounding": {
"coverage": "partial",
"regions": [
{
"label": "shelf",
"bbox_2d": [
100,
200,
300,
400
],
"text": ""
}
]
}
},
"usageMap": {
"ProcessingCount": 1
}
}Main task successful, supplementary grounding unavailable
{
"success": true,
"errorCode": "",
"errorMessage": "",
"result": {
"type": "scene",
"scenes": [
{
"sceneName": "shelf",
"sceneActualName": "shelf",
"areaRate": 0.8,
"sceneCenter": [
0.5,
0.5
],
"sceneLocation": [
{
"x": 0.1,
"y": 0.1
},
{
"x": 0.9,
"y": 0.1
},
{
"x": 0.9,
"y": 0.9
}
],
"ownPurity": 1.0,
"plumpness": 0.8,
"shelfDistributionRate": 0.2
}
],
"grounding": {
"coverage": "",
"regions": [ ]
}
},
"usageMap": {
"ProcessingCount": 1
}
}Parameter error response
{
"success": false,
"errorCode": "InvalidParameter",
"errorMessage": "imageUrl must be a valid HTTPS image URL.",
"usageMap": {},
"result": {}
}Processing failure response
{
"success": false,
"errorCode": "DownstreamUnavailable",
"errorMessage": "Failed to obtain valid display scene recognition results.",
"usageMap": {},
"result": {}
}4.5 Error codes
Error code | Description | Action |
InvalidParameter | The input is invalid, or the recognition service explicitly returned a business error. | Correct the parameters or business input based on the |
DownstreamUnavailable | A processing exception occurred, such as an authentication failure, rate limiting, timeout, empty response, missing fields, or parsing error. | Check the resource and service status based on the |
Evaluate the outcome by checking the success, errorCode, and errorMessage fields. The source implementation document does not specify HTTP status codes for each business error type. For platform-level common error codes, see Error Codes. The table above lists the error codes specific to this API workflow.