|
|
|
|
|
by joshvm
3102 days ago
|
|
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... |
|