gpt4 book ai didi

android - ZXing PDF417 + ALL_CODE_TYPES

转载 作者:行者123 更新时间:2023-11-29 01:44:02 27 4
gpt4 key购买 nike

使用 ZXing(在 Android 上),如果您像这样启动 PDF417 条码扫描...

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

... 然后您像这样启动“所有代码”(除了 PDF417 和其他一些)条形码扫描...

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

...那么您如何启动一个单一的条形码扫描来识别两者(所有标准代码和 PDF417)?提前致谢!

最佳答案

如果您不指定它,它将默认扫描用户配置的任何内容。默认情况下,这包括大多数格式,但不包括 PDF417。所以,我认为您必须在此处列举所有格式。这并不难,但你真的想要吗?通常你有一个最多扫描一些相关格式的用例。

关于android - ZXing PDF417 + ALL_CODE_TYPES,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22567698/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com