pip install -r neon_dance_requirements.txt
python3 video_neon_dance.py -i "path/to/input/video" -o "path/to/output/video"
Please have opencv, numpy, matplotlib and mediapipe installed on your device
End to end: python test.py
(the result will be saved in result.gif file)
Segmentation: python segmentation.py
Draw Brute force plot: python plot_eye_state.py
Speed test: python speed_capture.py
Please have opencv, numpy, mediapipe and PIL already installed on your local workspace.
End to end: main.py
. This's also the main source.
The image and gif inputs are placed in the same level with source main.py
, do not group them.
Please install opencv, numpy, cvzone, os, imageio before run code.
- In change_background:
The gif folder contains file.gif, you can add gif to that folder. Note the size of the gif file.
python change_background.py
to run change background model