Skip to content

IntrinsicOptions

SUMMARY

IntrinsicOptions tunes the corner detector and cv::calibrateCamera solve used by IntrinsicCalibrator, EyeInHandCalibrator, and MultiCameraCalibrator. Defaults match a standard cv::calibrateCamera run.

The Skill

python
from telekinesis.axon import IntrinsicOptions

The Code

python
from telekinesis.axon import IntrinsicCalibrator, IntrinsicOptions
from telekinesis.axon.targets import CharucoTarget

target = CharucoTarget(squares_x=6, squares_y=9, square_length=0.012, marker_length=0.009)

options = IntrinsicOptions()
options.per_view_error_threshold = 0.8

calibrator = IntrinsicCalibrator(target, options)

Initialization

Constructed with no arguments, every field is set as an attribute after construction. Defaults match a standard cv::calibrateCamera run.

FieldTypeDefaultDescription
criteriaTermCriteriaEPS + MAX_ITER, 30, 0.001Termination criteria for sub-pixel refinement and RO calibration.
chessboard_corner_detectorstr"Default""Default" (findChessboardCorners) or "Sector Based" (findChessboardCornersSB). Chessboard targets only.
chessboard_flagsint0Bitmask for the chessboard corner finder. Chessboard targets only.
sub_pixel_detection_window_sizeint11cornerSubPix window size (chessboard "Default" detector only).
sub_pixel_detection_zero_zone_sizeint-1cornerSubPix zero-zone size; -1 disables the dead zone.
calibrate_camera_methodstr"Default""Default" (calibrateCameraExtended) or "Release Object" (calibrateCameraROExtended).
calibrate_camera_flagsint0cv::CALIB_* bitmask for calibrateCamera*.
index_of_fixed_3d_pointint0iFixedPoint for the Release Object method.
intrinsic_matrix_guessndarray | NoneNoneInitial K; required when CALIB_USE_INTRINSIC_GUESS is set.
distortion_coefficients_guessndarray | NoneNoneInitial distortion coefficients.
per_view_error_thresholdfloat1.0Views with a per-view reprojection error above this (px) are excluded from low_view_error_indices.