DetectedFrame

Document scanning results alongside with information about frame

Constructors

Link copied to clipboard
constructor(detectionStatus: DocumentDetectionStatus, polygon: List<PointF>?, frameOrientation: Int, frameWidth: Int, frameHeight: Int)
constructor(detectionStatus: DocumentDetectionStatus, polygon: List<PointF>?, frameOrientation: Int, frameWidth: Int, frameHeight: Int, detectionScores: DocumentDetectionScores?, finderRect: Rect?)

Properties

Link copied to clipboard

Scores of detected frame as double values in [0.0, 100.0].

Link copied to clipboard

Document scanning result status. Typically used to decide whether document scanning was successful or not and what can be improved from user side.

Link copied to clipboard
Link copied to clipboard

Height of the frame before rotation

Link copied to clipboard

Rotation of the frame in degrees relatively to what is seen on the screen. Frames might come in different orientation from the camera, that's why this value is needed. You might use it to compensate rotation of .polygon.

Link copied to clipboard

Width of the frame before rotation

Link copied to clipboard

Detected polygon. If no polygon was detected - empty list. Points of polygon are normalized values between 0 and 1 relatively to the size of the frame.