Here is a demo of how to use built-in API to detect cats and dogs from still image or live camera stream. Note that iOS 13 is still in beta, result could be various/halirious.
You’ll fint the
VNAnimalDetector documentation here at here
Code is on github