Why do you need to do this?
It's a very challenging problem.
The Mathworks had a webinar where they had a cat or dog detector. First they used the Computer Vision System Toolbox to find the animal. Then they used deep learning to identify what kind of animal it was. The webinar is here: Deep Learning Webinar
Good luck.