DocumentDetectionScores

data class DocumentDetectionScores(val totalScore: Double, val distanceScore: Double, val angleScore: Double, val sizeScore: Double, val aspectRatioScore: Double, val lineCoverageScore: Double, val widthScore: Double, val heightScore: Double) : Parcelable

The total and partial scores for the detected document contour.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(totalScore: Double, distanceScore: Double, angleScore: Double, sizeScore: Double, aspectRatioScore: Double, lineCoverageScore: Double, widthScore: Double, heightScore: Double)

Properties

Link copied to clipboard

100 points, if all angles are 90 degrees.

Link copied to clipboard

100 points, if the aspect ratio matches exactly one of the given aspect ratios.

Link copied to clipboard

100 points, if the center of the contour is exactly in the image center.

Link copied to clipboard

Percentage of the image height taken by the detected document.

Link copied to clipboard

Percentage of the document contour that the edge detector was able to find (in LEGACY engine mode only).

Link copied to clipboard

100 points, if the contour occupies at least 50% of the area of the image.

Link copied to clipboard

Weighted sum of all partial scores.

Link copied to clipboard

Percentage of the image width taken by the detected document.

Functions

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