1 | initial version |
change the following line
Imgproc.GaussianBlur(grayScaleGaussianBlur, grayScaleGaussianBlur, new Size(5, 5), 0);
to
Imgproc.GaussianBlur(grayScaleGaussianBlur, grayScaleGaussianBlur, new Size(7, 7), 0);
also change the if condition
if (maxval >= 253.0 && minval > 0.0 && minval < 20.0)
to
if (maxval >= 253.0 && minval <= 0.0)