From ae68ac07a97493ca906050c7c48e63f799851306 Mon Sep 17 00:00:00 2001 From: Ttmaxin <31649654+Ttmaxin@users.noreply.github.com> Date: Tue, 4 Sep 2018 10:44:32 +0800 Subject: [PATCH] Update detectionOpenCV.md --- doc/detectionOpenCV.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/detectionOpenCV.md b/doc/detectionOpenCV.md index 5eab49d..d18ea39 100644 --- a/doc/detectionOpenCV.md +++ b/doc/detectionOpenCV.md @@ -26,7 +26,7 @@ ``` import cv2 -filepath = "img/xingye-1.jpg" +filepath = "img/xingye-1.png" img = cv2.imread(filepath) # 转换灰色 gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) @@ -43,7 +43,7 @@ cv2.destroyAllWindows() ``` import cv2 -filepath = "img/xingye-1.jpg" +filepath = "img/xingye-1.png" img = cv2.imread(filepath) # 读取图片 gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # 转换灰色 x = y = 10 # 坐标 @@ -64,7 +64,7 @@ cv2.destroyAllWindows() # 释放所有的窗体资源 ``` import cv2 -filepath = "img/xingye-1.jpg" +filepath = "img/xingye-1.png" img = cv2.imread(filepath) # 读取图片 gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # 转换灰色