1 接口名称
灯珠识别
2 请求地址
http://luoke365.wicp.net:8000/led_detect
3 请求方式
POST
4 请求参数
4.1 URL 参数
参数名 | 必选 | 类型/参数值 | 说明 |
---|---|---|---|
point | 是 | int | 灯珠数量 |
userId | 是 | string | 用户ID |
phoneType | 是 | string | 手机类型 |
4.2 Header 参数
参数名 | 必选 | 类型/参数值 | 说明 |
---|---|---|---|
Content-Type | 是 | multipart/form-data | 请求参数类型 |
appKey | 是 | string | appKey |
deviceId | 是 | string | deviceId |
mic | 是 | string | 密文 |
4.2 Request body 参数
参数名 | 必选 | 类型/参数值 | 说明 |
---|---|---|---|
images | 是 | List | 图片数组,图片必须是有序的。 |
5 返回示例
address 代表灯珠的地址.
box字段代表的是每个灯珠在第一张图片的坐标, x1,y1,x2,y2. 如下图:
{
"code": 0,
"message": "",
"payload": [
{
"address": 57,
"box": [
1181,
635,
1203,
651
],
"fake": false
},
{
"address": 39,
"box": [
707,
395,
727,
406
],
"fake": false
},
{
"address": 15,
"box": [
861,
402,
881,
415
],
"fake": false
}
]
}