Optionalsource: DeepPartial<DocumentDetectionResult>ReadonlyaspectAspect ratio of the detected document contour.
ReadonlyaverageAverage brightness, calculated as the average of the Value channel in the HSV color space of:
Default is 0
ReadonlydetectionThe total and partial scores for the detected quad.
ReadonlydisplacementThe direction towards the center of the document if the document is partially visible.
Default is NONE
ReadonlydisplacementThe direction vector towards the center of the document if the document is partially visible in normalized coordinates.
ReadonlyhorizontalAll detected horizontal lines in image space.
ReadonlyhorizontalNormalized horizontal lines in image space.
ReadonlypointsAbsolute coordinates of the detected document contour in image space sorted in clockwise order, starting from the top left corner.
ReadonlypointsNormalized coordinates of the detected document contour in image space sorted in clockwise order, starting from the top left corner.
ReadonlystatusDetection status.
Default is NOT_ACQUIRED
ReadonlyverticalAll detected vertical lines in image space.
ReadonlyverticalNormalized vertical lines in image space.
Optionalconfig: ToJsonConfigurationOptional ReadonlyaspectRatio?: numberAspect ratio of the detected document contour.
Optional ReadonlyaverageBrightness?: numberAverage brightness, calculated as the average of the Value channel in the HSV color space of:
Default is 0
Optional ReadonlydetectionScores?: {The total and partial scores for the detected quad.
Optional 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.
Optional Readonlydisplacement?: DocumentDisplacementThe direction towards the center of the document if the document is partially visible.
Default is NONE
Optional ReadonlydisplacementVector?: PointThe direction vector towards the center of the document if the document is partially visible in normalized coordinates.
Optional ReadonlyhorizontalLines?: {All detected horizontal lines in image space.
Optional ReadonlyhorizontalLinesNormalized?: {Normalized horizontal lines in image space.
Optional Readonlypoints?: Point[]Absolute coordinates of the detected document contour in image space sorted in clockwise order, starting from the top left corner.
Optional ReadonlypointsNormalized?: Point[]Normalized coordinates of the detected document contour in image space sorted in clockwise order, starting from the top left corner.
Optionalserialize?: (Optional Readonlystatus?: DocumentDetectionStatusDetection status.
Default is NOT_ACQUIRED
Optional ReadonlyverticalLines?: {All detected vertical lines in image space.
Optional ReadonlyverticalLinesNormalized?: {Normalized vertical lines in image space.
Result of the document contour detection.