Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.69 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.69 KB

Image-Scanner

Simple scanner using different thresholding methods with adaptive window selection for uneven lighting image.

One global thresh is not enough if we are dealing with an uneven lighting image. To print them, for example, we need a more precise method - that considers a small set of neighboring pixels at a time and determine the appropriate threshold.

Scanner takes an image (with different lighting conditions in different parts) and applies Gaussian adaptive thresholding to it. You can also pick different method - Otsu's binarization, but it works fine only for bimodal images (its histogram has bimodal distribution).

Usage example

Scan uneven ligting image

You can change size of neighbourhood area using slider.

As mentioned above, the Otsu's method is not doing well in this case.

Scan bimodal image

To scan bimodal image Otsu method is more suitable.

Save result file

You can save scanned image on your computer (e.g. for printing).