Writing the iOS mobile application

In this section, we are going to create an app to make use of the image recognition model that we've created to predict images using your iOS mobile camera.

To start, you need a Mac PC running Xcode version 9+. Download the source code (x-code project) from the Git repository and navigate to the project folder. Open the recognition.xcodeproj image in Xcode. The following screenshot shows the folder structure of the project:

The main file we are going to view is controller.swift. It contains the following code: 

import UIKitclass ViewController: UIViewController { @IBOutlet weak var pictureImageView :UIImageView! ...

Get Machine Learning for Mobile now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.