While following this guide and using the adaptive thresholding function, I was confused about the intuition with adjusting the blocksize
and C
to find an ideal value.
What approach should one take when adjusting these parameters instead of doing a completely randomized guess and check process? Is there a better technique for learning these parameters based on an image's color histrogram?
cv2.adaptiveThreshold(img, maxValue, adaptiveMethod, thresholdType, blockSize, C)