如何实现自动排版
hnsongbiao 发布于2021-07 浏览:575 回复:0
0
收藏

用C#开发了一个图象文字识别工具,返回信息如何排版呢?最终期望以表格形式呈现结果,与图片上文字一致呈现

 

 

{
  "words_result": [
    {
      "probability": {
        "average": 0.852437,
        "min": 0.442243,
        "variance": 0.053328
      },
      "words": "(11.2%)"
    },
    {
      "probability": {
        "average": 0.992517,
        "min": 0.990835,
        "variance": 3E-06
      },
      "words": "Axial short axis"
    },
    {
      "probability": {
        "average": 0.989723,
        "min": 0.977799,
        "variance": 7.1E-05
      },
      "words": "Axial average diameter"
    },
    {
      "probability": {
        "average": 0.955195,
        "min": 0.804198,
        "variance": 0.005706
      },
      "words": "7(mm)"
    },
    {
      "probability": {
        "average": 0.97487,
        "min": 0.847237,
        "variance": 0.002725
      },
      "words": "9.8(mm)"
    },
    {
      "probability": {
        "average": 0.985035,
        "min": 0.977566,
        "variance": 3.7E-05
      },
      "words": "Coronal long axis"
    },
    {
      "probability": {
        "average": 0.934795,
        "min": 0.730658,
        "variance": 0.010114
      },
      "words": "10.6(mm)"
    },
    {
      "probability": {
        "average": 0.972634,
        "min": 0.910377,
        "variance": 0.001049
      },
      "words": "5(mm)"
    },
    {
      "probability": {
        "average": 0.894182,
        "min": 0.538849,
        "variance": 0.027648
      },
      "words": "8.9(mr"
    },
    {
      "probability": {
        "average": 0.955867,
        "min": 0.722721,
        "variance": 0.00913
      },
      "words": "0.8(9.0"
    },
    {
      "probability": {
        "average": 0.988924,
        "min": 0.986882,
        "variance": 4E-06
      },
      "words": "Coronal average diameter"
    },
    {
      "probability": {
        "average": 0.918606,
        "min": 0.424604,
        "variance": 0.034966
      },
      "words": "10.2(mm)"
    },
    {
      "probability": {
        "average": 0.95326,
        "min": 0.862796,
        "variance": 0.003231
      },
      "words": "9.2(mm)"
    },
    {
      "probability": {
        "average": 0.975336,
        "min": 0.8979,
        "variance": 0.001168
      },
      "words": "1.0(10.9%)"
    },
    {
      "probability": {
        "average": 0.977726,
        "min": 0.959438,
        "variance": 0.000168
      },
      "words": "Sagittal long axis"
    },
    {
      "probability": {
        "average": 0.953615,
        "min": 0.775481,
        "variance": 0.006562
      },
      "words": "2.1mm)"
    },
    {
      "probability": {
        "average": 0.938467,
        "min": 0.568318,
        "variance": 0.019685
      },
      "words": "11.3(mm)"
    },
    {
      "probability": {
        "average": 0.985309,
        "min": 0.97821,
        "variance": 3.7E-05
      },
      "words": "Sagittal short axis"
    },
    {
      "probability": {
        "average": 0.967667,
        "min": 0.914044,
        "variance": 0.001002
      },
      "words": "9.1mm)"
    },
    {
      "probability": {
        "average": 0.937669,
        "min": 0.703731,
        "variance": 0.010208
      },
      "words": "8.4(mm)"
    },
    {
      "probability": {
        "average": 0.986605,
        "min": 0.924079,
        "variance": 0.000581
      },
      "words": "0.7(83%)"
    },
    {
      "probability": {
        "average": 0.931773,
        "min": 0.851504,
        "variance": 0.003681
      },
      "words": "sagittal average diameter"
    },
    {
      "probability": {
        "average": 0.975591,
        "min": 0.901073,
        "variance": 0.001405
      },
      "words": "6(mm)"
    },
    {
      "probability": {
        "average": 0.919787,
        "min": 0.597227,
        "variance": 0.017648
      },
      "words": "9.9(mm)"
    },
    {
      "probability": {
        "average": 0.96829,
        "min": 0.73711,
        "variance": 0.005863
      },
      "words": "129.7(28.7%"
    },
    {
      "probability": {
        "average": 0.941692,
        "min": 0.738657,
        "variance": 0.010402
      },
      "words": "Mean HU±SD"
    },
    {
      "probability": {
        "average": 0.935315,
        "min": 0.653335,
        "variance": 0.012566
      },
      "words": "-4.9±62.0"
    },
    {
      "probability": {
        "average": 0.916172,
        "min": 0.678553,
        "variance": 0.014771
      },
      "words": "26.3±62.6"
    },
    {
      "probability": {
        "average": 0.97203,
        "min": 0.799667,
        "variance": 0.004251
      },
      "words": "579.2mg)"
    },
    {
      "probability": {
        "average": 0.746899,
        "min": 0.746899,
        "variance": 0.0
      },
      "words": "m"
    },
    {
      "probability": {
        "average": 0.973977,
        "min": 0.887822,
        "variance": 0.00143
      },
      "words": "114.9(24.7%)"
    },
    {
      "probability": {
        "average": 0.907558,
        "min": 0.907558,
        "variance": 0.0
      },
      "words": "No"
    },
    {
      "probability": {
        "average": 0.797952,
        "min": 0.797952,
        "variance": 0.0
      },
      "words": "LUL"
    },
    {
      "probability": {
        "average": 0.967192,
        "min": 0.961782,
        "variance": 2.9E-05
      },
      "words": "Doubling Days"
    },
    {
      "probability": {
        "average": 0.999464,
        "min": 0.998725,
        "variance": 0.0
      },
      "words": "1843"
    }
  ],
  "log_id": 1416455199279577729,
  "words_result_num": 35,
  "language": 0,
  "direction": 0
}
收藏
点赞
0
个赞
TOP
切换版块