python cv2 convertir l'image en binaire

(thresh, im_bw) = cv2.threshold(im_gray, 128, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU)
Jittery Jellyfish