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
    }
  ]
}

results matching ""

    No results matching ""