Akylas / OSS-DocumentScanner

Android document document scanning app
https://www.akylas.fr
MIT License
699 stars 24 forks source link

Improvements regarding "whitepaper" feature. #57

Open ConEstArthur opened 8 months ago

ConEstArthur commented 8 months ago

I just wanted to let you know you're doing an amazing work on this project. It's baffling to me seeing the quality of the app as it's very intuitive, easy to use and free ?? How ? :)

To improve it further Few enhancements can be done to page scanning and overall quality of the scans. I've tried every single (popular ones) document scanning app on play store. I don't know how vflat does it but when I scan a document on it, after the post processing, it eliminates all the marks of text that are on the other side of the page. The output looks way too clean. So it's may be related to "whitepaper" feature ? It can be improved further upon. After using "enhance" feature with "whitepaper" the difference becomes more apparent. Even more so with handwritten notes.

Vflat 20231230_141857099

Oss 1703984179191

farfromrefug commented 8 months ago

@ConEstArthur thanks for the kind words about the app.

yes all can be improved ! can you share your original image before white paper post processing ?

it will be hard to get the same result as vflat but we never know...

ConEstArthur commented 8 months ago

@ConEstArthur thanks for the kind words about the app.

yes all can be improved ! can you share your original image before white paper post processing ?

it will be hard to get the same result as vflat but we never know...

Ofcourse. Here it is - 1703999816591

Though It isn't that much of a big deal, I thought I should just let you know since this app has potential to become the best option for documents and making ebooks. :)

Edit:- upon further testing, I find BW and Polaroid filters with whitepaper helps in eliminating text marks. But strength of BW filter must be dialed down since it renders the document overblown and messes up text a bit ??

Here's an example of how it looks when I use polaroid filter and then edit the image to black and white manually. Kinda looks nice ( bold characters could get enhanced though.. check vflat sample ) ResizedImage_2023-12-31_15-40-34_1

mario-g98 commented 1 month ago

Whitepaper really needs improvement :/ 1721922174712 (1) 1721922174712

farfromrefug commented 1 month ago

@mario-g98 indeed i am not really happy with that algorithm. But for now i could not find a better one. I keep on searching but cant find what could work best.

ConEstArthur commented 1 month ago

Whitepaper really needs improvement :/ !

Microsoft Lens works really well for this sample. (Not oss ofcourse) I think vflat and lens are the examples we can draw inspiration from. Surely It'd be a complex venture to figure out all the algorithms.

farfromrefug commented 1 month ago

@ConEstArthur yes all have fast and accurate algorithm. But it is almost impossible to reverse engineer... Our best bet would be to find an open source app which already did something like this, and maybe improve upon it

ConEstArthur commented 1 month ago

Our best bet would be to find an open source app which already did something like this, and maybe improve upon it

Do paperless ngx or docspell comprise the feature similar to "Whiteboard" ?