Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug report] Scanned document is roatated by 180° #843

Open
ymaskin opened this issue Jul 3, 2024 · 2 comments
Open

[Bug report] Scanned document is roatated by 180° #843

ymaskin opened this issue Jul 3, 2024 · 2 comments
Assignees

Comments

@ymaskin
Copy link

ymaskin commented Jul 3, 2024

Describe the bug
In about 50-70% of the time, the document I scan is rotated by 180 degrees and I need to rotate it manually. It's a really bad UX.

To Reproduce
Example Steps to reproduce the behavior in the sample app:

  1. Scan a document
  2. Look at the result
  3. It will be scanned upside down (If it's correctly showing. retry 2-3 times)

Expected behavior
The default rotation should be most of the time in the same way as the actual scanned document

SDK Info:

  • com.google.android.gms:play-services-mlkit-document-scanner:16.0.0-beta1

Smartphone:

  • Device - Pixel 7 Pro, Android API 34
  • Device - Samsung A54 Android API 33
@ai-plays
Copy link
Collaborator

ai-plays commented Jul 3, 2024

Could you share more info about what type of document you are scanning, if possible, some images would be helpful.

There is an auto-rotation functionality in the scanner: when there is text detected, it will try to keep the text upwards.

Also when you do the scanning, is your phone kept mostly in parallel to the ground? In such case, the original image captured could be upside. Auto-rotation is designed to deal with that. However, if it is not triggered, e.g. due to no text, the original wrong orientation would be kept.

@mebjas
Copy link
Collaborator

mebjas commented Jul 4, 2024

Can you also share some image samples where this is easy to reproduce. This is an area we are actively working on to bring improvements.

@mebjas mebjas assigned zerocool95 and unassigned mebjas Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants