Skip to main content

Scanning a check from an image

To detect a check on a still image, you can use the recognize(on:) method of the SBSDKCheckRecognizer class. It takes an image as input and returns the result after performing detection on the image.

Example for detecting Generic Document on the Image

import Foundation
import ScanbotSDK

func detectCheckOnImage() {

// Image containing Check.
guard let image = UIImage(named: "checkImage") else { return }

// Creates an instance of `SBSDKCheckRecognizer`.
let detector = SBSDKCheckRecognizer()

// Type of checks that needs to be detected.
let acceptedCheckTypes = SBSDKCheckDocumentRootType.allDocumentTypes

// Set the types of check on detector.
detector.acceptedCheckTypes = acceptedCheckTypes

// Returns the result after running detector on the image.
let result = detector.recognize(on: image)

Want to scan longer than one minute?

Generate your free "no-strings-attached" Trial License and properly test the Scanbot SDK.

Get your free Trial License

What do you think of this documentation?