This project utilizes the DJI Tello Drone to keep the user's face in the center of its camera
- Clone the repository:
git clone https://github.com/yourusername/CameraDrone.git
- Navigate to the project directory:
cd CameraDrone/DroneCommands - Activate the virtual environment:
#For Windows source venvWin/Scripts/activate #For Mac source venvMac/bin/activate
- Connect the drone to your computer.
- Start the application:
python facetrack.py
- On takeoff, raise the drone to head level by placing your hand under the drone's bottom sensors
- Once at the desired height, stand in front of the camera and let the software do the rest
- Deactivate the software by pressing CTRL+C in the terminal
The program utilizes the drone's camera to return its video feed to the software. OpenCV then utilizes its frontal face haar cascade file to return the coordinates of the detected face within the image. The absolute center is also determined based on the resolution size of the image and the face dimensions. Once both are compared, the DJI Tello library will increase speed in the X or Y direction to reduce the difference between the two areas.