DocumentDetector.alignDocument Method

Module: DocumentDetector

Definition

Aligns and crops the specified document on the specified image and returns a new DocumentImage.

DocumentImage alignDocument(DocumentImage sourceImage, DetectedDocument detectedDocument)

Parameters

sourceImage DocumentImage
in The source image containing the document.

detectedDocument DetectedDocument
in The detected document in the image.

Returns

Realigned and cropped image of the document.

Exceptions

An error has occurred during Document Library execution.