Implementing Lucas Kanade Optical Flow algorithm to stabilize the facial landmarks detected.
Green landmarks is the stabilized LK stream while Red is the normal detections.
LukasKanade_demo.mp4
To run the project please download and install conda from Anaconda Official Website then run the following commands:
git clone https://github.com/KarimIbrahim11/Lucas-Kanade-Stabilized-Facial-Landmarks.git
cd Lucas-Kanade-Stabilized-Facial-Landmarks
conda env create -f env.yaml
conda activate env
python main.py
Press [SPACE] to shuffle between the stable and unstable stream, [ESC] to exit the script.
please note that this script is developed to work realtime using your desktop/laptop's camera.