Request parameter details
Parameter Name | Required or not | Type | Description |
---|---|---|---|
imageUrl | when the imageUrl field exists the imageFile is invalid | string | Full URL of the image, URL length not more than 1024 bytes, URL corresponding image base64 encoded size not more than 4M, shortest side at least 15px, longest side maximum 4096px, support jpg/jpeg/png/bmp format.Please pay attention to closing the URL anti-theft chain. |
imageFile | If you select the imageFile field, do not fill in the imageUrl field | file | Size not more than 4M, shortest side at least 15px, longest side max 4096px, support jpg/jpeg/png/bmp format |
Return to data parameter details
Field | Required or not | Type | Description |
---|---|---|---|
hand_num | Required | uint32 | Number of hands detected |
hand_info | Not Required | object[] | Hand joint point information |
+location | Not Required | object | Hand coordinate information |
++left | Not Required | int | Distance of the hand area from the left border |
++top | Not Required | int | Distance of the hand area from the upper boundary |
++width | Not Required | int | Width of the hand area |
++height | Not Required | int | Height of the hand area |
+hand_parts | Required | object | Hand bone node information, containing 21 key points |
++0 | Required | object | Labeling of key points, 0-20 |
+++x | Required | uint32 | x-coordinates |
+++y | Required | uint32 | y-coordinates |
+++score | Required | float | Confidence score |
… | … | … | … |
++20 | Required | object | Key Point #20 |
+++x | Required | uint32 | x-coordinates |
+++y | Required | uint32 | y-coordinates |
+++score | Required | float | Confidence score |
Returned code
Code | Message | Description |
---|---|---|
0 | success | |
216100 | invalid param | The request contains illegal parameters, please check and try again |
216200 | empty image | Image is empty, please check and try again |
216201 | image format error | The format of the uploaded image is wrong, at this stage, the supported image formats are PNG, JPG, and BMP, please transcode or replace the image |
216202 | image size error | The size of the uploaded image is wrong, at this stage, the supported image size is less than 4M after base64 encoding, and the resolution is not higher than 4096 * 4096, please re-upload the image |
216630 | recognize error | Recognition error, please request again |
282810 | image recognize error | Recognition error, please request again |
Return Example
Return to the schematic diagram of the corresponding positions of the key points.
{
"code": 0,
"data": {
"hand_info": [
{
"hand_parts": {
"0": {
"score": 0.816012442111969,
"x": 829,
"y": 707
},
"1": {
"score": 0.6850221157073975,
"x": 873,
"y": 620
},
"10": {
"score": 0.8594757914543152,
"x": 786,
"y": 325
},
"11": {
"score": 0.8891843557357788,
"x": 818,
"y": 249
},
"12": {
"score": 0.8527721166610718,
"x": 840,
"y": 151
},
"13": {
"score": 0.8194193243980408,
"x": 720,
"y": 424
},
"14": {
"score": 0.8391802310943604,
"x": 720,
"y": 347
},
"15": {
"score": 0.8413540720939636,
"x": 720,
"y": 282
},
"16": {
"score": 0.8511560559272766,
"x": 731,
"y": 194
},
"17": {
"score": 0.8470437526702881,
"x": 687,
"y": 489
},
"18": {
"score": 0.8878282308578491,
"x": 644,
"y": 434
},
"19": {
"score": 0.8626730442047119,
"x": 622,
"y": 391
},
"2": {
"score": 0.7553223967552185,
"x": 916,
"y": 533
},
"20": {
"score": 0.9111039638519287,
"x": 567,
"y": 325
},
"3": {
"score": 0.7928290963172913,
"x": 938,
"y": 467
},
"4": {
"score": 0.8811469674110413,
"x": 993,
"y": 380
},
"5": {
"score": 0.9072378277778625,
"x": 829,
"y": 424
},
"6": {
"score": 0.6283305883407593,
"x": 862,
"y": 358
},
"7": {
"score": 0.7752542495727539,
"x": 916,
"y": 391
},
"8": {
"score": 0.8796406984329224,
"x": 927,
"y": 456
},
"9": {
"score": 0.9138934016227722,
"x": 775,
"y": 402
}
},
"location": {
"height": 556,
"left": 567,
"score": 17.49588012695312,
"top": 151,
"width": 426
}
}
],
"hand_num": 1
},
"message": "success"
}