How maths can be used to give me a dog face 🐢 Snapchat filter algorithms!πŸ¦ΈπŸ½β€β™€οΈπŸ‘°πŸ»πŸ‘ΈπŸ½πŸ§Ÿβ€β™‚οΈπŸ‘©πŸ»β€πŸš’πŸ‘©πŸΌβ€πŸ”¬

How does snapchat know where to put the filters so that they are on the right part of your face and even stay on your face when you’re moving around?!πŸ€” First your phone needs to decide which part of the image is your face! Pixels (or picture elements) are tiny squares of colour that make up the image. Snapchat uses a mathematical algorithm to repeat many searches through all the pixels of the image looking for regions of contrast between light and dark pixels. This is because there are common regions of every face that are lighter or darker than others (e.g. the middle of your forehead is lighter than the outside). Using this snapchat has found your face! But how does it know where your nose is so that it can replace it with a dog noseπŸ‘ƒ ? Or where your lips are so they can be puckered up πŸ‘„ ?!…Well this is where statistics comes in. To do this, many people have manually told a computer where the outlines of their different facial features are – so many faces in fact that the average of this is used as a template on snapchat. This template is put over the image of your face and adjusted to your specific features through scalings, rotations and movements based on contrast in light and on where other features have been detected. The coordinates of your face and facial features are then remembered as a mask and tracked as you move your face to create the best pose πŸ•ΊπŸ»Β #appliedmathematicsΒ #mathsinlifeΒ #scienceiscoolΒ #mathsisfunΒ #keeplearningΒ #stemeducationΒ #womeninmathematicsΒ #snapchatπŸ‘»Β #filtersΒ #faceΒ #dogfaceΒ #scicommΒ #spreadingtheword

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: