Optionalsource: DeepPartial<DocumentDetectionScores>Readonlyangle100 points, if all angles are 90 degrees.
Readonlyaspect100 points, if the aspect ratio matches exactly one of the given aspect ratios.
Readonlydistance100 points, if the center of the contour is exactly in the image center.
ReadonlyheightPercentage of the image height taken by the detected document.
ReadonlylinePercentage of the document contour that the edge detector was able to find (in LEGACY engine mode only).
Readonlysize100 points, if the contour occupies at least 50% of the area of the image.
ReadonlytotalWeighted sum of all partial scores.
ReadonlywidthPercentage of the image width taken by the detected document.
Optionalconfig: ToJsonConfigurationOptional ReadonlyangleScore?: number100 points, if all angles are 90 degrees.
Optional ReadonlyaspectRatioScore?: number100 points, if the aspect ratio matches exactly one of the given aspect ratios.
Optional ReadonlydistanceScore?: number100 points, if the center of the contour is exactly in the image center.
Optional ReadonlyheightScore?: numberPercentage of the image height taken by the detected document.
Optional ReadonlylineCoverageScore?: numberPercentage of the document contour that the edge detector was able to find (in LEGACY engine mode only).
Optionalserialize?: (Optional ReadonlysizeScore?: number100 points, if the contour occupies at least 50% of the area of the image.
Optional ReadonlytotalScore?: numberWeighted sum of all partial scores.
Optional ReadonlywidthScore?: numberPercentage of the image width taken by the detected document.
The total and partial scores for the detected document contour.