菜鸟教程小白 发表于 2022-12-12 13:27:38

ios - GMV 无法检测 AAMVA 驾照


                                            <p><p>我正在使用 <a href="https://developers.google.com/vision/ios/barcodes-overview" rel="noreferrer noopener nofollow">Barcode API</a>从 Google Mobile Vision GMV 扫描 AAMVA 驾驶执照类型。 </p>

<pre><code>- (void)viewDidLoad {
;

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

// Initialize a barcode detector.
self.barcodeDetector = ;
}
</code></pre>

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

<p>我错过了什么?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>问题似乎是由捕获 session 预设引起的。
我在 Google Mobile Vision 的 GitHub 问题下找到了解决方案:</p>

<pre><code>- (void)viewDidLoad {
;

// Set up default camera settings.
self.session = [ init];
self.session.sessionPreset = AVCaptureSessionPresetHigh;
</code></pre>

<p> <a href="https://github.com/googlesamples/ios-vision/issues/6" rel="noreferrer noopener nofollow">https://github.com/googlesamples/ios-vision/issues/6</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - GMV 无法检测 AAMVA 驾照,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/44284994/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/44284994/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - GMV 无法检测 AAMVA 驾照