回答編集履歴
1
エラーメッセージを開設
test
CHANGED
@@ -1,13 +1,33 @@
|
|
1
1
|
こんにちは。
|
2
|
-
|
3
|
-
エラーメッセージは画像ではなくテキストで
|
4
|
-
|
5
|
-
コードブロック内に張り付けてもらえるとありがたいです。
|
6
2
|
|
7
3
|
|
8
4
|
|
9
|
-
|
5
|
+
エラーメッセージの末尾に注目しましょう。
|
10
6
|
|
11
|
-
「PersonDetectorクラスにget_output_imageメソッドはない」ですが
|
12
7
|
|
8
|
+
|
9
|
+
```Python
|
10
|
+
|
11
|
+
File \"/var/isaax/project/camera/main.py\", line 19, in gen
|
12
|
+
|
13
|
+
File \"/var/isaax/project/camera/processor/person_detector.py\", line 38, in get_frame
|
14
|
+
|
15
|
+
AttributeError: 'PersonDetector' object has no attribute 'get_output_image'
|
16
|
+
|
17
|
+
ret, image = self.get_output_image(frame)
|
18
|
+
|
19
|
+
```
|
20
|
+
|
21
|
+
|
22
|
+
|
13
|
-
|
23
|
+
(main.py 19行目の)genメソッドから呼んでいる
|
24
|
+
|
25
|
+
(person_detector.py 38行目の)get_frameメソッド内で
|
26
|
+
|
27
|
+
AttributeError:「'PersonDetector'オブジェクトは'get_output_image'という属性を持っていません」が
|
28
|
+
|
29
|
+
ret, image = self.get_output_image(frame) の行で発生している
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
解決策としては PersonDetectorクラスに get_output_image() というメソッドを定義すればよいです。
|