安全帽识别接口测试

图片大小:1920*1080 200万像素摄像头拍摄

识别结果:只识别到了4个较大的黄色安全帽,还是需要加补光灯并且安装在比较明显的地方。

{
    "stateCode": "0x0000",
    "message": "success",
    "data": "{"
    results ":[{"
    xmin ":1356,"
    ymin ":306,"
    width ":115,"
    height ":136,"
    confidence ":0.9722099900245667,"
    maxScoreIndex ":1,"
    label ":"
    yellow "},{"
    xmin ":384,"
    ymin ":334,"
    width ":115,"
    height ":129,"
    confidence ":0.9247599840164185,"
    maxScoreIndex ":1,"
    label ":"
    yellow "},{"
    xmin ":537,"
    ymin ":320,"
    width ":83,"
    height ":100,"
    confidence ":0.6258023977279663,"
    maxScoreIndex ":1,"
    label ":"
    yellow "},{"
    xmin ":812,"
    ymin ":313,"
    width ":83,"
    height ":111,"
    confidence ":0.5919343829154968,"
    maxScoreIndex ":1,"
    label ":"
    yellow "}]}"
}

图片大小:1920*1080 200万像素摄像头拍摄

识别结果:只识别到了2个安全帽

{
    "stateCode": "0x0000",
    "message": "success",
    "data": "{"
    results ":[{"
    xmin ":102,"
    ymin ":450,"
    width ":108,"
    height ":108,"
    confidence ":0.789382815361023,"
    maxScoreIndex ":3,"
    label ":"
    blue "},{"
    xmin ":736,"
    ymin ":421,"
    width ":96,"
    height ":108,"
    confidence ":0.5295544266700745,"
    maxScoreIndex ":4,"
    label ":"
    white "}]}"
}

原文地址:https://www.cnblogs.com/dXIOT/p/13869531.html