Document corner detection and perspective correction

Upload an image to detect the corners of a document and correct the perspective.

Uses a UNet model to detect corners and OpenCV to correct the perspective.

Exampled documents (CORD dataset and FLUX.1-schnell generated)

Created by Kenneth Thorø Martinsen (kenneth2810@gmail.com)