'Is there a way to minimize the latency of streaming tello drone with python?

I used djitellopy library to control my Tello drone.

But the problem is the latency of the video stream.

This is the minimal example of video streaming with Tello drone:

from djitellopy import tello
import cv2


drone = tello.Tello()
drone.connect()
drone.streamon()

while True:
    img = drone.get_frame_read().frame
    cv2.imshow('stream', img)
    cv2.waitKey(1)

I really appreciate it if there are any viable solutions and not just suggestions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source