ZXing PDF417 + ALL_CODE_TYPES

依然范特西╮ 提交于 2019-12-11 03:04:35

问题


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);

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

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

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


回答1:


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.



来源:https://stackoverflow.com/questions/22567698/zxing-pdf417-all-code-types

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!