As the instance is backed by a native resource, it should be disposed when it is no longer needed.
This method will release the native resource.
As a recommended alternative since the class implements AsyncDisposable one can use 'await using' syntax to ensure the resource is disposed of automatically.
If neither is used, the resource will be released when the instance is garbage collected which is not recommended.
A promise that resolves when the instance is disposed.
Recognize the document in the given image.
The image to recognize.
The recognition result.
Verify whether the extracted document has signs of forgery or tampering.
The document parts to verify. For example, the front and back of an ID card.
The verification report.
Static createInitialize the document data extractor.
The configuration to use for the recognizer.
Instance of DocumentDataExtractor.
API for extracting data from documents.
Example
Since the class is backed by native resources and implements
AsyncDisposableit's highly recommended to use theawait usingsyntax when an instance is created to ensure the resource is disposed automatically:Alternatively, one can explicitly call dispose method to release the native resource. If neither is used, the resource will be released when the instance is garbage collected which is not recommended.