Class DisplayableQuadDetection


public final class DisplayableQuadDetection extends DisplayableDetection
Represents a quad-like detection that can be displayed on screen.
  • Constructor Details

    • DisplayableQuadDetection

      public DisplayableQuadDetection(int detectionStatus, @Size(9L) @NonNull float[] transformMatrix, @Size(8L) @NonNull float[] displayLocation)
      Constructor for displayable quad detection. Usually invoked from native code.
      Parameters:
      detectionStatus - Detection status from native library.
      transformMatrix - Transformation matrix from native library.
      displayLocation - Display location in coordinate system of image on which detection was performed
  • Method Details

    • getDisplayLocation

      @NonNull public Quadrilateral getDisplayLocation()
      Returns the display location in coordinate system of image on which detection was performed.
      Returns:
      the display location in coordinate system of image on which detection was performed.
    • getTransformedDisplayLocation

      @NonNull public Quadrilateral getTransformedDisplayLocation()
      Returns the display location in normalized coordinate system of visible camera frame. The normalized coordinate system of visible camera frame is coordinate system whose top left position is at coordinates (0,0), and bottom right is at coordinates (1,1). It is oriented in landscape right orientation. For more information about display location, see getDisplayLocation().
      Returns:
      the display location in normalized coordinate system of visible camera frame.