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