DocumentDetectionResult

data class DocumentDetectionResult(val status: DocumentDetectionStatus = DocumentDetectionStatus.NOT_ACQUIRED, val detectionScores: DocumentDetectionScores, val points: List<Point>, val horizontalLines: List<LineSegmentInt>, val verticalLines: List<LineSegmentInt>, val pointsNormalized: List<PointF>, val horizontalLinesNormalized: List<LineSegmentFloat>, val verticalLinesNormalized: List<LineSegmentFloat>, val aspectRatio: Double, val averageBrightness: Int = 0) : Parcelable

Result of the document contour detection.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(status: DocumentDetectionStatus = DocumentDetectionStatus.NOT_ACQUIRED, detectionScores: DocumentDetectionScores, points: List<Point>, horizontalLines: List<LineSegmentInt>, verticalLines: List<LineSegmentInt>, pointsNormalized: List<PointF>, horizontalLinesNormalized: List<LineSegmentFloat>, verticalLinesNormalized: List<LineSegmentFloat>, aspectRatio: Double, averageBrightness: Int = 0)

Properties

Link copied to clipboard

Aspect ratio of the detected document contour.

Link copied to clipboard

Average brightness, calculated as the average of the Value channel in the HSV color space of:

Link copied to clipboard

The total and partial scores for the detected quad.

Link copied to clipboard

All detected horizontal lines in image space.

Link copied to clipboard

Normalized horizontal lines in image space.

Link copied to clipboard

Absolute coordinates of the detected document contour in image space sorted in clockwise order, starting from the top left corner.

Link copied to clipboard

Normalized coordinates of the detected document contour in image space sorted in clockwise order, starting from the top left corner.

Link copied to clipboard

Detection status.

Link copied to clipboard

All detected vertical lines in image space.

Link copied to clipboard

Normalized vertical lines in image space.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject