API referenceVetraGlove ProC++

Capture quality

Capture & calibration

Current version · 2.0.0

Standalone capture quality session that evaluates 30-frame hand-pose windows collected by your application and returns quality feedback; capture control, sample storage, and calibration remain handled by CaptureSession and CalibrationSession. See Standalone capture quality check.

All types and functions below live in namespace qnbot and are available via <qnbot/glove.hpp> (or <qnbot/glove/quality.hpp>); online devices can also create a session via GloveDevice::create_capture_quality_session(). CaptureQualitySession is move-only and requires sequential access for one operator and one physical hand.

create_capture_quality_session()

Creates a standalone quality detector for a hand side and optional device model, suitable for playback, external input, or explicit model overrides without creating an Sdk, starting a device, or starting CaptureSession. Online devices should prefer GloveDevice::create_capture_quality_session().

Type

CaptureQualitySession create_capture_quality_session(Side side);
CaptureQualitySession create_capture_quality_session(
    Side side,
    CaptureQualityDeviceModel device_model);

Parameters

  • side: Required; Side::left or Side::right.
  • device_model: Optional; CaptureQualityDeviceModel (standard, hmp_mx, helix); the single-argument overload defaults to standard.

Returns

CaptureQualitySession.

Errors

  • InvalidArgumentError, UnavailableFeatureError.

CaptureQualitySession::required_sample_count()

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

Type

std::size_t CaptureQualitySession::required_sample_count() const;

Errors

  • ClosedHandleError.

CaptureQualitySession::assess_stage()

Evaluates one fresh, valid hand-pose window for a gesture stage. Normal gesture rejection is returned as feedback rather than thrown as an exception.

Type

CaptureQualityFeedback CaptureQualitySession::assess_stage(
    const std::string& stage_id,
    const std::vector<GloveHandPose>& window);

Parameters

  • stage_id: Required; one of the eight known gesture IDs (close, open, mcp90, mcp90_pip90, pinch_first, pinch_middle, pinch_ring, pinch_little). Assess close first to establish the session reference, then check other stages as needed.
  • window: Required; vector of GloveHandPose frames whose size equals required_sample_count(), collected from the same hand (local fingertip positions in meters and XYZW quaternions, preserving hand side, validity, and timing). Wrist-only data is not accepted.

Errors

  • InvalidArgumentError (unknown stage_id, wrong window size, mixed hand or session identity), ClosedHandleError, detector errors.

CaptureQualitySession::skip_stage()

Manually retains the latest rejected valid window. The returned feedback stays accepted == false, and the application records the manual decision separately. After retaining close, collect fresh windows for every dependent stage.

Type

void CaptureQualitySession::skip_stage(const std::string& stage_id);

Parameters

  • stage_id: Must match the stage ID of the latest rejected valid window.

Errors

  • InvalidArgumentError (does not match the latest rejected window), ClosedHandleError.

CaptureQualitySession::reset()

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

Type

void CaptureQualitySession::reset();

Errors

  • ClosedHandleError.

CaptureQualitySession::close()

Releases the detector session; repeated close() succeeds. Further calls throw ClosedHandleError.

Type

void CaptureQualitySession::close();