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

Object localization and object detection 


As mentioned in the introduction of this chapter, we have already been introduced to the concepts behind object recognition using CNNs. For this case, we used a trained model to perform classification; it achieved this by learning a set of feature maps using convolutional layers that are fed into fully connected (or dense) layers and, finally, their output, through an activation layer which gave us the probability for each of the classes. The class was inferred by selecting the one with the largest probability. 

Note

Let's differentiate between object recognition, object localization, and object detection. Object recognition is the task of classifying the most dominant object in a image while object localization performs classification and predicts an object's bounding box. Object detection further extends this and allows multiple classes to be detected and located, and that's the topic of this chapter.

This process is known as object recognition and...