[][src]Function realsense_sys::rs2_run_tare_calibration_cpp

pub unsafe extern "C" fn rs2_run_tare_calibration_cpp(
    dev: *mut rs2_device,
    ground_truth_mm: f32,
    json_content: *const c_void,
    content_size: c_int,
    progress_callback: *mut rs2_update_progress_callback,
    timeout_ms: c_int,
    error: *mut *mut rs2_error
) -> *const rs2_raw_data_buffer

This will adjust camera absolute distance to flat target. User needs to enter the known ground truth. \param[in] ground_truth_mm Ground truth in mm must be between 2500 - 2000000 \param[in] json_content Json string to configure tare calibration parameters: { "average step count": 20, "step count": 20, "accuracy": 2, "scan parameter": 0, "data sampling": 0 } average step count - number of frames to average, must be between 1 - 30, default = 20 step count - max iteration steps, must be between 5 - 30, default = 10 accuracy - Subpixel accuracy level, value can be one of: Very high = 0 (0.025%), High = 1 (0.05%), Medium = 2 (0.1%), Low = 3 (0.2%), Default = Very high (0.025%), default is very high (0.025%) scan_parameter - value can be one of: Py scan (default) = 0, Rx scan = 1 data_sampling - value can be one of:polling data sampling = 0, interrupt data sampling = 1 if json is nullptr it will be ignored and calibration will use the default parameters \param[in] content_size Json string size if its 0 the json will be ignored and calibration will use the default parameters \param[in] callback Optional callback to get progress notifications \param[in] timeout_ms Timeout in ms (use 5000 msec unless instructed otherwise) \return New calibration table