A simple document scanner for desktop. Allows you to scan pictures using a webcam. Also if you already have images you can use it to detect the document in those image. Also allows you to crop the document according to ur needs. The scanner uses contour and edge detection to detect the document.
Opencv library in python
Document detected by the scanner
Crop the image using four red corners
Final scanned image