Hello everyone
I'm trying python script to control and streaming real-time video from Tello drone. Drone control is functional but I can't get video streaming. When I turn on camera on the GUI it will print errors in the console.I work in Linux(Ubuntu).
Can anyone please suggest me a solution?
Exception in thread Thread -2:
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 "main.py", line 32, in camStream
cv2.imshow('cap', frame)
error: OpenCV(4.2.0) /io/opencv/modules/highgui/src/window.cpp:376: error: (-21 5: Assertion failed) size.width>0 && size.height>0 in function 'imshow'
I'm trying python script to control and streaming real-time video from Tello drone. Drone control is functional but I can't get video streaming. When I turn on camera on the GUI it will print errors in the console.I work in Linux(Ubuntu).
Can anyone please suggest me a solution?
Exception in thread Thread -2:
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 "main.py", line 32, in camStream
cv2.imshow('cap', frame)
error: OpenCV(4.2.0) /io/opencv/modules/highgui/src/window.cpp:376: error: (-21 5: Assertion failed) size.width>0 && size.height>0 in function 'imshow'