OXXY
OXXY

Reputation: 1047

GMV can't detect AAMVA driver license

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

Answers (1)

Aron Price
Aron Price

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

Related Questions