5 ms·
Not at the moment. I'm guessing this information is available in the EXIF properties?
by zhoubear 9y ago
Not at the moment. I'm guessing this information is available in the EXIF properties?
- gravypod 9y agoNo. It requires opencv and image processing
- joshvm 9y agoIt'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-rectification-and-enhancement/ https://blogs.dropbox.com/tech/2016/08/fast-document-rectifi...
- zhoubear 9y agoThanks for the link. That blew my mind! I wish it could be added would, my phone would replace my scanner instantly.
- gravypod 9y agoAlso see this for more implementation details: https://www.pyimagesearch.com/2014/09/01/build-kick-ass-mobile-document-scanner-just-5-minutes/ https://www.pyimagesearch.com/2014/09/01/build-kick-ass-mobi... This could be done server side if you're already doing ocr.
- zhoubear 9y agoWow this looks awesome, thank you!
- nothrabannosir 9y agoScannable (by Evernote ) does this wonderfully. Allows exporting as pdf and storing wherever. I’m a fan.
- grahamburger 9y agoGoogle Drive mobile app does this natively (at least on Android) there's a 'Scan' option when adding a file that will do it.
- ikurei 9y agoSince others are commenting alternative apps, I'll chime in: https://www.camscanner.com/ 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.
- voltagex_ 9y agoThe most complicated implementation I've seen has been Office Lens, which also corrects distortion and does edge detection.