ezrafielding / easyTello

An easy to use library to support DJI Tello scripting in Python 3
MIT License
79 stars 31 forks source link

no picture showed #16

Open WangsunLiu opened 5 years ago

WangsunLiu commented 5 years ago

I tested the program by code:

`from tello import Tello

tello = Tello() tello.command() tello.streamon() tello.wait(10) tello.streamoff() `

and here's what I got: image

And there is no window show up to let me see the video as it supposed to be. When I want make it fly it excuted very well. What's the problem?

Is it because of decoder?Do I need a extra decoder to make it work?

I'm using windows 8.1, with python3.7.

Thank you so much.

ezrafielding commented 5 years ago

easyTello uses OpenCV-Python to display video. When 'streamon' is called an OpenCV window should be opened to view the video stream. I haven't been able to test easyTello on Windows 8.1 so I'm not sure if it's an issue with the OS or if your environment doesn't like the way I'm calling OpenCV. What's weird is that there are no errors showing up which makes it difficult to diagnose. Maybe check if Windows (or something else on your system) is blocking OpenCV from opening. Hope this helps. Let me know if anything else comes up

WangsunLiu commented 5 years ago

Thank you for your response, but my intership had ended before and I don't in charge of the Tello anymore. But thank you all the same. Have a nice day.

Ezra Fielding notifications@github.com 于2019年8月23日周五 下午3:05写道:

easyTello uses OpenCV-Python to display video. When 'streamon' is called an OpenCV window should be opened to view the video stream. I haven't been able to test easyTello on Windows 8.1 so I'm not sure if it's an issue with the OS or if your environment doesn't like the way I'm calling OpenCV. What's weird is that there are no errors showing up which makes it difficult to diagnose. Maybe check if Windows (or something else on your system) is blocking OpenCV from opening. Hope this helps. Let me know if anything else comes up

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Virodroid/easyTello/issues/16?email_source=notifications&email_token=AMQNWIAGS47VHI4V6QILOYTQF6D2NA5CNFSM4IINIDAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD47KLVA#issuecomment-524199380, or mute the thread https://github.com/notifications/unsubscribe-auth/AMQNWIERMMNWGYBZR4CIUFDQF6D2NANCNFSM4IINIDAA .

CrashxZ commented 4 years ago

Hi, I am getting the same behaviour, I have all the dependencies sorted out. I am using Ubuntu 18.04. And I figured it was not a firewall issue, I think its an open cv issue,

"IMPORTANT NOTE MacOS and Linux wheels have currently some limitations:

video related functionality is not supported (not compiled with FFmpeg) for example cv2.imshow() will not work (not compiled with GTK+ 2.x or Carbon support)"

Do you have a fix ? or can you tell me how you installed opencv?

CrashxZ commented 4 years ago

Also just in case can you tell me which port does it use to listen to the video? is it 9617?

WangsunLiu commented 4 years ago

My internship has ended a long time ago and I don't remember the details anymore. Sorry that I cannot help for that.

Mainak Mondal notifications@github.com 于2020年2月19日周三 上午4:18写道:

Also just in case can you tell me which port does it use to listen to the video? is it 9617?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Virodroid/easyTello/issues/16?email_source=notifications&email_token=AMQNWIA3PZFMA3FTGHHZV5TRDQ7B3A5CNFSM4IINIDAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMEMZIY#issuecomment-587779235, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMQNWIDF4D3SZLQ3LTNZENTRDQ7B3ANCNFSM4IINIDAA .