AI手足口检测 API 文档

接口简介

AI手足口检测接口主要通过拍摄手、足、口腔图片进行识别,返回患手足口病的概率信息。

接口地址

  • 手足识别访问地址:https://www.bjbayes.com/admin/api/hand_foot_analysis
  • 口腔识别访问地址:https://www.bjbayes.com/admin/api/mouth_analysis
  • 请求方式:POST
  • 请求格式:application/x-www-form-urlencoded
  • 编码说明:所有请求与响应为 UTF-8,URL 参数需进行 URL 编码

请求参数

字段 类型 必传 说明
appidString开放平台创建的 appid
imgpathString传入进行识别的网络图片地址
timestampString请求端口的时间,格式 yyyyMMddHHmmss
versionStringAPI 版本,默认 1.0
signString签名:先对 timestamp 做 MD5,再加上 appid 对应的 key,再次 MD5,大写

响应参数

字段 类型 说明
msgString响应信息,成功为 ok,错误为对应错误信息
codeInt200 成功;201 没有可用次数;400 参数缺失或错误;500 异常
dataJSON识别结果数据

返回结果示例

{
  "msg": "成功",
  "code": 200,
  "data": {
    "code": "88",
    "handHongban": "no_0.999967575",
    "handPaozhen": "no_0.99905947"
  }
}

调用示例

// Java (示例)
Map<String, String> body = new HashMap<>();
String ts = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
body.put("timestamp", ts);
body.put("appid", "你的APPID");
body.put("version", "1.0");
body.put("imgpath", "待测图片的云服务地址");
body.put("sign", md5(md5(ts) + "你的APPID对应的key").toUpperCase());
// 手足识别:POST 到 https://www.bjbayes.com/admin/api/hand_foot_analysis
# Python (示例)
import hashlib, time, requests, json
def MD5(s): return hashlib.md5(s.encode('utf-8')).hexdigest().upper()
ts = time.strftime('%Y%m%d%H%M%S')
params = {
  'timestamp': ts,
  'appid': '你的APPID',
  'version': '1.0',
  'imgpath': 'https://example.com/hand.jpg',
  'sign': MD5(MD5(ts) + '你的APPID对应的key')
}
r = requests.post('https://www.bjbayes.com/admin/api/hand_foot_analysis', params=params)
print(json.loads(r.text))
// C# (示例)
// 省略 MD5 方法,与参考文档一致
var dic = new Dictionary<string, string>();
string ds = DateTime.Now.ToString("yyyyMMddHHmmss");
dic.Add("timestamp", ds);
dic.Add("appid", "你的APPID");
dic.Add("version", "1.0");
dic.Add("imgpath", "待测图片的云服务地址");
dic.Add("sign", GetMD5(GetMD5(ds) + "你的APPID对应的key"));
// POST 到 https://www.bjbayes.com/admin/api/hand_foot_analysis
// JavaScript (示例)
$.ajax({
  type: 'POST',
  url: 'https://www.bjbayes.com/admin/api/hand_foot_analysis',
  data: {
    timestamp: restime, // YYmmddHHMMSS
    appid: '你的APPID',
    version: '1.0',
    imgpath: 'https://example.com/hand.jpg',
    sign: Md5(Md5(restime) + '你的APPID对应的key')
  },
  success: function (msg) { console.log('返回的数据:' + msg); }
});

联系我们

如需获取接口试用、报价或技术支持,请填写下方信息或直接联系

联系方式

公司地址

北京市朝阳区曙光西里甲6号院时间国际7号楼5层

商务电话

186-0086-8129(黄先生)

邮箱地址

contact@benzuai.com

扫码咨询二维码

扫码咨询

微信扫码添加,获取接口资料与报价

发送咨询