** cv2.ADAPTIVE_THRESH_MEAN_C **: Threshold Value = (Mean of the neighborhood area values - constant value) ... In other words, it is the mean of the blockSize × blockSize neighborhood of a point minus constant.

** cv2.ADAPTIVE_THRESH_GAUSSIAN_C **: Threshold Value = (Gaussian-weighted sum of the neighborhood values - constant value). In other words, it is a weighted sum of the blockSize × blockSize neighborhood of a point minus constant.

-" ** thresholdType **: The type of thresholding to be applied.

-" ** blockSize **: Size of a pixel neighborhood that is used to calculate a threshold value.

-" ** constant **: A constant value that is subtracted from the mean or weighted sum of the neighborhood pixels.

Below is the Python implementation:

` ` |

** Input Image **:

** Exit **: