cilynx / pantomath

Pantomath knows about things
GNU General Public License v3.0
1 stars 0 forks source link

Autodetect common page sizes #20

Open cilynx opened 2 years ago

cilynx commented 2 years ago

The vast majority of what I scan is US Letter, but the default scan size is larger. The edges are "obvious" to a human, in particular the heavy line that is the bottom of the page. Seems like it should be easy to detect a heavy line right around 11" with nothing useful below it.

cilynx commented 1 year ago

Snapping a cam-scanned document to a known page size it's close to will probably help with aspect repairs more often than it hurts. It's worth playing around with to see if I can find a useful snap threshold.