ZXing PDF417 + ALL_ code_TYPES [英] ZXing PDF417 + ALL_CODE_TYPES

查看:842
本文介绍了ZXing PDF417 + ALL_ code_TYPES的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用ZXing(Android上的),如果你启动一个PDF417条码code扫描这样的...

Using ZXing (on Android), if you initiate a PDF417 barcode scan like this...

List<String> oDesiredFormats = Arrays.asList("PDF_417".split(","));
IntentIntegrator integrator = new IntentIntegrator(this);
integrator.initiateScan(oDesiredFormats);

...你启动一个的所有codeS(除PDF417,也许其他一些)条code扫描这样的...

... and you initiate an "all codes" (except PDF417 and maybe a few others) barcode scan like this...

IntentIntegrator integrator = new IntentIntegrator(this);
integrator.initiateScan();

...那你怎么启动单杆code扫描,将同时识别(所有的标准codeS和PDF417)?在此先感谢!

... then how do you initiate a single barcode scan that will recognise both (all the standard codes, and PDF417)? Thanks in advance!

推荐答案

如果你不指定它,它会默认为任何用户配置的扫描。这在默认情况下包括大多数格式,但不PDF417。所以,我认为你必须在这里列举的所有格式。这不是太辛苦,但你真的想要吗?通常你拥有最多是在扫描一些相关的格式的使用案例。

If you don't specify it, it will default to scanning for whatever the user has configured. This by default includes most formats but not PDF417. So, I think you'd have to enumerate all the formats here. It's not too hard, but do you really want that? usually you have a use case that is scanning for a few related formats at most.

这篇关于ZXing PDF417 + ALL_ code_TYPES的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆