Snapchat like filter App using opencv python
Backend : opencv and python
Library required:
- opencv = '4.5.4-dev'
- scipy = '1.4.1'
- numpy = '1.19.2'
- mediapipe = '0.8.9.1'
NOTE:
- All required code files uploaded so don't need to install any external files or application
Quick Overview about structure
1) snapchat_app.py
- select, apply and draw filters on face
- Draw filtered image and display output image.
2) hand_landmark_detection.py
- use mediapipe lib to detect hand landmarks.
3) face_landmark_detection.py
- use mediapipe lib to detect face landmarks.
- other operations
How to use
-
clone this directory
-
use following command to run detection and tracking on your custom video
python snapchat_app.py
- Note : Before executing this command make sure that you have installed all required libs and all above .py files reside in same folder
Results
- output:1
- output:2
- output:3