MCPcopy Create free account
hub / github.com/JimmyHHua/opencv_tutorials / method_1

Function method_1

python/code_045/opencv_045.py:5–8  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

3
4
5def method_1(image):
6 gray = cv.cvtColor(image, cv.COLOR_BGR2GRAY)
7 t, binary = cv.threshold(gray, 0, 255, cv.THRESH_BINARY | cv.THRESH_OTSU)
8 return binary
9
10
11def method_2(image):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected