DocumentDetector.detectDocument Method¶
Module: DocumentDetector
Definition¶
Detects a document on a delimited area of the specified DocumentImage and returns a DetectedDocument.
Important
Document templates must be loaded before calling this method.
DetectedDocument detectDocument(DocumentImage image, Rectangle detectionZone, StringList documentTemplateSubset)
Parameters
image DocumentImagein Source image to process
detectionZone Rectanglein Crop in the image where to look for document. Default is the full image. Output corners are in the full image referential.
documentTemplateSubset StringListin If not empty, will restrict the search to the specified document templates provided. If empty, searches across all loaded document templates.
Returns
Detected document in the image
Exceptions
An error has occurred during Document Library execution.