How to do it...

We proceed with the recipe as follows:

  1. The best way to install the packages is to use the pre-built APK which is created every night. Point your browser to https://ci.TensorFlow.org/view/Nightly/job/nightly-android/ and download TensorFlow_demo.apk as shown in the following screenshot:
  1. Install the applications on your device. In my example, I will use the Pixel XL emulated device available in Android Studio. This is a terminal device emulated directly from inside Android Studio. The command adb devices lists all the attached devices. In this case, I have an emulator for the Pixel XL and i can install the TensorFlow_demo apk.
adb devices
List of devices attached
emulator-5554 device
adb install -r TensorFlow_demo.apk

After the installation, the emulator will have a new set of TensorFlow applications available for use as shown in the following figure.

  1. Run your favorite application. For instance, the following image is an example of TF Stylize, used for restyling the camera preview image to that of a number of different art styles via Transfer Learning:

The following image is an example of TF Speech (remember to activate the microphone for the emulator):

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset