Book Image

Machine Learning with Core ML

Book Image

Machine Learning with Core ML

Overview of this book

Core ML is a popular framework by Apple, with APIs designed to support various machine learning tasks. It allows you to train your machine learning models and then integrate them into your iOS apps. Machine Learning with Core ML is a fun and practical guide that not only demystifies Core ML but also sheds light on machine learning. In this book, you’ll walk through realistic and interesting examples of machine learning in the context of mobile platforms (specifically iOS). You’ll learn to implement Core ML for visual-based applications using the principles of transfer learning and neural networks. Having got to grips with the basics, you’ll discover a series of seven examples, each providing a new use-case that uncovers how machine learning can be applied along with the related concepts. By the end of the book, you will have the skills required to put machine learning to work in their own applications, using the Core ML APIs
Table of Contents (16 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Chapter 5. Locating Objects in the World

So far, we have limited ourselves to recognizing the single most dominant object within an image using a convolutional neural network (CNN). We have seen how a model can be trained to take in a image and extract a series of feature maps that are then fed into a fully connected layer to output a probability distribution of a set of classes. This is then interpreted to classify the object within the image, as shown here:

In this chapter, we will build on this and explore how we can detect and locate multiple objects within a single image. We will start by building up our understanding of how this works and then walk through implementing a image search for a photo gallery application. This application allows the user to filter and sort images not only based on what objects are present in the image, but also on their position relative to one another (object composition). Along the way, we will also get hands-on experience with Core ML Tools, the tool set...