News for hackers. Stuff that matters.
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