Convert rgb image to binary image python. Now I need to feed this dataset array to sklearn.