Ask Your Question

Revision history [back]

Hi, Please try Adaptive Thresholding.

cv.ADAPTIVE_THRESH_MEAN_C : threshold value is the mean of neighborhood area. cv.ADAPTIVE_THRESH_GAUSSIAN_C : threshold value is the weighted sum of neighborhood values where weights are a gaussian window.

Here is url: https://docs.opencv.org/3.4/d7/d4d/tutorial_py_thresholding.html