This is how Computer Recognizes Donald Trump
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8c/8c0df37037.png)
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.
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bea539b91.png)
(Here is the Image source Link)
Now computer recognizes this image as combination of 58 disjoint curves
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bf070a692.png)
In single iteration, only lines appear.
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bf3adb7bf.png)
With two iterations, lines start gathering, to form some shape.
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bf3baefa7.png)
With five iterations, you can see it starts to form a face.
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bf3bf378a.png)
With eight iterations, you can see the formation of nose and mouth.
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bf3c5a2c4.png)
With 13 iterations, separation of facial features is performed.
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bf3ca763a.png)
With 21 iterations, separation between hair and forehead is performed.
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bf3ce84cc.png)
With 34 iterations, it starts to concentrate on details on hair style. (You know Trump's hairstyle..)
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bf3a3c243.png)
On 55 iterations, the algorithm concentrates on detailed sketch of eyebrows and hairs.
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8b/8bf3a99bf3.png)
Finally, after 100 iterations, you can see that details in eyebrows and hairs are almost done.
![](https://steemitimages.com/640x0/https://i.imgsafe.org/8c/8c0df37037.png)
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.)