cv2.threshold binaire

ret, binary_image = cv2.threshold(image, 1, 255, cv2.THRESH_BINARY)
Black Bison