This article is free to read. Creating a lesson uses your daily or stored credits; review the language and settings before starting.
How do face filters work?
Quick answer
Face filters use computer vision to detect facial landmarks in a live camera feed. A machine learning model locates key points like eyes and mouth, then digital graphics are overlaid and tracked to those points. This creates real-time effects that move with your face, as seen in social media apps.
Face filters work by using a camera to detect facial landmarks, then overlaying digital graphics that track your movements in real time. Algorithms locate key points like eyes, nose, and mouth, allowing effects to move naturally with your face.
Step by step
- The camera captures a continuous stream of video frames showing your face.
- A face detection algorithm scans each frame to locate a face and identify its boundaries.
- Facial landmark detection pinpoints specific features such as eye centers, nose tip, and mouth corners.
- The filter software calculates the position and orientation of these landmarks in 3D space.
- Digital graphics are rendered and aligned with the landmarks, then blended into the video frame.
- The composited frame is displayed on your screen, showing the filter applied to your face.
Key things to understand
- A camera captures a live video feed of your face and sends it to the filter software.
- Face detection algorithms scan the image to find a face and identify key landmarks such as eyes, nose, and mouth.
- These landmarks are tracked continuously, so the filter can follow your expressions and head movements.
- Digital graphics, like masks or animal ears, are positioned relative to the landmarks and blended onto the video.
- The final composited image is displayed on your screen, creating the illusion that the graphics are part of your face.
Labelled diagram
- Camera input
Captures live video frames of your face at many frames per second.
- Face detection
Locates the face within the frame and defines a bounding box.
- Landmark mapping
Identifies key points like eyes, nose, and mouth for precise tracking.
- Graphic overlay
Places digital elements onto the face according to landmark positions.
- Display
Shows the final combined image on your screen in real time.
Real-world examples
- Snapchat's dog ears filter uses face tracking to place ears on your head and a tongue on your mouth.
- Instagram's face filters let you add virtual makeup that stays on your lips and eyes as you move.
- Video-call background blur uses person segmentation, a related technique, to separate you from the background and keep you sharp.
- Apple's Memoji uses face tracking to turn your expressions into an animated character in real time.
Common mistake
✗ Myth: Face filters work by simply pasting a static image over your face without tracking.
✓ Fact: They continuously track facial landmarks to adjust the graphics as you move. This real-time tracking makes the filter appear attached to your face, not just a fixed overlay.
People also ask
What is facial landmark detection?
How do face filters track movement?
Can face filters work without internet?
How does a face filter know where my eyes and mouth are?
Do face filters work in real time?
Can face filters work on any phone?
Are face filters always accurate?
Part of the guide: How AI Works →

