dingtianran / CatDog

How to use VNAnimalDetector to detect cat and dog in iOS 13

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cat&Dog

ios13+ swift5+

Update: Now it's a free app on App Store!!!

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.

About

How to use VNAnimalDetector to detect cat and dog in iOS 13

License:MIT License


Languages

Language:Swift 100.0%