Skip to content

Image scanner using different thresholding methods

Notifications You must be signed in to change notification settings

sy1wi4/Image-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

Image scanner using different thresholding methods

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages