Using TensorFlow iOS libraries in an app

To use the libraries in your own app, do the following:

  1. In Xcode, click File | New | Project…, select Single View App, then enter TFObjectDetectionAPI as Product Name and choose Objective-C for Language (if you want to use Swift, see the previous chapter on how to add TensorFlow to a Swift-based iOS app and make the necessary changes pictured here), then select the location for the project and hit Create.
  2. In the TFObjectDetectionAPI project, click the PROJECT Name and under Build Settings, hit + and Add User-Defined Setting, then enter TENSORFLOW_ROOT for the path of your TensorFlow source root ($HOME/tensorflow-1.4 for example), as shown in Figure 3.4. This user-defined setting will be used in other ...

Get Intelligent Mobile Projects with TensorFlow 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.