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.
detect_document_by_name(self, image: DocumentImage, document_name: str, detection_zone: Rectangle) -> DetectedDocument
Parameters
imageDocumentImagein The source image to process.document_namestrin The name of the document to be searched for. Must be a key loaded in DocumentLibrary.detection_zoneRectanglein 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.
DetectedDocument detectDocumentByName(DocumentImage image, String? documentName, Rectangle detectionZone)
Parameters
imageDocumentImagein The source image to process.documentNameStringin The name of the document to be searched for. Must be a key loaded in DocumentLibrary.detectionZoneRectanglein 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.
public DetectedDocument DetectDocumentByName(DocumentImage image, string documentName, Rectangle detectionZone)
Parameters
imageDocumentImagein The source image to process.documentNamestringin The name of the document to be searched for. Must be a key loaded in DocumentLibrary.detectionZoneRectanglein 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.
public DetectedDocument detectDocumentByName(DocumentImage image, String documentName, Rectangle detectionZone) throws DocumentException
Parameters
imageDocumentImagein The source image to process.documentNameStringin The name of the document to be searched for. Must be a key loaded in DocumentLibrary.detectionZoneRectanglein 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.
public func detectDocumentByName(image: DocumentImage, documentName: String, detectionZone: Rectangle) throws -> DetectedDocument
Parameters
imageDocumentImagein The source image to process.documentNameStringin The name of the document to be searched for. Must be a key loaded in DocumentLibrary.detectionZoneRectanglein 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.
int id3DocumentDetector_DetectDocumentByName (
ID3_DOCUMENT_DETECTOR hDocumentDetector,
ID3_DOCUMENT_IMAGE hImage,
const char * documentName,
ID3_DOCUMENT_RECTANGLE hDetectionZone,
ID3_DETECTED_DOCUMENT hDetectedDocument)
Parameters
hDocumentDetectorID3_DOCUMENT_DETECTORin Handle to the DocumentDetector object.hImageID3_DOCUMENT_IMAGEin The source image to process.documentNameconst char *in The name of the document to be searched for. Must be a key loaded in DocumentLibrary.hDetectionZoneID3_DOCUMENT_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.hDetectedDocumentID3_DETECTED_DOCUMENTout Detected document in the image
Returns