mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

[Bug report] page limit is ignored

Open kurthuwig opened this issue 2 months ago • 1 comments

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

kurthuwig avatar Nov 03 '25 14:11 kurthuwig

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.

avivadla8 avatar Nov 19 '25 05:11 avivadla8