Skip to main content

Cordova is deprecated

This platform is deprecated and will not receive further updates or new features. Existing customers may continue to use and renew their license, while new projects should use Capacitor, which is the recommended alternative.

View Capacitor documentation

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 free trial license