Jacob Pitsenberger
December 28, 2023
This Python module demonstrates how to use OpenCV with the Tello EDU mini drone to stream video from its camera and save individual frames as PNG files when the 'p' key is pressed.
- take_pictures.py: The main Python script containing the code for connecting to the Tello drone, streaming video, and capturing images.
- pictures/: The directory where captured images are saved.
- Python 3.x
- OpenCV (
cv2
) - DJITelloPy (
djitellopy
) - NumPy (
numpy
)
-
Install the required dependencies:
pip install opencv-python djitellopy numpy
-
Connect to the Tello drone and run the script:
python take_pictures.py
Use the 'p' key to capture images during the drone's video stream.
Ensure that the Tello drone is connected to the computer's Wi-Fi network. Press 'q' to exit the video stream. Captured images will be saved in the pictures/ directory.
This project is licensed under the MIT License.