Closed mythrex closed 6 years ago
Otsu thresh hold method will not work here because of uneven lighting conditions. We will have to use adaptive thresholding methods. We have used Adaptive Gaussian threshold technique.
thresh = cv2.adaptiveThreshold(
warped, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY_INV, 11, 2)
Due to uneven lighting, the Otsu thresholding is not working properly. The reason, I don't know.