[BUG] Focus doesn't lock properly, causing blurry scans

Open
#710 9 comments 3 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
android

Research direction

No source file, test, or entry point is named. Start by locating the Android camera capture and autofocus handling in Document Scanner, then determine how focus behaves during scan capture. Done means scans no longer capture while autofocus is changing, including on the reported Android 13 setup, without requiring flash.

Written by the indexing model from the issue text.

Description

bug done
Which app is your issue for

Document Scanner

Version

v1.25.0 Build 160

What platform are you using?

Android

OS Version

Android 13 (ColorOS)

What happened?

When I'm attempting to scan certain pages I find that the camera tries to refocus while the app is taking the scan. On some pages this means that the photo occurs while the camera is completely unfocused and I can't take the scan at all. Enabling flash helps somewhat, but leads to uneven lighting so I'd rather avoid it if possible.

Is it possible to force the app to lock focus while taking the scan?

Relevant log output

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.