iOS Build Cat Vs Dog Image Classifier Using Vision In 5 minutes
I had created a Cat vs Dog Image Classifier by converting a small Keras Model into a Core ML model. The link to the source code is available here.
With iOS 13, Vision is even more powerful. VNImageRequest
now has VNRecognizeAnimalRequest
to identify cats and dogs in images. There's no need for creating our own Core ML model as the built-in pet classifier model in Vision is pretty accurate.
Currently, the Vision Animal Detector can only detect cats and dogs.
You can now build a cat vs dog image classifier application in less than 5 minutes
In the following section, we’ll be jumping straight into the code and build an exciting Cat vs Dog Image Classifier iOS Application. Let’s get started with a new XCode project.
🐶 vs 🐱 Image Classifier iOS Application
Here’s the code from the ViewController that builds a cat vs dog image classifier for you.