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
- Swift
- Objective-C
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)
}
#import "MCDetectionOnImage.h"
@import ScanbotSDK;
@implementation MCDetectionOnImage
- (void) detectMedicalCertificateOnImage {
// Image containing Medical Certificate.
UIImage *image = [UIImage imageNamed:@"medicalCertificateImage"];
// Creates an instance of `SBSDKMedicalCertificateRecognizer`.
SBSDKMedicalCertificateRecognizer *detector = [[SBSDKMedicalCertificateRecognizer alloc] init];
// Returns the result after running detector on the image.
SBSDKMedicalCertificateRecognizerResult *result = [detector recognizeFromImage:image detectDocument:TRUE];
}
@end
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get your free Trial LicenseWhat do you think of this documentation?
What can we do to improve it? Please be as detailed as you like.