Class DisplayablePointsDetection
- java.lang.Object
-
- com.microblink.metadata.DisplayableObject
-
- com.microblink.metadata.detection.DisplayableDetection
-
- com.microblink.metadata.detection.points.DisplayablePointsDetection
-
public final class DisplayablePointsDetection extends DisplayableDetection
Represents points of detection that can be displayed on screen.
-
-
Field Summary
-
Fields inherited from class com.microblink.metadata.detection.DisplayableDetection
mDetectionStatus
-
Fields inherited from class com.microblink.metadata.DisplayableObject
mTransformMatrix
-
-
Constructor Summary
Constructors Constructor Description DisplayablePointsDetection(int detectionStatus, float[] transformMatrix, float[] points, int pointsType)
Constructor for displayable points detection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microblink.geometry.PointSet
getPointSet()
Returns set of points of interest that represent the detection.PointsType
getPointsType()
Returns the type of points represented by this detection object.com.microblink.geometry.PointSet
getTransformedPointSet()
Returns set of points of interest that represent the detection in normalized coordinate system of visible camera frame.-
Methods inherited from class com.microblink.metadata.detection.DisplayableDetection
getDetectionStatus
-
Methods inherited from class com.microblink.metadata.DisplayableObject
getTransformMatrix
-
-
-
-
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 resultpointsType
- 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.
-
-