Program that I used is Mathematica
In the last post, I've talked about how computer recognizes Steemit Logo. Today I'll introduce how computer recognizes a person's face. Here's a picture of a famous person, Donald Trump; the current president of the United States.
(Here is the Image source Link)
Now computer recognizes this image as combination of 58 disjoint curves
In single iteration, only lines appear.
With two iterations, lines start gathering, to form some shape.
With five iterations, you can see it starts to form a face.
With eight iterations, you can see the formation of nose and mouth.
With 13 iterations, separation of facial features is performed.
With 21 iterations, separation between hair and forehead is performed.
With 34 iterations, it starts to concentrate on details on hair style. (You know Trump's hairstyle..)
On 55 iterations, the algorithm concentrates on detailed sketch of eyebrows and hairs.
Finally, after 100 iterations, you can see that details in eyebrows and hairs are almost done.
This is just a naive implementation of edge detecting algorithm, which is called Canny Edge Detecting Algorithm. The program itself is very primitive; it does not catch out sharp boarders and lines like other cutting edge software such as Adobe Photoshop or Sony imaging Edge. However, the underlying principle is same.. For those of you who want to know the parametrized equation of the final Trump curve,
click this link. (Warning! Please do not click this link if you are not familiar with Fourier series.)