【问题标题】:what is the difference between getCornerPoints() and getBoundingBox() in TextBlock (android vision)TextBlock中的getCornerPoints()和getBoundingBox()有什么区别(android视觉)
【发布时间】:2018-12-08 04:34:42
【问题描述】:

我对 TextBlock 中 getCornerPoints() 和 getBoundingBox() 之间的差异感到困惑,因为它们都返回边界框角点的坐标?任何机构都可以澄清?

【问题讨论】:

    标签: android android-vision text-recognition


    【解决方案1】:

    根据docsgetBoundingBox() 返回一个轴对齐的 Rect。这是检测到的图像在 2D 空间中投影时所占据的区域。另一方面,调用getCornerPoints() 说明了观点。因此,不能保证它是一个矩形。使用这种方法,您可能会收到不同角度的平行四边形或梯形形状的边界。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-26
      • 2013-08-14
      • 2016-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多