I have a image of multiple QR code. Can I detect all of them and mark QR code position in my image. I used Google MLKit Vision to read QR code but I have no idea to mark them.
val options = BarcodeScannerOptions.Builder()
.setBarcodeFormats(Barcode.FORMAT_QR_CODE)
.build()
val image = InputImage.fromBitmap(bitmap, DEFAULT_VALUE)
val scanner = BarcodeScanning.getClient(options)
scanner.process(image)
.addOnSuccessListener { barcodes ->
// Handle barcodes
}
.addOnFailureListener {
// ...
}
CodePudding user response: