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 ?
The problem appears to be caused by the capture session preset. I found the solution under Google Mobile Vision's GitHub issues:
https://github.com/googlesamples/ios-vision/issues/6