capacitor-plugin-scanbot-sdk
    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.

    Methods

    • Parameters

      Returns {
          alreadyCroppedScore?: number;
          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; ... 4 more ...; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; };
          sizeScore?: number;
          totalScore?: number;
          widthScore?: number;
      }

      • Optional ReadonlyalreadyCroppedScore?: number

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

      • 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; ... 4 more ...; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; }
      • 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.