googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Apache License 2.0
3.55k stars 2.93k forks source link

Requesting pages 50 but able to scan only 10 pages #782

Closed kiranNanda closed 7 months ago

kiranNanda commented 8 months ago

I am entering 50 pages in number of pages but when start scanning + sign hides after 10 pages scan. Storage of App get increased in MBs how to manage this .

ai-plays commented 8 months ago

I assume you are talking about the document scanner API. (Please consider following the issue template so we can save round-trip for info collection).

I couldn't reproduce this issue. Does it happen every time for you?

For storage increase, it could be the images being scanned. The scanning API returns the Uri for the result. After using, you can delete the file pointed by the Uri to free space.

kiranNanda commented 8 months ago

Yes it's happening every time. Whatever page number I entered + button disappeared after 10 pages scan.

On Sat, Feb 24, 2024, 5:51 AM steven @.***> wrote:

I assume you are talking about the document scanner API. (Please consider following the issue template so we can save round-trip for info collection).

I couldn't reproduce this issue. Does it happen every time for you?

For storage increase, it could be the images being scanned. The scanning API returns the Uri for the result. After using, you can delete the file pointed by the Uri to free space.

— Reply to this email directly, view it on GitHub https://github.com/googlesamples/mlkit/issues/782#issuecomment-1962170983, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFPSCFH2A6BPRJNSLCNAGLYVEXBVAVCNFSM6AAAAABDWVFRR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGE3TAOJYGM . You are receiving this because you authored the thread.Message ID: @.***>

lipenny000 commented 8 months ago

@kiranNanda I supposed you were using api https://developers.google.com/android/reference/com/google/mlkit/vision/documentscanner/GmsDocumentScannerOptions.Builder#setPageLimit(int) to set the page limit to 50.

Without setting page limit or limit other than 50, does the issue happen too?

How do you reproduce the issue? Using MLKit document scanner demo app or your own app? If it's your own app, do you mind sharing the code snippets about the setting of GmsDocumentScannerOptions?

What hardware did you see this issue happen? Have you tried different device and can also reproduce the same issue?

kiranNanda commented 7 months ago

Thank you lipenny000 it worked for me