TensorFlow Tutorial Step 2: Incorporating PluginLibrary

Craig Oda
theta360.guide
Published in
2 min readNov 13, 2018

Use the RICOH THETA V pluginlibrary to run TensorFlow inside the camera

Starting code tag WS_START_STEP2

Overview

  • Modify code to work with RICOH THETA Camera API
  • Get the RICOH THETA camera LEDs, camera buttons and specialized camera features to work

Tutorial Steps

Step 1: Import and incorporate pluginlibrary

import pluginlibrary from the SDK. (“File” -> “New” -> “Import Module..”)

Add string in “setting.gradle” include ':pluginlibrary'

Sync (“File” — “Sync Project with Gradle Files”)

Step 2: Change inheritance of CameraActivity Class and SpeechActivity Class from AppCompatActivity to PluginActivity

  • You will see the following notice: WARNING: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation” and ‘api’.
  • Go into build.gradle
  • compile project(path: ‘:pluginlibrary’)
  • implementation project(path: ‘pluginlibrary’)
  • import KeyCallback, LedTarget class definitions

Step 3: Follow the comments in the code for Step 2

Reference

Related Code

Next Step

Step 3: Detect Objects and Take Picture

--

--

Craig Oda
theta360.guide

open source advocate, writer, Flutter developer, father, husband, fly fisherman, surfer