DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+5 =
Submit