Reputation: 1047
I'm using Barcode API from Google Mobile Vision GMV to scan AAMVA driver license type.
- (void)viewDidLoad {
[super viewDidLoad];
NSDictionary *options = @{
GMVDetectorBarcodeFormats : @(GMVDetectorBarcodeFormatQRCode | GMVDetectorBarcodeFormatPDF417)
};
// Initialize a barcode detector.
self.barcodeDetector = [GMVDetector detectorOfType:GMVDetectorTypeBarcode options:options];
}
The app now detects PDF417 types but not Driver licenses.
What I'm missing ?
Upvotes: 2
Views: 409
Reputation: 41
The problem appears to be caused by the capture session preset. I found the solution under Google Mobile Vision's GitHub issues:
- (void)viewDidLoad {
[super viewDidLoad];
// Set up default camera settings.
self.session = [[AVCaptureSession alloc] init];
self.session.sessionPreset = AVCaptureSessionPresetHigh;
https://github.com/googlesamples/ios-vision/issues/6
Upvotes: 3