dji-sdk / Tello-Python

This is a collection of python modules that interact with the Ryze Tello drone.
Other
1.35k stars 645 forks source link

Pose recognition doesn't work #39

Open pet93 opened 5 years ago

pet93 commented 5 years ago

Hi! I'm attempting to use pose recognition, but when i run the main project and i switch on the pose recognition, the joints' skeleton of my body doesn't appear. I've downloaded the model and followed instructions written in the readme. Any solution?

dji-dev commented 4 years ago

Public comment from Ho.Yan in Zendesk ticket #28536:

Dear Developer,

Thanks for reaching Ryze!

Please check to see if "Pose Recognition Status: On" is turned on after running "main.py".

Best Regards, Ho Yan RYZE TECHNICAL SUPPORT

kuengla commented 4 years ago

I get that error when trying to switch on the pose recognition. My OS is Linux.

[ INFO:0] Initialize OpenCL runtime...
OpenCV Error: Assertion failed (output_slice.isContinuous() && output_slice.size == curr_output.size) in fuseLayers, file /io/opencv/modules/dnn/src/dnn.cpp, line 1430
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/lars/Documents/software_dev/tello/Tello-Python-master/Tello_Video_With_Pose_Recognition/tello_control_ui.py", line 113, in videoLoop
    cmd,self.draw_skeleton_flag,self.points = self.my_tello_pose.detect(self.frame)
  File "/home/lars/Documents/software_dev/tello/Tello-Python-master/Tello_Video_With_Pose_Recognition/tello_pose.py", line 209, in detect
    output = self.net.forward()
error: /io/opencv/modules/dnn/src/dnn.cpp:1430: error: (-215) output_slice.isContinuous() && output_slice.size == curr_output.size in function fuseLayers
dji-dev commented 4 years ago

Public comment from Ho.Yan in Zendesk ticket #28536:

Dear Developer,

Thanks for reaching Ryze!

Please check if there is a pose_iter_160000.caffemodel file under the path. Tello-Python-master\Tello_Video_With_Pose_Recognition\model\pose\mpi\pose_iter_160000.caffemodel

You can recheck that the development environment is completely installed.

Best Regards, Ho Yan RYZE TECHNICAL SUPPORT

pet93 commented 4 years ago

Hi, I've discovered that actually it works but it is very very slow in processing frames. Any suggest for improving speed? Thank you

dji-dev commented 4 years ago

Public comment from Ho.Yan in Zendesk ticket #28536:

Dear Developer,

Thanks for reaching Ryze!

The sample we provide is for reference only. If you need to increase the processing efficiency, you need to modify it yourself.

Best Regards, Ho Yan RYZE TECHNICAL SUPPORT

145594 commented 4 years ago

There is no pose_iter_160000.caffemodel file under the path. Tello-Python-master\Tello_Video_With_Pose_Recognition\model\pose\mpi\pose_iter_160000.caffemodel. I checked the package you provided carefully, but can't find.

frank804 commented 3 years ago

@kuengla do you solve this problem? help!