Skip to content

A simple image processor app for documents shot by a camera. This project demonstrates the development of a WPF app (implemented by MVVM design pattern) with image processing using OpenCVSharp as backbone.

gadnandev/DocScanner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocScanner

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.

Screentshots

Successful detection

Full screen:

test1 test2

Small window:

test3 test4

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.

Failed detection but can be corrected manually

fail Adjust by dragging the corner points: adjust result

About

A simple image processor app for documents shot by a camera. This project demonstrates the development of a WPF app (implemented by MVVM design pattern) with image processing using OpenCVSharp as backbone.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%