RecognizeAsync method

Extracts data from a still image returns a collection of captured data fields.

 Note: This method is asynchronous.

Task<List<DataField>> RecognizeAsync(
        ImageSource image,
        Func<int, RecognitionWarning, bool> onProgress,
        Action<int> onOrientationDetected
);

Parameters

image
Captured image, represented by an ImageSource object. Data will be extracted from this image.
onProgress
Callback, signaling the progress of recognition process. This function receives 2 parameters and returns a boolean value:
- [in] progress in percents as integer value;
- [in] warning that occurred during processing, represented by a RecognitionWarning constant;
- [out] true to proceed recognition, false to stop recognition.
onOrientationDetected
The callback informing you when the image orientation is detected. The angle parameter can take values of 0, 90, 180, and 270, and means the angle on which the image should be rotated to get normal orientation.

Return values

When data are extracted, result is returned as a list of DataField objects.

02.03.2022 12:59:15

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.