A tiny demo of how to use iOS 13 built-in feature(
VNAnimalDetector) to detect cats and dogs from the frame. Only cat and dog supported for the moment.
Inspired by AppleFaceDetection
Note: result might be various/hilarious sometimes
- Clone this repo:
git clone email@example.com:dingtianran/CatDog.git
CatDog.xcodeprojin Xcode 11 and run in proper devices.
From here you're good to go.