Interface Geometry.Builder

    • Method Detail

      • boundingBox

        Geometry.Builder boundingBox​(BoundingBox boundingBox)

        An axis-aligned coarse representation of the location of the recognized item on the document page.

        Parameters:
        boundingBox - An axis-aligned coarse representation of the location of the recognized item on the document page.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • polygon

        Geometry.Builder polygon​(Collection<Point> polygon)

        Within the bounding box, a fine-grained polygon around the recognized item.

        Parameters:
        polygon - Within the bounding box, a fine-grained polygon around the recognized item.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • polygon

        Geometry.Builder polygon​(Point... polygon)

        Within the bounding box, a fine-grained polygon around the recognized item.

        Parameters:
        polygon - Within the bounding box, a fine-grained polygon around the recognized item.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • polygon

        Geometry.Builder polygon​(Consumer<Point.Builder>... polygon)

        Within the bounding box, a fine-grained polygon around the recognized item.

        This is a convenience method that creates an instance of the Point.Builder avoiding the need to create one manually via Point.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #polygon(List).

        Parameters:
        polygon - a consumer that will call methods on Point.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #polygon(java.util.Collection)