GoogleCloudPlatform / iot-smart-home-cloud

Sample project using Cloud IoT Core and the Google Assistant
Apache License 2.0
116 stars 58 forks source link

Barcode scanner is not working #1

Closed mamidipalli closed 5 years ago

mamidipalli commented 5 years ago

QR Code with TEXT, to register a new device is not being scanned. _detector.detectInImage(firebaseImage) is not returning any Barcode objects.

devunwired commented 5 years ago

Hi Ravi, can you provide some more details about the device you are using to run the sample code?

You might also try playing around with the resolution settings inside of register.dart. The sample uses ResolutionPreset.low for the best frame rate, but on your device you might get better results with a higher value.

Finally, you could verify whether or not the official ML Kit Vision Flutter sample detects properly on your device. If not, you may consider filing an issue with the plugin support for your device.

mamidipalli commented 5 years ago

Hi Dave, Thanks for the response.

I am using One Plus 5 device for testing. I have changed the resolution settings to ResolutionPreset.high and it is working now.

mamidipalli commented 5 years ago

The issue is resolved.