Skip to content

【Tello_Video_With_Pose_Recognition】AttributeError: 'module' object has no attribute 'dnn' #84

@Gardenia-Ho

Description

@Gardenia-Ho

I can't download the file "pose_iter_160000.caffemodel", so I found the file on the Internet and copied it to the document. But when I ran the project, it couldn't work.

sent: command
sent: streamon
Traceback (most recent call last):
File "F:/pycode/Tello-Python/Tello_Video_With_Pose_Recognition/main.py", line 14, in
main()
File "F:/pycode/Tello-Python/Tello_Video_With_Pose_Recognition/main.py", line 8, in main
vplayer = TelloUI(drone,"./img/")
File "F:\pycode\Tello-Python\Tello_Video_With_Pose_Recognition\tello_control_ui.py", line 43, in init
self.my_tello_pose = Tello_Pose()
File "F:\pycode\Tello-Python\Tello_Video_With_Pose_Recognition\tello_pose.py", line 29, in init
self.net = cv2.dnn.readNetFromCaffe(self.protoFile, self.weightsFile)
AttributeError: 'module' object has no attribute 'dnn'
微信图片_20220301134051

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions