Python Opencv Adaptive Mean Thresholding