Snapchat has made itself a market niche with its filters, or lenses, that can create all sorts of surreal digital contortions of your face and surroundings - even able to switch faces between two people.
And although their practice is quite silly, the engineering behind the filters is quite serious indeed. Developed by a Ukranian tech company called Looksery which Snapchat acquired for $150m they have gone to a lot of effort to put those ridiculous augmented animations on your face.
Snapchat are understandably secretive about their technology but website Vox lifted the lid on its basic premise.
Their technology taps into the growing market of computer vision, which are apps that use pixel data from a camera in order to identify real world objects - such as when you deposit bank cheques using the camera on your phone, or how self-driving cars avoid running over people.
But the technology goes a lot further than that. To identify all the features and expressions of a face Snapchat trained the system using thousands of faces that were manually marked with all the facial points: borders of the lips, nose, mouth, ears etc. So effectively the app makes a point mask of your face and shifts that mask around to match an individual face based on the data it is getting from your camera at 24 frames per second.