detectDocument

Performs document scanning on the original image of given page. The page must have the original image. Creates and stored the document (cropped) image file based on document scanning result (polygon) and optionally defined filter in the page object.

Return

New Page instance with updated fields Page.polygon and Page.detectionStatus

Parameters

page

Existing page with original image.

Throws

If the original image does not exists for Page

If there is a problem with acces to image bitmap.