[BUG] Camera defaults to 0.7x ultra-wide lens instead of 1x, causing blurry scans

Open
#693 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
android, cpp
Domain
mobile

Research direction

Reproduce the first-launch camera behavior on the reported Pixel 7 and locate the Android scanner camera implementation that initializes zoom and restores the user's lens choice. Check how the default lens is selected when no saved setting exists, then verify that new scans start at the primary 1x camera without breaking remembered selections.

Written by the indexing model from the issue text.

Description

bug done
Which app is your issue for

Document Scanner

Version

Google Play : Version 1.25.0

What platform are you using?

Android

OS Version

Android 16
Google Pixel 7 (Stock ROM)

What happened?
Description

On my Google Pixel 7, the scanner camera opens with the zoom level set to 0.7x (ultra-wide lens) by default instead of the standard 1x lens.

Because the app starts on the ultra-wide camera, the captured document appears noticeably blurrier than expected. At first I assumed there was an issue with my phone's camera or focus, but after some testing I realized that manually switching the zoom to 1x immediately produces sharp scans.

Expected behavior

The scanner should open using the device's primary camera (typically 1x) by default, or remember the last camera/lens selected by the user.

I noticed that after I manually switch to 1x, the app remembers that setting on subsequent launches, which is great. However, first-time users may not realize the scanner is using the ultra-wide lens by default and may assume the app's camera quality is poor.

On devices with a 0.5x ultra-wide lens, the effect can be even more noticeable because the document appears much smaller in the viewfinder. While on my Pixel 7 (0.7x) the difference isn't dramatic, it was still enough for me to spend time troubleshooting why scans looked blurrier than expected before realizing the default lens was the cause.

This would:

  • Prevent users from getting blurry scans on devices with an ultra-wide camera.
  • Match the standard camera lens that most users expect for document scanning.
  • Avoid confusion, since many users may not realize that 0.7x is being used by default.
Device
  • Device: Google Pixel 7
  • Android: 16
  • Default camera opens at: 0.7x
  • Manual switch to 1x fixes the issue.
  • App version : 1.25.0
Relevant log output
No relevant logs available.
Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
C++
Stars
2.7k
Forks
153
Avg merge
9h 56m
Merged PRs (30d)
121

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ossappscollective/OSS-DocumentScanner

All issues in ossappscollective/OSS-DocumentScanner

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.