Home > Net >  How to detect and mark QR code in my Android Bitmap
How to detect and mark QR code in my Android Bitmap

Time:02-10

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 {
                  // ...
                }

Mark QR code

CodePudding user response:

  •  Tags:  
  • Related