News for hackers. Stuff that matters.
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by gravypod on Thursday December 21, 2017 @07:06PM (#15984082)
Will this automatically center and apply perspective transforms to pictures taken with phone cameras?
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by bvrlt on Friday December 22, 2017 @07:48AM (#15987055)
You should check Genius Scan (for iOS and Android) that does that for you automatically, and much more: https://www.thegrizzlylabs.com/genius-scan/

It also doesn't tie you to a specific ecosystem.

Disclaimer: I'm on of the authors of Genius Scan :)

Re:Show HN: Open Paperless – Scan, index, and archive paper ... by gravypod on Friday December 22, 2017 @08:45PM (#15992427)
There are many solutions for systems like this. Unfortunately none are open source.

Most documents I do want to keep record of are sensitive. I don't trust a closed-source app with that kind of information.

Re:Show HN: Open Paperless – Scan, index, and archive paper ... by towndrunk on Thursday December 21, 2017 @08:28PM (#15984577)
Microsofts OfficeLen's for iOS is pretty nice doing this automagically.
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by billbrown on Friday December 22, 2017 @11:06AM (#15988408)
The best version of this that I've seen is Scanner Pro by Readdle. I had to scan three months worth of food receipts for an insurance claim and this feature was a lifesaver.
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by bketelsen on Friday December 22, 2017 @07:25PM (#15992054)
seriously, thank you for mentioning this. Great app!
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by zhoubear on Thursday December 21, 2017 @08:49PM (#15984660)
Not at the moment. I'm guessing this information is available in the EXIF properties?
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by joshvm on Thursday December 21, 2017 @09:00PM (#15984700)
It's a little bit more tricky than that. What the EXIF might tell you is the camera calibration parameters like focal length, distortion, perspective center, etc. That can be used to fix systematic errors in images like pincushion/barrel distortion.

To unwarp photos that were taken at odd angles you need to do some image processing. The mathematics aren't particularly difficult, it's a homography transform in most cases (rectangles). The problem is robustly detecting the page.

Dropbox has some nice write-ups on this: https://blogs.dropbox.com/tech/2016/08/fast-document-rectifi...

Re:Show HN: Open Paperless – Scan, index, and archive paper ... by zhoubear on Thursday December 21, 2017 @09:03PM (#15984712)
Thanks for the link. That blew my mind! I wish it could be added would, my phone would replace my scanner instantly.
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by ikurei on Friday December 22, 2017 @03:26AM (#15986034)
Since others are commenting alternative apps, I'll chime in:

https://www.camscanner.com/

I've been using CamScanner on Android since forever. I only stopped a few months ago because I moved to iOS (and didn't realize it's also there).

It does the page detection fairly well, but also let's you correct it. Very useful, specially when the picture is bad. I then used to upload it to Dropbox.

Re:Show HN: Open Paperless – Scan, index, and archive paper ... by gravypod on Thursday December 21, 2017 @09:11PM (#15984739)
Also see this for more implementation details: https://www.pyimagesearch.com/2014/09/01/build-kick-ass-mobi...

This could be done server side if you're already doing ocr.

Re:Show HN: Open Paperless – Scan, index, and archive paper ... by zhoubear on Thursday December 21, 2017 @09:38PM (#15984840)
Wow this looks awesome, thank you!
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by grahamburger on Thursday December 21, 2017 @11:59PM (#15985370)
Google Drive mobile app does this natively (at least on Android) there's a 'Scan' option when adding a file that will do it.
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by nothrabannosir on Thursday December 21, 2017 @11:47PM (#15985343)
Scannable (by Evernote ) does this wonderfully. Allows exporting as pdf and storing wherever. I’m a fan.
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by voltagex_ on Thursday December 21, 2017 @09:29PM (#15984808)
The most complicated implementation I've seen has been Office Lens, which also corrects distortion and does edge detection.
Re:Show HN: Open Paperless – Scan, index, and archive paper ... by gravypod on Thursday December 21, 2017 @08:51PM (#15984668)
No. It requires opencv and image processing