capacitor-plugin-scanbot-sdk
    Preparing search index...

    Class DocumentDetectionScores

    The total and partial scores for the detected document contour.

    Index

    Constructors

    Properties

    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.

    Methods

    • Parameters

      Returns {
          angleScore?: number;
          aspectRatioScore?: number;
          distanceScore?: number;
          heightScore?: number;
          lineCoverageScore?: number;
          serialize?: (
              config?: ToJsonConfiguration,
          ) => { readonly totalScore?: number | undefined; readonly distanceScore?: number | undefined; readonly angleScore?: number | undefined; readonly sizeScore?: number | undefined; readonly aspectRatioScore?: number | undefined; readonly lineCoverageScore?: number | undefined; readonly widthScore?: number | undefined; readon...;
          sizeScore?: number;
          totalScore?: number;
          widthScore?: number;
      }

      • Optional ReadonlyangleScore?: number

        100 points, if all angles are 90 degrees.

      • Optional ReadonlyaspectRatioScore?: number

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

      • Optional ReadonlydistanceScore?: number

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

      • Optional ReadonlyheightScore?: number

        Percentage of the image height taken by the detected document.

      • Optional ReadonlylineCoverageScore?: number

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

      • Optionalserialize?: (
            config?: ToJsonConfiguration,
        ) => { readonly totalScore?: number | undefined; readonly distanceScore?: number | undefined; readonly angleScore?: number | undefined; readonly sizeScore?: number | undefined; readonly aspectRatioScore?: number | undefined; readonly lineCoverageScore?: number | undefined; readonly widthScore?: number | undefined; readon...
      • Optional ReadonlysizeScore?: number

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

      • Optional ReadonlytotalScore?: number

        Weighted sum of all partial scores.

      • Optional ReadonlywidthScore?: number

        Percentage of the image width taken by the detected document.