This is a ComputerVision/Control algorithm which forces a DJI Tello drone to center the camera according to your face position.
This algorithm uses :
djitellopy ver 1.5 by https://github.com/damiafuentes
opencv-python ver 4.1.0.25
install with:
bash: pip3 install -r requirements.txt
run it with :
bash: python3 FaceDetection.py haarcascade_frontalface_default.xml
all my test videos will be uploaded on my youtube channel and i will list them here:
- First test, no PID, no face logging : https://www.youtube.com/watch?v=WFz5I1iRhLY
it still has some limitations such as slow movements, setpoint oscillations and sometimes it detects faces that do not exist. This is a problem because the algorithm adjust its movement according to every face in the frame
i'm working in :
-Adding a PID algorithm for position control, in order to limit oscillation and adjust drone speed
-Adding a face tracking with ID assignment, in order to follow just one given face