You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried making a Drone ui with tkinter and cv2 but it doesnt work,
the error im getting is :
[h264 @ 000001d7c595c880] non-existing PPS 0 referenced
[h264 @ 000001d7c595c880] decode_slice_header error
[h264 @ 000001d7c595c880] no frame!
and
TypeError: Can't convert object to 'str' for 'filename'
[INFO] tello.py - 437 - Send command: 'land'
The code:
from djitellopy import Tello
import cv2, math, time
from tkinter import*
from tkinter import Button
from tkinter import *
from tkinter import ttk
from PIL import ImageTk, Image
import cv2
After I tried that way, my laptop became slow. So I let cv2 and tkinter separate using threading method. I also using matplotlib for my project, You can see the result here
I tried making a Drone ui with tkinter and cv2 but it doesnt work,
the error im getting is :
[h264 @ 000001d7c595c880] non-existing PPS 0 referenced
[h264 @ 000001d7c595c880] decode_slice_header error
[h264 @ 000001d7c595c880] no frame!
and
TypeError: Can't convert object to 'str' for 'filename'
[INFO] tello.py - 437 - Send command: 'land'
The code:
from djitellopy import Tello
import cv2, math, time
from tkinter import*
from tkinter import Button
from tkinter import *
from tkinter import ttk
from PIL import ImageTk, Image
import cv2
tello = Tello()
tello.connect()
tello.streamon()
root = Tk()
root.title("DroneUI")
frm = ttk.Frame(root, width=500, height=500)
frm.grid(row=0, column=0)
tello.takeoff()
while True:
frame = tello.get_frame_read()
img = frame.frame
tello.BITRATE_AUTO
root.mainloop()
The text was updated successfully, but these errors were encountered: