dji-sdk / Tello-Python

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

Tello_Video & Tello_Video_With_Pose_Recognition #40

Open hkpc0715 opened 5 years ago

hkpc0715 commented 5 years ago

Hi all,

I was trying out both Tello_Video & Tello_Video_With_Pose_Recognition packages in my Linux - ubuntu 16.04 LTS

At first, I installed Tello_Video with the one click install and it has successfully run, however, when i tries to install and run Tello_VIdeo_With_Pose_Recognition, it shows the following errors, and now it no longer runs again.

I have checked and I moved the 'libh264decoder.so' file into my python's site-packages file & /usr/lib/ , the above move was suggested by the internet. But still getting the error:

spark@spark:~/Downloads/Tello-Python-master/Tello_Video_With_Pose_Recognition$ python main.py

Traceback (most recent call last): File "main.py", line 1, in import tello File "/home/spark/Downloads/Tello-Python-master/Tello_Video_With_Pose_Recognition/tello.py", line 5, in import libh264decoder ImportError: libavcodec.so.57: cannot open shared object file: No such file or directory

spark@spark:~/Downloads/Tello-Python-master/Tello_Video_With_Pose_Recognition$ cd .. spark@spark:~/Downloads/Tello-Python-master$ cd Tello_Video

spark@spark:~/Downloads/Tello-Python-master/Tello_Video$ python main.py

Traceback (most recent call last): File "main.py", line 1, in import tello File "/home/spark/Downloads/Tello-Python-master/Tello_Video/tello.py", line 5, in import libh264decoder ImportError: libavcodec.so.57: cannot open shared object file: No such file or directory spark@spark:~/Downloads/Tello-Python-master/Tello_Video$ `

Any help will be greatly appreciated.

dji-dev commented 5 years ago

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

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

hkpc0715 commented 5 years ago

I am now running the getModels.sh in the model file, and it is downloading the file. It is talking about 6 hours with a cable connection (1000mpbs). Anyway, I will try after the download is finished, and will update with you once again. Might still need your help later.

Thank you for your kind help, Dji technical support team!

hkpc0715 commented 5 years ago

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

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

Hi, after installing the getModels.sh file, it finally works. However, I have turned on the Pose Recognition on the UI interface, but it does not work. I have also checked that I have pose_iter_160000.caffemodel inside the mpi path.

May I know whats wrong ?

hkpc0715 commented 5 years ago

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

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

This is the error that I have got in terminal:

[ INFO:0] Initialize OpenCL runtime... OpenCV Error: Assertion failed (output_slice.isContinuous() && output_slice.size == curr_output.size) in fuseLayers, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/dnn/src/dnn.cpp, line 1428 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/spark/Downloads/Tello-Python-master/Tello_Video_With_Pose_Recognition/tello_control_ui.py", line 112, in videoLoop cmd,self.draw_skeleton_flag,self.points = self.my_tello_pose.detect(self.frame) File "/home/spark/Downloads/Tello-Python-master/Tello_Video_With_Pose_Recognition/tello_pose.py", line 209, in detect output = self.net.forward() error: /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/dnn/src/dnn.cpp:1428: error: (-215) output_slice.isContinuous() && output_slice.size == curr_output.size in function fuseLayers

dji-dev commented 5 years ago

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

Dear Developer,

Thanks for reaching Ryze!

You can test first ,if you have any questions, please contact us.

Best Regards, Ho Yan RYZE TECHNICAL SUPPORT

hkpc0715 commented 5 years ago

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

Dear Developer,

Thanks for reaching Ryze!

You can test first ,if you have any questions, please contact us.

Best Regards, Ho Yan RYZE TECHNICAL SUPPORT

Hi Ho.Yan,

I have just tested and got the following error:

This is the error that I have got in terminal:

[ INFO:0] Initialize OpenCL runtime...
OpenCV Error: Assertion failed (output_slice.isContinuous() && output_slice.size == curr_output.size) in fuseLayers, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/dnn/src/dnn.cpp, line 1428
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/spark/Downloads/Tello-Python-master/Tello_Video_With_Pose_Recognition/tello_control_ui.py", line 112, in videoLoop
cmd,self.draw_skeleton_flag,self.points = self.my_tello_pose.detect(self.frame)
File "/home/spark/Downloads/Tello-Python-master/Tello_Video_With_Pose_Recognition/tello_pose.py", line 209, in detect
output = self.net.forward()
error: /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/dnn/src/dnn.cpp:1428: error: (-215) output_slice.isContinuous() && output_slice.size == curr_output.size in function fuseLayers
huaerduoduokaibuting commented 4 years ago

@hkpc0715 do you solve this problem? help!

frank804 commented 4 years ago

@hkpc0715 do you solve this problem? help!