Skip to content
How to use VNAnimalDetector to detect cat and dog in iOS 13
Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CatDog.xcodeproj
CatDog
.gitignore
5ddf862fc8f9.gif
IMG_2928.jpg screenshot frame updated Jul 18, 2019
LICENSE
README.md

README.md

Cat&Dog

ios13+ swift5+

A tiny demo of how to use iOS 13 built-in feature(VNRecognizeAnimalsRequest and 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 ⬇️

Setup

  1. Clone this repo: git clone git@github.com:dingtianran/CatDog.git
  2. Open CatDog.xcodeproj in Xcode 11 and run in proper devices.

From here you're good to go.

You can’t perform that action at this time.