TensorFlow Tutorial Step 2: Incorporating PluginLibrary
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