The first thing we will do is add the CoreML model to the HotDogOrNot.iOS project by going through the following steps:
- Extract the ZIP file that we get from the Custom Vision service.
- Find the .mlmodel file and rename it as hotdog-or-not.mlmodel.
- Add it to the Resources folder in the iOS project.
- Make sure that the build action is BundleResource. If you are using Visual Studio on a Mac, a .cs file will be created. Remove this file, because it will be easier to use the model without the code.
When we have added the file to the iOS project, we will be ready to create the iOS implementation of the IClassifier interface by going through the following steps:
- Create a new class called CoreMLClassifier ...