googlesamples / android-vision

Deprecated: The Mobile Vision API is now a part of ML Kit: Check out this repo:
https://github.com/firebase/quickstart-android/tree/master/mlkit
Apache License 2.0
2.93k stars 1.73k forks source link

barcodeDetector.isOperational() always false + no low storage + good network #46

Open loutry opened 8 years ago

loutry commented 8 years ago

Hello!

I always get barcodeDetector.isOperational() at false on a nexus 4 with PlayServices 8.3, 633Mo free on 12,92Go (so low storage isn't fired) and a good network connection.

Here are some logs:

I/Vision﹕ Supported ABIS: [armeabi-v7a, armeabi]
I/Vision﹕ Requesting barcode detector download.
W/ScanActivity: Detector dependencies are not yet available.

I also cleared the PlayServices cash and uninstall/reinstall the demo app and my app and it still doesn't download the dependencies :(

Any idea what could prevent those dependencies to get downloaded ?

please

pm0733464 commented 8 years ago

The "low storage" condition on many devices is set to be "10% of total storage". So a Nexus 4 with 16 GB total storage may need about 1.6 GB free to not be considered low on storage.

UPDATE: The Google Play Services 8.4 release lowers the amount of free storage required in order to enable the download. This is now 500 MB or 10% of total storage, whichever is less. See the release notes:

https://developers.google.com/vision/release-notes?hl=en

loutry commented 8 years ago

Ok thanks! I thought the check to download the library when low storage occurred was different because on this nexus 4 the registerReceiver(null, lowstorageFilter) sent me back a null intent. I just triple check this result and that's why I thought somethings was strange and open an issue. Any idea how this could happen ? Even if the user did a trick via its settings (he said me that he didn't), the PlayServices should also benefit it and download the library, doesn't it ?

mitchross commented 8 years ago

@loutry you can you this as a work around for now https://gist.github.com/mitchross/b012bd72a9cd3b1f92c7

loutry commented 8 years ago

thanks @mitchross :)

ggirard07 commented 8 years ago

Is this the "serious bug" mentioned in v9.0 release notes?

rajeshsubramanian commented 7 years ago

I am seeing this issue running the ocr-reader sample on a Samsung S4 running Lollipop. I have a 16GB device with about 1.2GB free space. Any ideas what could be causing this?