Home

Adaptive Image Thresholding

state-of-the-art parameter tuning

Original
Result
source image

Parameters

Max Value

Upper limit of the thershold process.

Adaptive Method

The adaptive algorithm to use. Check out the Adaptive Threshold Type for more detail explanation.

Type

Type of algorithm use to calculate the threshold. Check out the documentation for further information on each type. Unlike the normal cv2.threshold(), only limited amount of threshold type is supported.

Block Size

The kernel size of the adaptive algorithm. Must be a positive odd number.

Constant

The constant deducted from the weighted mean of the adaptive algorithm. It's usually positive but negative number is also supported.

Code

Reference


*Disclaimer*: This site is not in any way associated with the OpenCV organization. Visit OpenCV.org for an updated documentation for the latest functions.

This site is built on the sheer annoyance and repetitive frustration the author experienced while tuning parameters on OpenCV. It is casually maintained in my spare time. You can DM me on Github for any feature suggestions.

© 2020~ Yu-Kai Wang

@Github