this is a picture of a dog's contour and a horse's contour

how to make computer know it is a horse or a dog or a person.

this is a picture of a dog's contour and a horse's contour

how to make computer know it is a horse or a dog or a person.

That's a difficult question.
You should research computer vision.
I would think the method would be something like:
Of course, designing and training the network is not exactly a simple operation..