Storefront scene recognition
1. Introduction
This product audits store photos using a multimodal large model that performs Storefront Scene Recognition and element location. It classifies storefront scenes, provides confidence scores, and locates key elements like the storefront, store sign, entrance, and business signs. It is ideal for store data collection, storefront photo classification, and inspection reviews.
2. Use cases
Storefront photo classification: Distinguishes between storefront and non-storefront images.
Store profile verification: Locates store signs and entrances to extract clear, readable text.
Multi-store photo review: Individually locate the visible storefronts and signs of adjacent stores.
3. Features
Scene classification and details: Returns a
scenesstring array and detailed classification information in thedetailsfield. Images classified as non-storefront are also considered valid results.Key storefront element location: Covers the storefront, store sign, store entrance, and business-related signs.
Readable text extraction: Extracts only clear, short text. It does not infer business status based on whether a door is open or closed, nor does it infer addresses or store affiliation.
The API accepts a single HTTPS image as input. Its supplementary location feature returns up to 12 targets. Each target includes a category, bounding box, and up to 24 characters of visible text. The coverage field indicates whether the location process is complete.
4. API reference
The examples show the direct I/O for the business workflow and do not include any encapsulation by a platform gateway. Refer to the final published API documentation for the public endpoint URL, authentication method, and gateway specifics.
4.1 Request parameters
Parameter | Type | Required | Description |
imageUrl | String | Yes | The publicly accessible HTTPS URL of the image to analyze. The URL must not contain spaces or embedded credentials. |
4.2 Request example
{
"imageUrl": "https://example.com/images/api-04.jpg"
}The sample image URL and knowledge base identifier (if any) are placeholders. Replace them with your actual resources when making the call.
4.3 Response parameters
General fields:
Field path | Type | Description |
success | Boolean | Indicates if the API call succeeded. A value of |
errorCode | String | Empty string on success; an error code on failure. |
errorMessage | String | Empty string on success; a detailed error description on failure. |
result | Object | The business result object. An empty object on failure. |
usageMap | Object | Returns |
usageMap.ProcessingCount | Integer | The count of successfully processed items, which is |
Business fields:
Field path | Type | Description |
result.scenes | Array | A non-empty array of scene classifications. See the full API specification for a complete list of enumerations. |
result.details | Array | Classification details. Can be an empty array. |
The result.details[].class field is a string that specifies the category name.
The result.details[].confidence field is a number. The value range is defined in the full API specification.
Supplementary location fields:
Field path | Type | Description |
result.grounding | Object | Results of the supplementary element location. |
result.grounding.coverage | String |
|
result.grounding.regions | Array | An array of targets, with a maximum of 12 items. Can be empty if no relevant targets are found. |
| result.grounding.regions[ ].label | String | Target category. See the table below for enumeration values. |
The result.grounding.regions[].bbox_2d field is an integer array of four values representing the bounding box: [x_top_left, y_top_left, x_bottom_right, y_bottom_right]. Coordinates are normalized to a 0–1000 scale, where 'left' must be less than 'right', and 'top' must be less than 'bottom'.
| result.grounding.regions[ ].text | String | The recognized short name or text, with a maximum of 24 characters. Returns an empty string if the text is not readable. |
Target categories:
label | Description |
storefront | The entire storefront |
store_sign | Store sign |
entrance | Store entrance |
business_sign | Business-related sign |
To convert normalized coordinates to pixel values, use the following formulas: pixel_x = coordinate_x * image_width / 1000 and pixel_y = coordinate_y * image_height / 1000.
The API may return success=true with coverage=partial if the location process is incomplete. The coverage is marked partial if results are truncated, invalid boxes are removed, duplicates are deleted, text is shortened, or the target count exceeds the limit. A response with a valid but empty regions array is still considered successful; however, this does not guarantee that the calling business workflow accepts an empty result. The entire request fails if the location service fails, the results cannot be recovered, or all bounding boxes are invalid.
4.4 Response examples
The following examples illustrate the response structure and do not represent actual test data.
1) Successful response
{
"success": true,
"errorCode": "",
"errorMessage": "",
"result": {
"scenes": [
"Non-storefront photo"
],
"details": [ ],
"grounding": {
"coverage": "complete",
"regions": [ ]
}
},
"usageMap": {
"ProcessingCount": 1
}
}2) Partial results from supplementary location
{
"success": true,
"errorCode": "",
"errorMessage": "",
"result": {
"scenes": [
"Non-storefront photo"
],
"details": [ ],
"grounding": {
"coverage": "partial",
"regions": [ ]
}
},
"usageMap": {
"ProcessingCount": 1
}
}Invalid parameter 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 element location results",
"usageMap": {},
"result": {}
}4.5 Error codes
Error code | Description | Recommended action |
InvalidParameter | The input is invalid, or the recognition service explicitly returns a business error. | Correct the parameters or business input based on the |
DownstreamUnavailable | An exception occurred during processing. This can be caused by issues with authentication, rate limiting, a timeout, an empty response, missing fields, or response parsing. | Check the resource and service status based on the |
Evaluate call results by checking the success, errorCode, and errorMessage fields. The HTTP status codes for business errors are not defined here. For common platform errors, see Error Codes.