Skip to main content

Scanning a medical certificate from an image

The Medical Certificate scanner comes with the ability to perform detection on a static image. The recognize(from:detectDocument:) method of SBSDKMedicalCertificateRecognizer takes an image as input and returns the result.

Example for detecting Generic Document on the Image

import Foundation
import ScanbotSDK

func detectMedicalCertificateOnImage() {

// Image containing Medical Certificate.
guard let image = UIImage(named: "medicalCertificateImage") else { return }

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

// Returns the result after running detector on the image.
let result = detector.recognize(from: image, detectDocument: true)
}

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?