API referenceVetraGlove ProJava (Android)

Capture quality

Capture & calibration

Current version · 2.0.0

Standalone capture quality session that evaluates 30-frame hand-pose windows collected by your app and returns quality feedback; capture control, sample storage, and calibration remain handled by CaptureSession and CalibrationSession. Call Sdk.initialize(context) on a worker thread before calling the standalone static factory without constructing Sdk. Use one instance sequentially and release it with try-with-resources or close() (AutoCloseable). See Standalone capture quality check.

CaptureQualitySession

com.qnbot.sdk.glove.capture.CaptureQualitySession

CaptureQualitySession.createCaptureQualitySession

static CaptureQualitySession createCaptureQualitySession(Side side)

static CaptureQualitySession createCaptureQualitySession(Side side, CaptureQualityDeviceModel deviceModel)

After Sdk.initialize(context) runs on a worker thread, creates a standalone detector from a hand side and optional device model without creating an Sdk or CaptureSession; the single-argument overload defaults to CaptureQualityDeviceModel.STANDARD. Online devices should prefer GloveDevice.createCaptureQualitySession().

CaptureQualitySession.requiredSampleCount

long requiredSampleCount()

Returns the complete window size required by the bundled detector (currently 30 frames).

CaptureQualitySession.assessStage

CaptureQualityFeedback assessStage(String stageId, List<GloveHandPose> window)

Evaluates one fresh, valid hand-pose window for a gesture stage; assess close first to establish the reference. Normal gesture rejection returns CaptureQualityFeedback with accepted == false, while input errors, closed sessions, or detector failures throw exceptions.

CaptureQualitySession.skipStage

void skipStage(String stageId)

Manually retains the latest rejected valid window. The returned feedback stays accepted == false; after retaining close, collect fresh windows for every dependent stage.

CaptureQualitySession.reset

void reset()

Clears the detector reference and input identity. Call before switching operator or glove or starting a new check round.

CaptureQualitySession.close

void close()

Releases native resources; repeated close() succeeds. Further calls throw ClosedHandleException.