6.8.19. onDepthMap
Function
The process executed is written during depth information acquisition.
Format
void onDepthMap(
byte[] data,
Camera camera
)
Parameter
Model name
byte[] data
Camera
camera
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);
MOVERIO Pro Developer's Guide (Rev.1.4)
in/out Explanation
in
Depth information. VGA size, RAW 8 format,
300 K byte data.
in
Camera service object
Log.d(TAG, "Save depth map");
synchronized (lockObject) {
saveDepthMap(data);
}
100