質問編集履歴
2
ソースコードを書き足しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,11 +28,15 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
+
color_1 = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
|
32
|
+
|
31
|
-
|
33
|
+
color_2 = cv2.line(color_1, (484, 808), (700, 808), (0, 0, 255), 5)
|
32
34
|
|
33
35
|
|
34
36
|
|
35
|
-
cv2.imwrite(r'D:\image_line\exp1.png',
|
37
|
+
cv2.imwrite(r'D:\image_line\exp1.png', color_2)
|
38
|
+
|
39
|
+
|
36
40
|
|
37
41
|
```
|
38
42
|
|
1
ソースコードを書き足しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,11 @@
|
|
24
24
|
|
25
25
|
```Python
|
26
26
|
|
27
|
+
img = cv2.imread('filepath', cv2.IMREAD_ANYDEPTH)
|
28
|
+
|
29
|
+
|
30
|
+
|
27
|
-
n_n_pic = cv2.line(img, (484, 808), (700, 808), (
|
31
|
+
n_n_pic = cv2.line(img, (484, 808), (700, 808), (0, 0, 255), 5)
|
28
32
|
|
29
33
|
|
30
34
|
|