- Joined
- Jan 20, 2022
- Messages
- 4
- Reaction score
- 0
Hey guys!
I'm trying to capture images from my Tello drone with python using OpenCV
However, I notice that the image quality from programming is not as good as the image from the Tello app(controlled by iPhone8).
I've tried cv2.resize() method and it seems like this only changes the dimension of the image, not quality.
or should I change other parameters? like framerate, fps.....etc
If anyone knows how to improve this plz kindly let me know! Thank you!
Here is my simple code:
from djitellopy import tello
from time import sleep
import cv2
import time
global img
me = tello.Tello()
me.connect()
print(me.get_battery())
me.takeoff()
me.streamon()
img = me.get_frame_read().frame
img = me.rescale_frame()
img = cv2.resize(img, (1280, 720))
cv2.imwrite(f'Resources/Images/{time.time()}.jpg', img)
me.streamoff()
me.land()

Thank you!
I'm trying to capture images from my Tello drone with python using OpenCV
However, I notice that the image quality from programming is not as good as the image from the Tello app(controlled by iPhone8).
I've tried cv2.resize() method and it seems like this only changes the dimension of the image, not quality.
or should I change other parameters? like framerate, fps.....etc
If anyone knows how to improve this plz kindly let me know! Thank you!
Here is my simple code:
from djitellopy import tello
from time import sleep
import cv2
import time
global img
me = tello.Tello()
me.connect()
print(me.get_battery())
me.takeoff()
me.streamon()
img = me.get_frame_read().frame
img = me.rescale_frame()
img = cv2.resize(img, (1280, 720))
cv2.imwrite(f'Resources/Images/{time.time()}.jpg', img)
me.streamoff()
me.land()

Thank you!