質問編集履歴
1
タイプミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,11 +12,17 @@
|
|
12
12
|
|
13
13
|
```python
|
14
14
|
|
15
|
+
import subprocess
|
16
|
+
|
17
|
+
|
18
|
+
|
15
|
-
subprocess.check_output(['cd'
|
19
|
+
subprocess.check_output(['cd','darknet'],shell=True)
|
16
20
|
|
17
21
|
res = subprocess.check_output("./darknet detect cfg/yolo.cfg yolo.weights data/dog.png",shell=True)
|
18
22
|
|
19
23
|
print(res)
|
24
|
+
|
25
|
+
|
20
26
|
|
21
27
|
```
|
22
28
|
|
@@ -28,13 +34,13 @@
|
|
28
34
|
|
29
35
|
```ここに言語を入力
|
30
36
|
|
31
|
-
/bin/sh: 1:
|
37
|
+
/bin/sh: 1: ./darknet: not found
|
32
38
|
|
33
39
|
Traceback (most recent call last):
|
34
40
|
|
35
|
-
File "1.py", line
|
41
|
+
File "1.py", line 40, in <module>
|
36
42
|
|
37
|
-
subprocess.check_output(
|
43
|
+
res = subprocess.check_output("./darknet detect cfg/yolo.cfg yolo.weights data/dog.png",shell=True)
|
38
44
|
|
39
45
|
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
|
40
46
|
|
@@ -44,7 +50,9 @@
|
|
44
50
|
|
45
51
|
output=stdout, stderr=stderr)
|
46
52
|
|
47
|
-
subprocess.CalledProcessError: Command '
|
53
|
+
subprocess.CalledProcessError: Command './darknet detect cfg/yolo.cfg yolo.weights data/dog.png' returned non-zero exit status 127
|
54
|
+
|
55
|
+
|
48
56
|
|
49
57
|
|
50
58
|
|