Open Maheswaran140387 opened 4 years ago
This would be better handled in Stackoverflow... it is not an error within the API but with your code. As pointed out when you set the processor
barcodeDetector.setProcessor(new Detector.Processor<Barcode>()
should be something like
BarcodeDetector barcodeDetector = new BarcodeDetector.Builder(context).build();
BarcodeTrackerFactory barcodeFactory = new BarcodeTrackerFactory(mGraphicOverlay, this);
barcodeDetector.setProcessor(
new MultiProcessor.Builder<>(barcodeFactory).build())
and then to get the results
@Override
public void onBarcodeDetected(Barcode barcode) {
//do something with barcode data returned
}
checkout out this Google sample on this class.
I am facing the below issue while using the google vision api for scanning qr code.
Detector processor must first be set with setProcessor in order to receive detection results. site:stackoverflow.com
can you please help me on this?
The camera preview is not opening at the first time, also I am unable to update the UI once the scan is successful.
Below is my code
{
}