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

Preview of Document scanner is on some devices in landscape and result in poor quality #840

Open bassmaster187 opened 4 months ago

bassmaster187 commented 4 months ago

Describe the bug On some devices the preview is in landscape (eg. Samsung Active Tab 3). So most of the sensor area is cropped and result in poor quality.

To Reproduce Use a Samsung Galaxy Active Tab 2 or 3. Maybe with many other devices possible?

image

Expected behavior Force a portrait preview and use the whole sensor area of the camera. Provide an option to use a specific preview size, so we can find the best preview size for specific devices.

SDK Info: play-services-mlkit-document-scanner = { module = "com.google.android.gms:play-services-mlkit-document-scanner", version.ref = "16.0.0-beta1"}

Smartphone: Samsung Galaxy Tab Active 3 (SM-T575) - Android 11 Samsung Galaxy Tab Active 2 (SM-T395) - Android 9

mebjas commented 3 months ago

Thanks for filing the bug, this is a known issue and is being triaged by the team along with other high priority fixes.

Will update this ticket once there is a fix.

bassmaster187 commented 1 month ago

Hi @mebjas ,

could you please provide an estimate of when a bugfix can be expected?