Google ML套件,BarocodesCannerOptions动态添加条形码读取类型
我添加了选择按钮。但是,我无法将数据传输到选项部分。 我的代码如下。如何以编程方式添加深色零件?
barcodescanneroptions options =新的barcodescanneroptions.builder() .setBarcodeFormats( settings.getBarcodeean13(),settings.getBarcodeean8() )。build();
public barcodescannerprocessor(上下文上下文,交易所canneddata fisshangescanneddata){ 超级(上下文);
settings = new Settings(context);
// Comment this code if you want to allow open Barcode format.
BarcodeScannerOptions options = new BarcodeScannerOptions.Builder()
.setBarcodeFormats(settings.getBarcodeEan13(),settings.getBarcodeEan8()).build();
barcodeScanner = BarcodeScanning.getClient(options);
I added select buttons. However, I cannot transfer the data here to the options section.
my codes are as follows. How can I add the dark parts programmatically?
BarcodeScannerOptions options = new BarcodeScannerOptions.Builder()
.setBarcodeFormats(settings.getBarcodeEan13(),settings.getBarcodeEan8()).build();
public BarcodeScannerProcessor(Context context, ExchangeScannedData exchangeScannedData) {
super(context);
settings = new Settings(context);
// Comment this code if you want to allow open Barcode format.
BarcodeScannerOptions options = new BarcodeScannerOptions.Builder()
.setBarcodeFormats(settings.getBarcodeEan13(),settings.getBarcodeEan8()).build();
barcodeScanner = BarcodeScanning.getClient(options);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个解决方法是,您可以手动计算支持的格式。
One workaround is you can compute the supported formats manually.