Scanning a European health insurance card from an image
Provided a still image, the EU health insurance card scanner can perform detection on the image and return the result.
The recognize(onStillImage:)
method of SBSDKHealthInsuranceCardRecognizer
takes an input of a still image, and returns the result.
Example for detecting EU Health Insurance Card on the Image
- Swift
- Objective-C
import Foundation
import ScanbotSDK
func detectEhicOnImage() {
// Image containing EU Health Insurance Card.
guard let image = UIImage(named: "ehicImage") else { return }
// Creates an instance of `SBSDKHealthInsuranceCardRecognizer`.
let detector = SBSDKHealthInsuranceCardRecognizer()
// Returns the result after running detector on the image.
let result = detector.recognize(onStillImage: image)
}
#import "EhicDetectionOnImage.h"
@import ScanbotSDK;
@implementation EhicDetectionOnImage
- (void) detectEhicOnImage {
// Image containing EU Health Insurance Card.
UIImage *image = [UIImage imageNamed:@"ehicImage"];
// Creates an instance of `SBSDKHealthInsuranceCardRecognizer`.
SBSDKHealthInsuranceCardRecognizer *detector = [[SBSDKHealthInsuranceCardRecognizer alloc] init];
// Returns the result after running detector on the image.
SBSDKHealthInsuranceCardRecognitionResult *result = [detector recognizeOnStillImage:image];
}
@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.