Last Updated on : 2021-07-16 08:12:08download
Detect the pets in an image and return the specific coordinates of the pets. The image size cannot exceed 500 KB, and the resolution cannot exceed 2560 × 1440. Up to two pets can be recognized simultaneously, and the size of a pet is not less than 150 × 150 pixels. >Note: Base64 encoded data does not include the image header, such as data:image/jpg;base64,
.
POST: /v1.0/iot-03/ai-vision/pet-detection
Parameter name | Type | Description |
---|---|---|
result | List |
Description of result
Parameter name | Type | Description |
---|---|---|
confidence | Float | A greater confidence value indicates higher accuracy. Valid values: 0–1. |
coordinates | CoordinatesRes | The coordinates of the pet in the image. |
Description of coordinates
Parameter name | Type | Description |
---|---|---|
left | Integer | The distance between the pet and the left border of the image, in pixels. |
top | Integer | The distance between the pet and the top border of the image, in pixels. |
right | Integer | The distance between the pet and the right border of the image, in pixels. |
bottom | Integer | The distance between the pet and the bottom border of the image, in pixels. |
POST: /v1.0/iot-03/ai-vision/pet-detection
{
"image": "/9j/4AAQSkxxxxxxxxxxxxxxxx"
}
{
"result": {
"confidence": "0.96324956",
"coordinates": {
"bottom": "932",
"right": "777",
"top": "10",
"left": "0"
}
},
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback