News for hackers. Stuff that matters.
Re:Show HN: OpenScan – open-source document scanner app by adontz on Sunday January 03, 2021 @11:52AM (#25622895)
User Experience: This app does not open scan dialog immediately, annoying.

Features: This app does not fix perspective distortion.

Office Lens (https://play.google.com/store/apps/details?id=com.microsoft....) is so much better, I get rectangular image without any hints, to say nothing about manually selecting anything.

Office Lens really creates this https://play-lh.googleusercontent.com/AgErNUVn_Jg41jSQO2p2CF... from this https://play-lh.googleusercontent.com/yv6eUY6EyR8x2Hd6NB1SBW... and that is amazing.

Re:Show HN: OpenScan – open-source document scanner app by solarkraft on Sunday January 03, 2021 @12:18PM (#25623123)
Office Lens is very good, but huge (> 100MB) and ... pretty proprietary and with some UX quirks. I'd greatly appreciate a FOSS version of it.
Re:Show HN: OpenScan – open-source document scanner app by causality0 on Sunday January 03, 2021 @11:32PM (#25627952)
If it doesn't fix perspective distortion then in what sense is it a document scanner and not just a camera app?
Re:Show HN: OpenScan – open-source document scanner app by cfjgvjh on Monday January 04, 2021 @09:10AM (#25631508)
(Disclaimer, I have not used the app)

Presumably it outputs multiple images combined as a pdf/word as opposed to just images.

Re:Show HN: OpenScan – open-source document scanner app by hawski on Sunday January 03, 2021 @12:51PM (#25623407)
I always wanted a tool to place a polygon (even just four corners) and ability to set an aspect ratio (custom or preset like 4:3, 16:9 and A-series) and have perspective fixed image or just move vertices around (just like you expect by having a textured polygon). I would like to have this tool as a part of GIMP and a standard around light image editing tools like many viewers are. Perspective correction tools are either designed for photography or I don't really know how to use them. When you have this you can add edge detection and you're almost done to do this automatically.
Re:Show HN: OpenScan – open-source document scanner app by Loranubi on Monday January 04, 2021 @04:10AM (#25629086)
I made a simple GUI in python which essentially wraps OpenCV's getPerspectiveTransform/warpPerspective. It let's you select the four corners, chose an aspect ratio and do some simple postprocessing. I was working on edge detection, but it's not working well right now.

I will try to put it on github. EDIT: https://github.com/Dobatymo/dewarp Few years old and very unpolished though

Re:Show HN: OpenScan – open-source document scanner app by jfengel on Monday January 04, 2021 @05:02PM (#25638859)
I've been using the Adobe equivalent, and it seems to work pretty well. It's not quite as good as a flatbed scanner, but it does a good-enough job with nothing more than my existing phone.

Still, if there were a better one, I'd use it. Its interface is slightly clunky and it's only so-so with documents that have been folded. Is the MS one any better?

Re:Show HN: OpenScan – open-source document scanner app by qilo on Tuesday January 05, 2021 @09:08AM (#25645621)
Tried both, Adobe Scan and Office Lens, and liked MS one more, because its default “auto” filter produced more legible documents (better contrast and brigthness) than the Adobe’s “auto”, IMO.
Re:Show HN: OpenScan – open-source document scanner app by jfengel on Tuesday January 05, 2021 @09:24AM (#25645767)
Thanks for the tip!
Re:Show HN: OpenScan – open-source document scanner app by pinusc on Sunday January 03, 2021 @12:26PM (#25623198)
My first instinct is to compare this to OpenNoteScanner, the only other quasi-functioning FOSS note scanning app.

The UI here is significantly more polished and better. The only thing OpenNoteScanner does better is that it starts in camera mode, and therefore the workflow is a bit faster.

However, feature-wise this is seriously lacking. I would not consider using this until it can automatically crop and correct perspective distortion.

Also the default filters are seriously lacking. Either make them smarter or give the user more control (e.g. for B/W allow setting the threshold, even for decently-lit documents I get poor results with random black areas)

You can do both by integrating with OpenCV. No idea how easy it is to integrate it with flutter though...

Anyways, good job! I'll keep following the project and might consider contributing if you ever start working on these features.

Re:Show HN: OpenScan – open-source document scanner app by mighty3xodus on Sunday January 03, 2021 @12:50PM (#25623397)
Thank you for the suggestions! I will for sure take it into consideration.

The scanner itself is from another open source project, the only one which was a viable option. I'll have to look into OpenNoteScanner's scanner if I were to improve mine. Seems people are happy with the edge detection it offers.

Thank you :)

Re:Show HN: OpenScan – open-source document scanner app by sdwolfz on Sunday January 03, 2021 @12:03PM (#25623003)
I've used OpenNoteScan before:

* https://f-droid.org/en/packages/com.todobom.opennotescanner/

* https://github.com/allgood/OpenNoteScanner

It works OK but it looks a bit old, and you need to install OpenCV Manager separately, outside of F-Droid for it to work.

I can deal with it, but there's no way I could ever be able to convince anybody else, especially non-tech people to use it.

This one looks like a winner in terms of UX, so I'll be using it from now on, Thank you for creating it!

Re:Show HN: OpenScan – open-source document scanner app by app4soft on Sunday January 03, 2021 @02:28PM (#25624362)
> I've used OpenNoteScan before:

Small correction: it is Open Note Scanner app (NOT OpenNoteScan)

Re:Show HN: OpenScan – open-source document scanner app by mighty3xodus on Sunday January 03, 2021 @12:51PM (#25623410)
Thank you!
Re:Show HN: OpenScan – open-source document scanner app by alexmcc81 on Sunday January 03, 2021 @10:32AM (#25622295)
I see there is an F-Droid compatible repo linked. Is there a reason it has not been submitted to F-Droid proper? Sounds like a perfect addition to the default repo.
Re:Show HN: OpenScan – open-source document scanner app by mighty3xodus on Sunday January 03, 2021 @11:02AM (#25622488)
True. Have started the process. Hopefully it builds without much problems.
Re:Show HN: OpenScan – open-source document scanner app by ssheth on Sunday January 03, 2021 @02:02PM (#25624081)
NAPS2 (https://www.naps2.com/) is also a similar open-source app with OCR built in.
Re:Show HN: OpenScan – open-source document scanner app by rkagerer on Sunday January 03, 2021 @03:57PM (#25625173)
What OCR engine does it use and is it any good? (I see tesseract mentioned in the dependencies?)
Re:Show HN: OpenScan – open-source document scanner app by mdaniel on Sunday January 03, 2021 @06:08PM (#25626158)
That one appears to be for the desktop; is there an Android link that I overlooked?
Re:Show HN: OpenScan – open-source document scanner app by mawise on Sunday January 03, 2021 @10:33AM (#25622303)
I don't see anything on the readme about OCR. In the PDF conversion, does OpenScan do any OCR? I guess I expect this from a document scanning app these days, but I don't really know the space. Are there any good open-source OCR libraries?
Re:Show HN: OpenScan – open-source document scanner app by bane on Sunday January 03, 2021 @11:14AM (#25622592)
I would recommend https://github.com/PaddlePaddle/PaddleOCR over the default tesseract. It seems to do a better job these days and uses more modern approaches.
Re:Show HN: OpenScan – open-source document scanner app by mighty3xodus on Sunday January 03, 2021 @10:58AM (#25622463)
There are no OCR capabilities. Just managed to get a good cropper implemented with perspective cropping. There were very few options of which only one was viable.
Re:Show HN: OpenScan – open-source document scanner app by pedro2 on Sunday January 03, 2021 @10:40AM (#25622352)
Tesseract? The page does not refer OCR anywhere, neither does it appear on its issues.
Re:Show HN: OpenScan – open-source document scanner app by nimbius on Sunday January 03, 2021 @11:24AM (#25622682)
Question: can it remove printer steganographic tracking dots?

https://en.wikipedia.org/wiki/Printer_steganography

Re:Show HN: OpenScan – open-source document scanner app by gsich on Sunday January 03, 2021 @03:36PM (#25624983)
If your camera is low-res enough, sure.
Re:Show HN: OpenScan – open-source document scanner app by mighty3xodus on Sunday January 03, 2021 @12:45PM (#25623354)
I'm not sure that it can...
Re:Show HN: OpenScan – open-source document scanner app by pricci on Sunday January 03, 2021 @11:16AM (#25622611)
I like that you are using Flutter. Will give a look at the code.

The image quality is not good, but probably due to my camera. CS CamScanner gives me better results but I don't trust it.

Re:Show HN: OpenScan – open-source document scanner app by jabberwcky on Sunday January 03, 2021 @12:06PM (#25623041)
Quick take: this is staying on my phone, great effort :)

Notes:

- Doesn't keep flash permanently on (like CamScanner)

- Skew correction looks maybe worse quality (than CamScanner)

- Totally fine for at least 80% of the things I'd use CamScanner for. Super well done!

Re:Show HN: OpenScan – open-source document scanner app by mighty3xodus on Sunday January 03, 2021 @12:52PM (#25623419)
Your suggestions are noted. Thank you for your feedback!
Re:Show HN: OpenScan – open-source document scanner app by quuuux on Sunday January 03, 2021 @01:08PM (#25623566)
Looks like a really great start! Just gave the app a quick test and the basics seem to be working fine.

Apart from automatic cropping and perspective distortion correction others have mentioned already, the white margins of the exported PDFs are IMHO quite a bit too large. In fact, as the app is a document scanner, I'd not expect any border at all.

Re:Show HN: OpenScan – open-source document scanner app by vzaliva on Sunday January 03, 2021 @11:56AM (#25622927)
It is nice start, but cropping function is pretty much not working. When scanning with the phone the page is rarely properly alighned ans cropping step should be automatic (like with CamScan). Even if performing it manually under perfect conditions (white page on back background) it fails to detect page boundaries. Screenshot: https://www.dropbox.com/s/cpvdidugiy7n3lk/Screenshot_2021010...
Re:Show HN: OpenScan – open-source document scanner app by renewiltord on Sunday January 03, 2021 @03:04PM (#25624729)
Very cool. I currently use PhotoScan. I'll give this a shot.
Re:Show HN: OpenScan – open-source document scanner app by gman83 on Sunday January 03, 2021 @11:23AM (#25622679)
What are you using for state management besides setState() ?
Re:Show HN: OpenScan – open-source document scanner app by mighty3xodus on Sunday January 03, 2021 @12:31PM (#25623236)
None. Any suggestions? Because most of the state manipulation is done in a single screen.
Re:Show HN: OpenScan – open-source document scanner app by BorisEm on Sunday January 03, 2021 @01:09PM (#25623583)
A related open source library for iOS. https://github.com/wetransfer/wescan
Re:Show HN: OpenScan – open-source document scanner app by gregod on Sunday January 03, 2021 @03:19PM (#25624855)
Btw: The Apple Notes application has this functionality built-in if you are just interested in scanning.
Re:Show HN: OpenScan – open-source document scanner app by twobitshifter on Sunday January 03, 2021 @04:41PM (#25625523)
And in the files app, long tapping gives the option to scan a document, which works great. I’m trying to retain fewer pieces of paper and this is super convenient.
Re:Show HN: OpenScan – open-source document scanner app by skinkestek on Monday January 04, 2021 @12:06AM (#25628091)
Wohooo! And: What is it with Apple and not documenting features?
Re:Show HN: OpenScan – open-source document scanner app by deknos on Sunday January 03, 2021 @03:34PM (#25624967)
is it able to store the document somewhere via a protocol? that would be really helpful, perhaps with tags?