質問編集履歴

2

コード修正

2021/01/08 14:46

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,10 +1,12 @@
1
+ ```python
2
+
1
- ```python import cv2 as cv
3
+ import cv2 as cv
2
4
 
3
5
 
4
6
 
5
7
  img = cv.imread('sample.png')
6
8
 
7
-
9
+
8
10
 
9
11
  grayimg = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
10
12
 
@@ -36,7 +38,9 @@
36
38
 
37
39
  cv.waitKey(0)
38
40
 
39
- cv.destroyAllWindows()```
41
+ cv.destroyAllWindows()
42
+
43
+ ```
40
44
 
41
45
 
42
46
 

1

書式訂正

2021/01/08 14:45

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- import cv2 as cv
1
+ ```python import cv2 as cv
2
2
 
3
3
 
4
4
 
@@ -36,7 +36,7 @@
36
36
 
37
37
  cv.waitKey(0)
38
38
 
39
- cv.destroyAllWindows()
39
+ cv.destroyAllWindows()```
40
40
 
41
41
 
42
42