Skip to content

Commit 9b77773

Browse files
committed
modify the code error
1 parent 74d2264 commit 9b77773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: python/code_002/opencv_002.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
src = cv2.imread("./test.png")
44
cv2.namedWindow("input", cv2.WINDOW_AUTOSIZE)
55
cv2.imshow("input", src)
6-
gray = cv2.cv2tColor(src, cv2.COLOR_BGR2GRAY)
6+
gray = cv2.cvtColor(src, cv2.COLOR_BGR2GRAY)
77
cv2.imwrite('gray.png', gray)
88
cv2.imshow("gray", gray)
99
cv2.waitKey(0)

0 commit comments

Comments
 (0)