Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 谷歌OCR边界多边形_Java_Google Cloud Platform_Ocr_Google Cloud Vision - Fatal编程技术网

Java 谷歌OCR边界多边形

Java 谷歌OCR边界多边形,java,google-cloud-platform,ocr,google-cloud-vision,Java,Google Cloud Platform,Ocr,Google Cloud Vision,嗨,我很难理解谷歌云OCR系统中的边界多边形是什么,我知道它是检测到的文本周围的一个框。大概是 *description: "The" bounding_poly { vertices { x: 204 y: 132 } vertices { x: 267 y: 135 } vertices { x: 265 y: 171 } vertices { x: 202 y: 168

嗨,我很难理解谷歌云OCR系统中的边界多边形是什么,我知道它是检测到的文本周围的一个框。大概是

   *description: "The"
bounding_poly {
  vertices {
    x: 204
    y: 132
  }
  vertices {
    x: 267
    y: 135
  }
  vertices {
    x: 265
    y: 171
  }
  vertices {
    x: 202
    y: 168
  }
}
     description: "fresh"
bounding_poly {
  vertices {
    x: 278
    y: 140
  }
  vertices {
    x: 349
    y: 144
  }
  vertices {
    x: 347
    y: 185
  }
  vertices {
    x: 276
    y: 181
  }*
x和y坐标是每个方框的角,在java中,如何检测文本是否在同一行上。他们有图书馆来做这件事


谢谢。

我相信您可以参考此堆栈,从方法内部接近文本对齐,并获得带有页面、块等参数的
fulltextnotation
结构化响应,然后进行比较。这不是一种兴趣吗?我相信您可以参考这个堆栈,从方法内部接近文本对齐方式,并获得带有页面、块等参数的
fulltextnotation
结构化响应,然后进行比较。这不是一种兴趣吗?