DocumentDetector.detectDocumentByName Method¶
Module: DocumentDetector
Definition¶
Detects a document with specified name on a delimited area of the specified DocumentImage and returns a DetectedDocument.
Important
The relevant document template must be loaded before calling this method.
DetectedDocument detectDocumentByName(DocumentImage image, String? documentName, Rectangle detectionZone)
Parameters
image DocumentImagein The source image to process.
documentName Stringin The name of the document to be searched for. Must be a key loaded in DocumentLibrary.
detectionZone Rectanglein A delimited area in the image where to search for the document. Default is the full image. Output corners are in the full image referential.
Returns
Detected document in the image
Exceptions
An error has occurred during Document Library execution.