OGeek|极客世界-中国程序员成长平台

标题: ios - GMV 无法检测 AAMVA 驾照 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 13:27
标题: ios - GMV 无法检测 AAMVA 驾照

我正在使用 Barcode API从 Google Mobile Vision GMV 扫描 AAMVA 驾驶执照类型。

- (void)viewDidLoad {
  [super viewDidLoad];

  NSDictionary *options = @{
    GMVDetectorBarcodeFormats : @(GMVDetectorBarcodeFormatQRCode | GMVDetectorBarcodeFormatPDF417)
  };

  // Initialize a barcode detector.
  self.barcodeDetector = [GMVDetector detectorOfType:GMVDetectorTypeBarcode optionsptions];
}

该应用现在检测 PDF417 类型,但不检测驾驶执照。

我错过了什么?



Best Answer-推荐答案


问题似乎是由捕获 session 预设引起的。 我在 Google Mobile Vision 的 GitHub 问题下找到了解决方案:

- (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

关于ios - GMV 无法检测 AAMVA 驾照,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44284994/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4