昇腾社区首页
中文
注册

响应示例

器件错漏反

{
    "infer_test.jpg": [
      {"Box": {"Angle": 0, "Height": 28, "Width": 27, "X": 407, "Y": 84}, "Classification": {}, "Label": "screw_1", "OCR": {}, "Score": 0.840820312, "Segmentation": {}},
      {"Box": {"Angle": 0, "Height": 26, "Width": 26, "X": 717, "Y": 421}, "Classification": {}, "Label": "screw_1", "OCR": {}, "Score": 0.728027344, "Segmentation": {}},
      {"Box": {"Angle": 0, "Height": 28, "Width": 26, "X": 732, "Y": 147}, "Classification": {}, "Label": "screw_1", "OCR": {}, "Score": 0.720703125, "Segmentation": {}},
      {"Box": {"Angle": 0, "Height": 28, "Width": 28, "X": 394, "Y": 405}, "Classification": {}, "Label": "screw_1", "OCR": {}, "Score": 0.511230469, "Segmentation": {}},
      {"Box": {"Angle": 0, "Height": 27, "Width": 26, "X": 261, "Y": 399}, "Classification": {}, "Label": "screw_1", "OCR": {}, "Score": 0.415039062, "Segmentation": {}},
      {"Box": {"Angle": 0, "Height": 30, "Width": 32, "X": 391, "Y": 403}, "Classification": {}, "Label": "screw_5", "OCR": {}, "Score": 0.450195312, "Segmentation": {}},
      {"Box": {"Angle": 0, "Height": 37, "Width": 42, "X": 306, "Y": 75}, "Classification": {}, "Label": "screw_5", "OCR": {}, "Score": 0.426513672, "Segmentation": {}},
     {"RegisterMatrix": [[0.998046180631172, 0.06248056759929312, 12.972030017935253], [-0.06248056759929309, 0.9980461806311721, 30.66491820877536], [0.0, 0.0, 1.0]]}
  ]
}

OCR(CRNN)

{
    "infer_test.jpg":[
      {"OCRText": "A113", "Quad": {}, "Score": 1.0}
   ]
}

OCR(CTPN_CRNN)

{
    "infer_test.jpg": [
       {"OCRText": "C", "Quad": {"BottomLeft": {"X": 384, "Y": 445.861145}, "BottomRight": {"X": 441.599976, "Y": 445.861145}, "TopLeft": {"X": 384, "Y": 479.75}, "TopRight": {"X": 441.599976, "Y": 479.75}}, "Score": 0.973144531},
       {"OCRText": "AN", "Quad": {"BottomLeft": {"X": 614.4, "Y": 439.339294}, "BottomRight": {"X": 748.8, "Y": 439.339294}, "TopLeft": {"X": 614.4, "Y": 500.577393}, "TopRight": {"X": 748.8, "Y": 500.577393}}, "Score": 0.962332606}, 
       {"OCRText": "TRS", "Quad": {"BottomLeft": {"X": 537.6, "Y": 267.55835}, "BottomRight": {"X": 614.4, "Y": 267.55835}, "TopLeft": {"X": 537.6, "Y": 280.558319}, "TopRight": {"X": 614.4, "Y": 280.558319}}, "Score": 0.963501},
       {"OCRText": "TMANTCS", "Quad": {"BottomLeft": {"X": 326.4, "Y": 344.923615}, "BottomRight": {"X": 576, "Y": 344.923615}, "TopLeft": {"X": 326.4, "Y": 359.503937}, "TopRight": {"X": 576, "Y": 359.503937}}, "Score": 0.910688937},
       {"OCRText": "", "Quad": {"BottomLeft": {"X": 384, "Y": 420.341675}, "BottomRight": {"X": 556.8, "Y": 420.341675}, "TopLeft": {"X": 384, "Y": 449.804626}, "TopRight": {"X": 556.8, "Y": 449.804626}}, "Score": 0.938910604},
       {"OCRText": "TzCS", "Quad": {"BottomLeft": {"X": 326.4, "Y": 239.449448}, "BottomRight": {"X": 672, "Y": 239.449448}, "TopLeft": {"X": 326.4, "Y": 263.957306}, "TopRight": {"X": 672, "Y": 263.957306}}, "Score": 0.973173261},
       {"OCRText": "", "Quad": {"BottomLeft": {"X": 537.6, "Y": 301.694427}, "BottomRight": {"X": 595.199951, "Y": 301.694427}, "TopLeft": {"X": 537.6, "Y": 315.361115}, "TopRight": {"X": 595.199951, "Y": 315.361115}}, "Score": 0.916178405},
       {"OCRText": "AAaTaEGS", "Quad": {"BottomLeft": {"X": 326.4, "Y": 368.289917}, "BottomRight": {"X": 518.399963, "Y": 368.289917}, "TopLeft": {"X": 326.4, "Y": 382.445435}, "TopRight": {"X": 518.399963, "Y": 382.445435}}, "Score": 0.925},
       {"OCRText": "BaTaSaSAS", "Quad": {"BottomLeft": {"X": 326.4, "Y": 381.819702}, "BottomRight": {"X": 537.6, "Y": 381.819702}, "TopLeft": {"X": 326.4, "Y": 403.153}, "TopRight": {"X": 537.6, "Y": 403.153}}, "Score": 0.951704562},
       {"OCRText": "AAINALS", "Quad": {"BottomLeft": {"X": 537.6, "Y": 278.56546}, "BottomRight": {"X": 672, "Y": 278.56546}, "TopLeft": {"X": 537.6, "Y": 296.130951}, "TopRight": {"X": 672, "Y": 296.130951}}, "Score": 0.955636144}
 ]
}

胶体检测

{
    "infer_test.jpg": [
      {
          "Box": {"Height": 768, "Width": 1152, "X": 0,  "Y": 0},
          "CodeType": "JPG",
          "LabelMap": {"0": "background", "1": "battery", "2": "fan"},
          "Mask": "图片数据的base64编码",
          "Score": 1.0
      }
  ]
}