I am using google vision api for scanning QR code and barcode. It is not supporting camera autofocus and remains blurred when detecting a barcode. Although my device supports autofocus. I am using autofocus feature provided by vision api but its not working
cameraSource = new CameraSource
.Builder(getActivity(), barcodeDetector)
.setRequestedPreviewSize(1600, 1024)
.setAutoFocusEnabled(true)
.build();
Log is showing:
I/CameraSource: Camera auto focus is not supported on this device.
Please Help. How can I resolve this?