scanbotsdk
    Preparing search index...

    Class DocumentDetectionScores

    The total and partial scores for the detected document contour.

    Index

    Constructors

    Properties

    alreadyCroppedScore: number

    Single-shot mode and ML engine mode only: Confidence in percent that the input image is already of a cropped document.

    angleScore: number

    100 points, if all angles are 90 degrees.

    aspectRatioScore: number

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

    distanceScore: number

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

    heightScore: number

    Percentage of the image height taken by the detected document.

    lineCoverageScore: number

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

    sizeScore: number

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

    totalScore: number

    Weighted sum of all partial scores.

    widthScore: number

    Percentage of the image width taken by the detected document.