Capture Image

Single Capturing

Single capturing is synchronous operation. It is very easy.

UINT32 objectHandle = theta.initiateCapture();  // this is blocking

objectHandle is pointer for captured image. Download image by getObject method using objectHandle.

Time Lapse Capturing

Time lapse capturing is asynchronous operation.

theta.setTimelapseInterval(5000);   // 5000-3600000 in msec
theta.setTimelapseNumber(2);        // Capture 2 times
theta.setStillCaptureMode(StillCaptureMode.TIME_LAPSE);
theta.initiateOpenCapture();        // this is non-blocking

See Event for details.

theta.setTimelapseInterval(5000);   // 5000-3600000 in msec
theta.setTimelapseNumber(0);        // 0 means unlimited.
theta.setStillCaptureMode(StillCaptureMode.TIME_LAPSE);
theta.initiateOpenCapture();        // this is non-blocking
...
theta.terminateOpenCapture();

You have to call terminateOpenCapture in yourself if you specify 0 as TimeLapseNumber. Then onCaptureComplete event doesn't happen.

Video Capturing

Video capturing is available for RICOH THETA m15. You can get model name by getDeviceInfo method.

This operation is asynchronous.

theta.initiateOpenCapture();        // this is non-blocking
...
theta.terminateOpenCapture();

See Event for details.