Skip to content

Commit

Permalink
Merge pull request vipstone#22 from Ttmaxin/patch-1
Browse files Browse the repository at this point in the history
Update detectionOpenCV.md
  • Loading branch information
vipstone authored Sep 6, 2018
2 parents e3efc61 + ae68ac0 commit 31c8e39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/detectionOpenCV.md
Original file line number Diff line number Diff line change
@@ -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) # 转换灰色

0 comments on commit 31c8e39

Please sign in to comment.