IdentityProcessor
The IdentityProcessor class provides utility APIs for processing identity documents.
| Name | Description |
|---|---|
static findPortraitZone() |
Finds the precise location of the portrait zone on an identity document. |
findPortraitZone
Finds the precise location of the portrait zone on an identity document.
static findPortraitZone(): Promise<Quadrilateral | null>;
Return Value
A promise that resolves with a Quadrilateral object defining the precise location of the portrait zone found in the image, or null if no portrait zone is detected.
See also
Code snippet
const quad = await Dynamsoft.DBR.IdentityProcessor.findPortraitZone();
if (quad) {
console.log("Portrait zone found:", quad);
} else {
console.log("No portrait zone detected.");
}
Remarks
New added in CaptureVisionBundle version 3.4.2000.