Open lugrsmb opened 1 year ago
Bonjour, Lorsque je lance le programme de capture vidéo du drone ci dessous, cela me renvoie une KeyError: '192.168.10.1'
frame_read = tello.get_frame_read()
def videoRecorder(): height, width, _ =frame_read.frame.shape video= cv2.VideoWriter('video.avi',cv2.VideoWriter_fourcc(*'XVID'),38,(width,height)) while keepRecording: video.write(frame_read.frame) time.sleep video.release
recorder= Thread(target=videoRecorder) recorder.start() tello.takeoff() tello.land() keepRecording= False recorder.join()
Hey,
can you describe your problem in english? Also please include the full error log.
Bonjour, Lorsque je lance le programme de capture vidéo du drone ci dessous, cela me renvoie une KeyError: '192.168.10.1'
frame_read = tello.get_frame_read()
def videoRecorder(): height, width, _ =frame_read.frame.shape video= cv2.VideoWriter('video.avi',cv2.VideoWriter_fourcc(*'XVID'),38,(width,height)) while keepRecording: video.write(frame_read.frame) time.sleep video.release
recorder= Thread(target=videoRecorder) recorder.start() tello.takeoff() tello.land() keepRecording= False recorder.join()