2017-05-31 3 views
2

私はGoogle Mobile Vision GMVのBarcode APIを使用して、AAMVAドライバのライセンスタイプをスキャンしています。GMVがAAMVAドライバライセンスを検出できない

- (void)viewDidLoad { 
    [super viewDidLoad]; 

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

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

ドライバのライセンスではなくPDF417タイプを検出するようになりました。

私が紛失していることはありますか?

+3

提供してもサンプルコードはAndroidのサンプルに読み取ることができる運転免許証を読み取ることができません。 – ibnetariq

+0

オプションにGMVDetectorBarcodeValueFormatDriversLicenseを追加しました。しかし、それはまだ動作していない –

答えて

2

この問題は、キャプチャセッションのプリセットによって発生しているようです。 私はGoogleモバイルのビジョンの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

関連する問題