Overview
Android Java SDK: Capture & calibration overview
Overview
Capture and calibration are two consecutive stages: complete capture as required by the algorithm, then start calibration with the completed capture session. Skeleton or retargeting output depends on both stages.
Choose a mode
| Need | Setting |
|---|---|
| Let the SDK orchestrate capture and calibration | CalibrationMode.AUTO + CaptureInteractionMode.AUTO_TERMINAL |
| Let the app display capture prompts and buttons | CaptureInteractionMode.EXTERNAL |
| Control capture and calibration as separate stages | device.start(CalibrationMode.MANUAL) + explicit CaptureSession / CalibrationSession |
| Skip calibration | CalibrationMode.NONE |
| Check gesture posture quality independently | Standalone CaptureQualitySession, without changing existing capture or calibration calls |
Flow
- Select the target and build
AlgorithmsConfig, passingCaptureConfig/CalibrationConfigas needed. - Start the device and runtime.
- Show or respond to capture prompts according to the selected mode, then complete capture.
- Start calibration with the completed
CaptureSessionand wait for results. - Check
CalibrationReadinessor output state before reading skeleton / retargeting data.
Capture
Capture prompts are controlled by CaptureConfig. When the app displays prompts, pass new CaptureConfig(CaptureInteractionMode.EXTERNAL, false, operatorId) in AlgorithmsConfig; subscribe to device.captureProgress() for the current stage and submit only operations allowed by allowedOperations. See Capture.
Calibration
After capture completes, call device.startCalibration(...) with the same CaptureSession and wait for waitForResults() on a worker thread. On failure, show the current job error, correct the pose, input or delivery, and retry. See Calibration.
Configuration
AlgorithmsConfig(calibration, capture) takes both CalibrationConfig and CaptureConfig; null uses the matching defaults. The automatic workflow is driven by the start policy; use CalibrationMode.MANUAL and explicit sessions when the app needs separate control.