public final class DisplayablePointsDetection extends DisplayableDetection
mDetectionStatus
mTransformMatrix
Constructor and Description |
---|
DisplayablePointsDetection(int detectionStatus,
float[] transformMatrix,
float[] points,
int pointsType)
Constructor for displayable points detection.
|
Modifier and Type | Method and Description |
---|---|
PointSet |
getPointSet()
Returns set of points of interest that represent the detection.
|
PointsType |
getPointsType()
Returns the type of points represented by this detection object.
|
PointSet |
getTransformedPointSet()
Returns set of points of interest that represent the detection in normalized coordinate system of visible camera frame.
|
getDetectionStatus
getTransformMatrix
public DisplayablePointsDetection(int detectionStatus, @NonNull float[] transformMatrix, @NonNull float[] points, int pointsType)
detectionStatus
- Detection status from native library.transformMatrix
- Transformation matrix from native library.points
- Points representing the detection resultpointsType
- Type of points to be displayed.@NonNull public PointSet getPointSet()
Points are in coordinate system of image on which detection detection was performed.
@NonNull public PointSet getTransformedPointSet()
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.
@NonNull public PointsType getPointsType()