Class BoundingBox

  • All Implemented Interfaces:

    
    public final class BoundingBox
    
                        

    Small container to represent bounding boxes in images.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Float x() Retrieve the x value of this box.
      final Float y() Retrieve the y value of this box.
      final Float w() Retrieve the w value of this box.
      final Float h() Retrieve the h value of this box.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BoundingBox

        BoundingBox(Float x, Float y, Float w, Float h)
        Initialize a bounding box.
        Parameters:
        x - the x value of the box to create.
        y - the y value of the box to create.
        w - the w value of the box to create.
        h - the h value of the box to create.
      • BoundingBox

        BoundingBox(RectF rectF)
        Create a box from an OpenCV RectF.
        Parameters:
        rectF - the input rectangle from OpenCV.
    • Method Detail

      • x

         final Float x()

        Retrieve the x value of this box.

        Returns:

        a float value.

      • y

         final Float y()

        Retrieve the y value of this box.

        Returns:

        a float value.

      • w

         final Float w()

        Retrieve the w value of this box.

        Returns:

        a float value.

      • h

         final Float h()

        Retrieve the h value of this box.

        Returns:

        a float value.