我们正在使用此代码读取包含 25 个条形码的文件的所有条形码。它返回其中的 23 个,因为其中有两个条形码重复。我们知道这个解决方案可以消除重复。是否有任何解决方案可以避免删除重复值?我们需要阅读所有这些,甚至是重复的。
Bitmap myBitmap = BitmapFactory.decodeResource(getApplicationContext().getResources(),
R.drawable.asuscode);
Frame frame = new Frame.Builder().setBitmap(myBitmap).build();
SparseArray<Barcode> barcodes = barcodeDetector.detect(frame);