Comment on page
Planogram Compliance
Run in postman
Send a POST request to
https://api.cloud.nodeflux.io/v1/analytics/clientname-planogram-compliance
by providing these arguments as application/json
.{
"additional_params":{
"template": []
},
"images": [
"{INSERT_JPEG_IMAGE_AS_BASE64_STRING}"
]
}
Key | Type | Description |
template | array | Additional parameter to manually select the template you choose. |
images | array |
Sample request
"additional_params":{
"template": [[1, 2, 4], [3,4,5]]
},
"images": [
"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/
2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhY
aHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/"
]
}
- Provide only 1 image.
HTTP Mapping: 202 Accepted
{
"job": {
"id": "a-very-long-job-id",
"result": {
"status": "success",
"analytic_type": "CLIENTNAME_PLANOGRAM_COMPLIANCE",
"sku_detection":[
{
"label": "4",
"confidence": 0.99992025,
"bounding_box": {
"top": 11,
"left": 466,
"height": 80,
"width": 47
}
},
{
"label": "10",
"confidence": 0.9997944,
"bounding_box": {
"top": 11,
"left": 424,
"height": 80,
"width": 46
}
}
],
"planogram_compliance_score": 0.8181818
}
},
"message": "Job successfully submitted!",
"ok": true
}
Key | Type | Description |
id | string | Job ID of your request. |
status | string | Status of your success , ongoing , or failed . |
analytic_type | string | Type of analytic that your request. |
label | string | Class type recognized by the model. |
confidence | float | Confidence level of label based on the registered label. |
bounding_box | dict | Bounding box coordinate in ratio of overall image size.
top is the top (y) coordinate of the bounding box.
left is the left (x) coordinate of the bounding box.
left is the height of the bounding box.
width is the width of the bounding box. |
planogram_compliance_score | float | Result score of planogram matching process. |
Last modified 1yr ago