Skip to Main Content
Xamarin.Forms Projects
book

Xamarin.Forms Projects

by Johan Karlsson, Daniel Hindrikes
December 2018
Intermediate to advanced content levelIntermediate to advanced
416 pages
10h 30m
English
Packt Publishing
Content preview from Xamarin.Forms Projects

Using CoreML for image classification

The first thing we will do is add the CoreML model to the HotDogOrNot.iOS project by going through the following steps:

  1. Extract the ZIP file that we get from the Custom Vision service.
  2. Find the .mlmodel file and rename it as hotdog-or-not.mlmodel.
  3. Add it to the Resources folder in the iOS project.
  4. 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:

  1. Create a new class called CoreMLClassifier ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Xamarin.Forms Projects - Second Edition

Xamarin.Forms Projects - Second Edition

Daniel Hindrikes, Johan Karlsson
Xamarin Blueprints

Xamarin Blueprints

Michael Williams
Xamarin.Forms Solutions

Xamarin.Forms Solutions

Gerald Versluis, Steven Thewissen

Publisher Resources

ISBN: 9781789537505Supplemental Content