First time here? Check out the FAQ!
asked 2018-11-14 09:17:19 -0600
I use this line of code for binarizing images:
Imgproc.adaptiveThreshold(grayMat,imageBW,255,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY,5,4);
I tested it using this image. and the result is this image