Interface CroppedDetectionResult

Result of the document contour detection.

interface CroppedDetectionResult {
    aspectRatio: number;
    averageBrightness: number;
    croppedImage: RawImage;
    detectionScores: DocumentDetectionScores;
    horizontalLines: LineSegmentInt[];
    horizontalLinesNormalized: LineSegmentFloat[];
    originalImage: Image;
    points: Point[];
    pointsNormalized: Point[];
    status: DocumentDetectionStatus;
    verticalLines: LineSegmentInt[];
    verticalLinesNormalized: LineSegmentFloat[];
}

Hierarchy

Properties

aspectRatio: number

Aspect ratio of the detected document contour

averageBrightness: number

Average brightness, calculated as the average of the Value channel in the HSV color space of:

  • the whole image, if no document was detected
  • the document crop, if a document was detected Ranges from 0 to 255.

Default Value

0;
croppedImage: RawImage
detectionScores: DocumentDetectionScores

The total and partial scores for the detected quad

horizontalLines: LineSegmentInt[]

All detected horizontal lines in image space

horizontalLinesNormalized: LineSegmentFloat[]

Normalized horizontal lines in image space

originalImage: Image
points: Point[]

Absolute coordinates of the detected document contour in image space sorted in clockwise order, starting from the top left corner

pointsNormalized: Point[]

Normalized coordinates of the detected document contour in image space sorted in clockwise order, starting from the top left corner

Detection status.

Default Value

"NOT_ACQUIRED";
verticalLines: LineSegmentInt[]

All detected vertical lines in image space

verticalLinesNormalized: LineSegmentFloat[]

Normalized vertical lines in image space

Generated using TypeDoc