SNAP is a real-time face filter application that uses MediaPipe and OpenCV to overlay filters on a live video feed. The current implementation includes a sunglasses filter, which can be applied to the detected face in the video stream.
- Real-time face detection using MediaPipe.
- Apply overlay filters to the detected face.
- Currently supports a sunglasses filter.
Make sure you have the following packages installed:
opencv-pythonmediapipestreamlitnumpy
You can install these packages using pip:
pip install -r requirements.txt-
Clone or download the repository.
-
Place your
sunglasses.pngfilter image in the same directory as the script. -
Run the application using Streamlit:
streamlit run app.py
-
Open the Streamlit app in your browser (typically at
http://localhost:8501). -
Choose the "Sunglasses" filter from the sidebar to apply it to the live video feed.
