欢迎登录

操作成功!

是否退出?

确认

接入指南

API文档

水果识别

描述

SKEyeSDK调用者提供图片文件或者图片URL,进行图片分析,识别图片信息。

调用方法

POST

调用URL

https://api.sk-ai.com/fruits/

请求参数

是否必须 参数名 类型 说明
必须 api_key String 调用此API的API Key
必须 api_secret String 调用此API的API Secret
二选一 image_url String 图片的URL
image_data String 图片数据

返回值说明

字段 类型 说明
error_code int 错误状态码
error_msg String 错误消息
tags Array 图像标签数组

tags类型说明

字段 类型 说明
tag String 图像标签名称
confidence int 图像标签置信度整数,范围[0,100],值越大置信度越高

返回值示例

成功:
  {
    "error_code": 0,
    "error_msg": "OK",
    "tags": [
      {
        "tag": "橙子",
        "confidence": 85
      },
      {
        "tag": "橘子",
        "confidence": 57
      }
    ]
  }

失败:
  {
    "error_code": 10001,
    "error_msg": "AUTHORIZATION_ERROR<APPLICATION_TABLE_VISIT_FAIL>"
  }