Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python cv2 convert image to binary

(thresh, im_bw) = cv2.threshold(im_gray, 128, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #convert #image #binary
ADD COMMENT
Topic
Name
9+3 =