Skip to main content

Detection on the Image | Cordova Document Scanner

Detects a check on a still image (PNG or JPG file) regardless of the image source (e.g. scanned document image, image picked from photo library, etc).

recognizeCheckOnImage(args: RecognizeCheckOnImageArgs): Promise<RecognizeCheckResult>
interface RecognizeCheckOnImageArgs  {
/**
* The input image file URI.
*/
imageFileUri: string;

/**
* An optional array of check types that act as a detection filter.
* By default all supported check formats will be detected.
*/
acceptedCheckStandards?: CheckStandard[];
}
import ScanbotSdk from 'cordova-plugin-scanbot-sdk';

private SDK = ScanbotSdk.promisify();

// Always make sure you have a valid license on runtime via SDK.getLicenseInfo()
if (!licenseCheckMethod()) { return; }

const result = await this.SDK.recognizeCheckOnImage({
imageFileUri: imageUri
});

// Handle the detected check(s) from result

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

What do you think of this documentation?