CIdentityProcessor
The CIdentityProcessor class provides functions to process identity documents, such as locating portrait zones with higher precision.
Remarks
Introduced in Dynamsoft Capture Vision version 3.4.1000.
Definition
Namespace: dynamsoft::id_utility
Assembly: DynamsoftIdentityUtility
class CIdentityProcessor
Methods
| Method | Description |
|---|---|
| FindPortraitZone | Finds the location of the portrait zone on an identity document. |
FindPortraitZone
Finds the location of the portrait zone on an identity document.
int FindPortraitZone(const CScaledColourImageUnit* scaledColourImgUnit,
const CLocalizedTextLinesUnit* localizedTextLinesUnit,
const CRecognizedTextLinesUnit* recognizedTextLinesUnit,
const CDetectedQuadsUnit* detectedQuadsUnit,
const CDeskewedImageUnit* deskewedImageUnit,
CQuadrilateral& portraitZone);
Parameters
[in] scaledColourImgUnit The scaled colour image unit containing the source image.
[in] localizedTextLinesUnit The localized text lines unit containing MRZ/text regions.
[in] recognizedTextLinesUnit The recognized text lines unit for document type identification.
[in] detectedQuadsUnit The detected quads unit containing document boundaries.
[in] deskewedImageUnit The deskewed image unit for coordinate transformation.
[out] portraitZone The output quadrilateral representing the portrait zone location. Returns an empty quadrilateral if not found.
Return Value
Returns 0 if successful, otherwise returns an error code.
See Also