-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with Tello video stream to Windows 11 Computer #187
Comments
I have the same problem, running Windows 11. I'd hate to have to downgrade my Python install. |
use this code: from djitellopy import Tello
import cv2
my_drone = Tello()
my_drone.connect()
print(my_drone.get_battery())
my_drone.streamon()
while True:
# Read a frame from the video stream
img = my_drone.get_frame_read().frame
img = cv2.resize(img, (360, 240))
# Display the frame
cv2.imshow("Image", img)
# Check for key press to exit
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cv2.destroyAllWindows()
my_drone.streamoff()
my_drone.land() |
I have the same problem. Is there any solution now? |
I managed to solve this issue by using a different PC with the same installation and Tello drone. |
I am unable to get the video stream due to same issue. Has it been resolved? |
Could you provide some information on what python, djitellopy, etc. versions you are using? We moved away from opencv in favor of pyAV. I was assuming this issue to be resolved. |
Hey, I was following Murtaza's workshop video: https://www.youtube.com/watch?v=LmEcyQnfpDA&list=PLMoSUbG1Q_r9p7iYBg6z6tZP002DAJ41H&index=4 Python version: 3.11.3 & 3.7.0 Is there a recommended tutorial based on the latest version? |
Hello everyone!
I am trying to follow along Murtaza's Workshop YouTube "Drone Programming With Python Course | 3 Hours | Including x4 Projects | Computer Vision" course:
https://www.youtube.com/watch?v=LmEcyQnfpDA
However I have hit a wall at the imageCapture section.
The Tello drone connects to the computer and I can use the basic movements commands without any difficulty, having the drone take off / move around with commands issued from the laptop. However when I try to run the code below to get a video stream:
When the code reached line 1029 in tello.py:
tello.cap = cv2.VideoCapture(address)
It got stuck for a while and then the tello drone blinked in red (instead of green) which caused the tello wifi to disconnect.
Then I got the following output:
Afterwards I wasn't able to reconnect to the tello wifi and I couldn't connect to any other wifi. After I restarted the computer I was able to connect to the wifi normally.
The issue isn't with the Tello drone - it can send a video to my phone.
In order to solve this issue I tried the following steps without success:
Virtual environment installations:
djitellopy 2.4.0
numpy 1.24.3
opencv-python 4.5.1.48
pip 23.1.2
setuptools 67.7.2
wheel 0.40.0
Thank you!
The text was updated successfully, but these errors were encountered: