ToF Camera Manager
Connect to the ToF camera on the Lumepad
TofCameraManager
is a system service manager for detecting, characterizing, and connecting to ToF camera. Developers can register listeners to listen for ToF frames when they become available. Due to firmware and hardware limitations, the current output format is a Bitmap.
Set up your Environment
Follow the steps mentioned in the Getting Started guide to set up the Camera SDK in your project.
Listening for ToF Frames
To listen for ToF frames, you need to instantiate an object of the ToFCameraManager and pass in the Context
and TofCameraManager.OnTofImageAvailableListener
as parameters.
Opening the ToF Camera
To open the ToF camera, you can call openCamera()
using the TofCameraManager