DocScanner detects a "page"-like document in a picture taken by a mobile phone, tries to move the shadow cast by the photo-taker, and adjusts the image to compensate the distortion. Like any other similar apps, the detection of the page doesn't work perfectly in any circumstance due to the variety of the background, lighting and the shadow on the pager etc. Thus, manaul adjustment, which is also provided by the app, is necessary in such case.
This project demonstrates the development of a WPF app (implemented by MVVM design pattern) with image processing using OpenCVSharp as backbone.
Full screen:
Small window:
The app handles the rescaling the bounding box upon window being resized automatically. In any window size, a processed image with full resolution can be saved.