mythrex / OMR-Scanner

This project uses open cv to evaluate OMR sheets. We are trying to make this system as reliable as possible.
49 stars 23 forks source link

Otsu Threshhold method is not working. #5

Closed mythrex closed 6 years ago

mythrex commented 6 years ago

Due to uneven lighting, the Otsu thresholding is not working properly. The reason, I don't know. image

mythrex commented 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)

image