Class DisplayablePointsDetection


  • public final class DisplayablePointsDetection
    extends DisplayableDetection
    Represents points of detection that can be displayed on screen.
    • Constructor Detail

      • DisplayablePointsDetection

        public DisplayablePointsDetection​(int detectionStatus,
                                          @Size(9L) @NonNull
                                          float[] transformMatrix,
                                          @Size(multiple=2L) @NonNull
                                          float[] points,
                                          int pointsType)
        Constructor for displayable points detection. Usually invoked from native code.
        Parameters:
        detectionStatus - Detection status from native library.
        transformMatrix - Transformation matrix from native library.
        points - Points representing the detection result
        pointsType - Type of points to be displayed.
    • Method Detail

      • getPointSet

        @NonNull
        public com.microblink.geometry.PointSet getPointSet()
        Returns set of points of interest that represent the detection.

        Points are in coordinate system of image on which detection detection was performed.

        Returns:
        set of points of interest that represent the detection.
      • getTransformedPointSet

        @NonNull
        public com.microblink.geometry.PointSet getTransformedPointSet()
        Returns set of points of interest that represent the detection 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.

        Returns:
        the set of points of interest that represent the detection in normalized coordinate system of visible camera frame.
      • getPointsType

        @NonNull
        public PointsType getPointsType()
        Returns the type of points represented by this detection object.
        Returns:
        the type of points represented by this detection object.