質問編集履歴
5
エラーコードを更新しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,27 +18,27 @@
|
|
18
18
|
|
19
19
|
```python
|
20
20
|
|
21
|
-
192.168.
|
21
|
+
192.168.33.114 - - [07/Feb/2019 13:09:26] \"GET / HTTP/1.1\" 500 -
|
22
|
+
|
23
|
+
Traceback (most recent call last):
|
24
|
+
|
25
|
+
Error on request:
|
26
|
+
|
27
|
+
File \"/usr/lib/python3/dist-packages/werkzeug/serving.py\", line 205, in run_wsgi
|
28
|
+
|
29
|
+
File \"/usr/lib/python3/dist-packages/werkzeug/wrappers.py\", line 81, in _iter_encoded
|
30
|
+
|
31
|
+
File \"/usr/lib/python3/dist-packages/werkzeug/wsgi.py\", line 703, in __next__
|
32
|
+
|
33
|
+
execute(self.server.app)
|
22
34
|
|
23
35
|
File \"/usr/lib/python3/dist-packages/werkzeug/serving.py\", line 195, in execute
|
24
36
|
|
25
|
-
|
37
|
+
for data in application_iter:
|
26
38
|
|
27
|
-
Traceback (most recent call last):
|
28
|
-
|
29
|
-
File \"/usr/lib/python3/dist-packages/werkzeug/serving.py\", line 205, in run_wsgi
|
30
|
-
|
31
|
-
e
|
39
|
+
frame = camera.get_frame()
|
32
40
|
|
33
41
|
return self._next()
|
34
|
-
|
35
|
-
File \"/usr/lib/python3/dist-packages/werkzeug/wsgi.py\", line 703, in __next__
|
36
|
-
|
37
|
-
for data in application_iter:
|
38
|
-
|
39
|
-
File \"/usr/lib/python3/dist-packages/werkzeug/wrappers.py\", line 81, in _iter_encoded
|
40
|
-
|
41
|
-
AttributeError: 'PersonDetector' object has no attribute 'get_output_image'
|
42
42
|
|
43
43
|
for item in iterable:
|
44
44
|
|
@@ -46,9 +46,9 @@
|
|
46
46
|
|
47
47
|
File \"/var/isaax/project/camera/processor/person_detector.py\", line 38, in get_frame
|
48
48
|
|
49
|
+
AttributeError: 'PersonDetector' object has no attribute 'get_output_image'
|
50
|
+
|
49
51
|
ret, image = self.get_output_image(frame)
|
50
|
-
|
51
|
-
frame = camera.get_frame()
|
52
52
|
|
53
53
|
```
|
54
54
|
|
4
エラーコードを更新しました。
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
3
エラーコードを添付しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,42 @@
|
|
15
15
|
また、USBカメラでのストリーミングは成功している。
|
16
16
|
|
17
17
|
そこで、人体検知のプログラムを組み込んでみたが、エラーが出てしまう。
|
18
|
+
|
19
|
+
```python
|
20
|
+
|
21
|
+
192.168.128.102 - - [07/Feb/2019 10:15:39] \"GET / HTTP/1.1\" 500 -
|
22
|
+
|
23
|
+
File \"/usr/lib/python3/dist-packages/werkzeug/serving.py\", line 195, in execute
|
24
|
+
|
25
|
+
Error on request:
|
26
|
+
|
27
|
+
Traceback (most recent call last):
|
28
|
+
|
29
|
+
File \"/usr/lib/python3/dist-packages/werkzeug/serving.py\", line 205, in run_wsgi
|
30
|
+
|
31
|
+
execute(self.server.app)
|
32
|
+
|
33
|
+
return self._next()
|
34
|
+
|
35
|
+
File \"/usr/lib/python3/dist-packages/werkzeug/wsgi.py\", line 703, in __next__
|
36
|
+
|
37
|
+
for data in application_iter:
|
38
|
+
|
39
|
+
File \"/usr/lib/python3/dist-packages/werkzeug/wrappers.py\", line 81, in _iter_encoded
|
40
|
+
|
41
|
+
AttributeError: 'PersonDetector' object has no attribute 'get_output_image'
|
42
|
+
|
43
|
+
for item in iterable:
|
44
|
+
|
45
|
+
File \"/var/isaax/project/camera/main.py\", line 19, in gen
|
46
|
+
|
47
|
+
File \"/var/isaax/project/camera/processor/person_detector.py\", line 38, in get_frame
|
48
|
+
|
49
|
+
ret, image = self.get_output_image(frame)
|
50
|
+
|
51
|
+
frame = camera.get_frame()
|
52
|
+
|
53
|
+
```
|
18
54
|
|
19
55
|
|
20
56
|
|
2
写真を添付しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,6 +35,14 @@
|
|
35
35
|
### 試したこと
|
36
36
|
|
37
37
|
USBカメラ用のサンプルプログラムを参照し実行してみました。
|
38
|
+
|
39
|
+
下記URLのようにプログラムを編集してみましたが、エラーが発生し、実行できませんでした。
|
40
|
+
|
41
|
+
https://github.com/yaasann/study-picamera-examples
|
42
|
+
|
43
|
+
添付した写真のようなエラーが出ました。
|
44
|
+
|
45
|
+
![イメージ説明](b9e5b02f698b9c5c0d9e05efa07e3d95.png)
|
38
46
|
|
39
47
|
|
40
48
|
|
1
問題とソースコードを追加した。
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,11 +10,25 @@
|
|
10
10
|
|
11
11
|
USBカメラでは動作してくれない。
|
12
12
|
|
13
|
-
|
13
|
+
picameraでの人体検知は成功した。
|
14
|
+
|
15
|
+
また、USBカメラでのストリーミングは成功している。
|
16
|
+
|
17
|
+
そこで、人体検知のプログラムを組み込んでみたが、エラーが出てしまう。
|
18
|
+
|
19
|
+
|
14
20
|
|
15
21
|
### 該当のソースコード
|
16
22
|
|
17
|
-
p
|
23
|
+
picameraでのサンプルプログラム
|
24
|
+
|
25
|
+
https://github.com/isaaxug/study-picamera-examples
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
USBカメラを用いたサンプルプログラム
|
30
|
+
|
31
|
+
https://github.com/aquariumsap/an98b/blob/master/libs/simple_streamer.py?fbclid=IwAR16Ivv4sgLSsRi6sNIrQgcFsAup6ZP86CAX9iTDNg-TXRfyo5SMWgCfTZ4
|
18
32
|
|
19
33
|
|
20
34
|
|
@@ -35,18 +49,6 @@
|
|
35
49
|
Raspberry Pi + Picamera でisaax をはじめよう – Isaax Camp
|
36
50
|
|
37
51
|
https://camp.isaax.io/ja/examples/getting_startet_isaax_with_raspicam#1
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
picameraでのサンプルプログラム
|
42
|
-
|
43
|
-
https://github.com/isaaxug/study-picamera-examples
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
USBカメラを用いたサンプルプログラム
|
48
|
-
|
49
|
-
https://github.com/aquariumsap/an98b/blob/master/libs/simple_streamer.py?fbclid=IwAR16Ivv4sgLSsRi6sNIrQgcFsAup6ZP86CAX9iTDNg-TXRfyo5SMWgCfTZ4
|
50
52
|
|
51
53
|
|
52
54
|
|