googlesamples / googlesamples/mlkit

[Bug report] page limit is ignored

Open
#984 1 comment 0 reactions 1 assignee Claimed by @avivadla8 View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.