6.8.20. setDepthCallback
Function
Register the callback method executed during depth information acquisition.
Format
void setDepthCallback(
Camera.DepthCallback cb
)
Parameter
Model name
Camera.DepthCallback
cb
Return value
None.
Usage procedure
// App developer applies processing when acquiring depth information
private Camera.DepthCallback mDepthCB = new Camera.DepthCallback() {
@Override
public void onDepthMap(byte data[], Camera camera) {
}
};
//Register the callback method at the optimal time
camera.setDepthCallback(mDepthCB);
・・・・・・
// When you remove the callback method, register null
camera.setDepthCallback(null);
MOVERIO Pro Developer's Guide (Rev.1.4)
in/out Explanation
in
Callback object that processes depth information.
Log.d(TAG, "Save depth map");
synchronized (lockObject) {
saveDepthMap(data);
}
102