We are using this code to read all the barcodes of a file that contains 25 barcodes. It returns 23 of them because two of the barcodes are duplicated. We understand that this solution erases duplications. Is there any solution to avoid the erasure of duplicated values? We need to read all of them, even duplications.
Bitmap myBitmap = BitmapFactory.decodeResource(getApplicationContext().getResources(),
R.drawable.asuscode);
Frame frame = new Frame.Builder().setBitmap(myBitmap).build();
SparseArray<Barcode> barcodes = barcodeDetector.detect(frame);