質問編集履歴
3
コードブロック追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
### 該当のソースコード
|
30
30
|
|
31
|
-
|
31
|
+
```python
|
32
32
|
|
33
33
|
from tkinter import *
|
34
34
|
|
@@ -112,7 +112,7 @@
|
|
112
112
|
|
113
113
|
root.mainloop()
|
114
114
|
|
115
|
-
|
115
|
+
```
|
116
116
|
|
117
117
|
|
118
118
|
|
2
コードブロック追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,6 +27,8 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
### 該当のソースコード
|
30
|
+
|
31
|
+
"""python
|
30
32
|
|
31
33
|
from tkinter import *
|
32
34
|
|
@@ -74,15 +76,9 @@
|
|
74
76
|
|
75
77
|
PIN = 14
|
76
78
|
|
77
|
-
|
78
|
-
|
79
79
|
GPIO.cleanup()
|
80
80
|
|
81
|
-
|
82
|
-
|
83
81
|
GPIO.setmode(GPIO.BCM)
|
84
|
-
|
85
|
-
|
86
82
|
|
87
83
|
GPIO.setup(PIN, GPIO.IN)
|
88
84
|
|
@@ -104,8 +100,6 @@
|
|
104
100
|
|
105
101
|
image_file = "/home/pi/program/API/capture.png"
|
106
102
|
|
107
|
-
|
108
|
-
|
109
103
|
image_command = "raspistill -w 500 -h 500 -t 5 -n -a 12 -q 10 -o " + image_file
|
110
104
|
|
111
105
|
subprocess.call(image_command, shell = True)
|
@@ -118,7 +112,7 @@
|
|
118
112
|
|
119
113
|
root.mainloop()
|
120
114
|
|
121
|
-
|
115
|
+
"""
|
122
116
|
|
123
117
|
|
124
118
|
|
1
コード部分の途中にある言葉を削除。
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,8 +54,6 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
-
#問題箇所
|
58
|
-
|
59
57
|
photo = "/home/pi/program/API/capture.png"
|
60
58
|
|
61
59
|
img = Image.open(open(photo,"rb"))
|
@@ -104,8 +102,6 @@
|
|
104
102
|
|
105
103
|
|
106
104
|
|
107
|
-
#<写真を撮る>
|
108
|
-
|
109
105
|
image_file = "/home/pi/program/API/capture.png"
|
110
106
|
|
111
107
|
|