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

Page recognition never works properly #86

Open
bratekarate opened this issue Sep 9, 2022 · 3 comments
Open

Page recognition never works properly #86

bratekarate opened this issue Sep 9, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@bratekarate
Copy link

I have used this app a lot, since it is open source and I want to support it. However, It never correctly recognized the actual document borders. Not once in about 100 scans. I went through the trouble of manually selecting the document many times -- but I canont do it anymore. It's just too much work.

Is this expected behaviour? None of this is documented or reported as a Github Issue, which is hard for me to believe since multiple reviews on the Play Store mention it. If this is a shortcoming -- fair enough, it's an open source project. But this should definitely be documented, to prevent dissappointment in this open source project.

If this is rather an isolated issue that me and a handful of others are experiencing, it would be great to know how to troubleshoot it. There are no "settings" in the app, hence I'm unsure how to change any configuration.

Otherwise a great app -- although I only use it to take pictures and group them in Folders/Create PDFs for now, although it is a scanner app. I want to give this app as many chance as possible, but at some point I may have to switch back to properly functioning proprietary solutions.

Since I am a Java Developer I may also be able to contribute to a bugfix if pointed in the right direction.

@mi-girl
Copy link

mi-girl commented Sep 12, 2022

Yes, same issue. Otherwise the app is great.
I am afraid the fix will not be so easy. It needs some kind of AI I guess.

@veejayts veejayts added the enhancement New feature or request label Sep 16, 2022
@veejayts
Copy link
Member

The edge detection is kind of tricky. In the live version OpenCV is being used through JNI on the android side of implementation to execute the C++ code which detects the edges.

We are refactoring it to directly use the java implementation of OpenCV but our testing has shown little improvements over the existing edge detection. So we are implementing and testing alternatives such as BoofCV.

Alternatives/suggestions are welcome.

We are also refactoring the code to make it more friendly to contributions, but as you may be able to tell, all of these are huge tasks.

vikram0230 added a commit that referenced this issue Dec 4, 2022
@m1m1k
Copy link

m1m1k commented Mar 18, 2023

Agreed +1 on this.
Its not just that it doesn't get the edges right, opens can just fails every time I don't have a perfectly rectangular page.
Use case/repro : I'd like to scan my post/mail documents, which are always usually folded to fit inside envelopes. I take out the papers, unfold the and try to straighten. I then try to get good lighting, and place them very flatly on the counter.

I then scan the doc, and instead of just failing edge detection, it quits and restarts the entire app almost every time. Its suuuuuper painful and makes the app unusable in almost all cases.

Even when its a 8.5x11 or A4 printed document it still has trouble, even in good lighting.
I noticed that its exceptionally buggy when I'm trying to scan the top paper of a stack (then the edges are not 100% perfect, as there are edges from papers underneath not perfectly aligned).
Also receipts from restaurants and gas stations often have a ripped edge - which also causes failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants