mlkit
mlkit copied to clipboard
[Bug report] page limit is ignored
When I configure
.setPageLimit(5)
I can still take more than 5 pictures.
To Reproduce
use these options to create the document scanner:
val options =
GmsDocumentScannerOptions.Builder()
.setGalleryImportAllowed(true)
.setResultFormats(GmsDocumentScannerOptions.RESULT_FORMAT_JPEG)
.setPageLimit(5)
.setScannerMode(GmsDocumentScannerOptions.SCANNER_MODE_BASE)
Take pictures
Expected behavior
I can only take 5 pictures.
Actual behavior
I can take more than 5 pictures.
SDK Info:
- com.google.android.gms:play-services-mlkit-document-scanner:16.0.0
Smartphone:
- Pixel 10 and virtuall every other phone I've tried
Update:
The fix has been in the roll out phase, and is currently rolled out to 50% of production users (with Google Play services version >= 25.42.xx ). Will rollout to 100% users by Nov 23.