How to Create the Cardano Laser Eyes Filter with the Wolfram Language
How to Create the Cardano Laser Eyes Filter with the Wolfram Language
In this notebook we will use the FindFaces function to find the location of human eyes in a picture and show the basic algorithm behind the creation of the Cardano Laser Eyes effect.
The Wolfram Language features many automated machine learning tools. We will use the image you uploaded to the form to show an example of what the Wolfram Language can do:
The Wolfram Language features many automated machine learning tools. We will use the image you uploaded to the form to show an example of what the Wolfram Language can do:
FindFaces
{Rectangle[{267.5,320.5},{428.5,537.5}]}
Highlight the detected faces in the image:
HighlightImage
,FindFaces
To create the Cardano Laser Eyes effect:
Specify the facial features FindFaces will to attempt to detect. In this case, to get the location of the left and right eyes use:
Specify the facial features FindFaces will to attempt to detect. In this case, to get the location of the left and right eyes use:
FindFaces
,{"LeftEyeCenter","RightEyeCenter"}
Highlight the eyes using their coordinates:
HighlightImage
,{Opacity[1],Blue,Disk[#,20]}&/@FirstLookupFindFaces
,{"LeftEyeCenter","RightEyeCenter"},{"LeftEyeCenter","RightEyeCenter"}
Useful resources: