pyorc.CameraConfig.set_intrinsic#

CameraConfig.set_intrinsic(camera_matrix: Optional[List[List]] = None, dist_coeffs: Optional[List[List]] = None, lens_pars: Optional[Dict[str, float]] = None)[source]#

Set lens and distortion parameters.

If not provided, they are derived by optimizing pnp fitting together with optimizing the focal length.

Parameters:
  • camera_matrix (Optional[List[List]]) – A defined camera matrix to set as intrinsic parameters. If not provided, it will use default values or those derived from ground control points (GCPs) if available.

  • dist_coeffs (Optional[List[List]]) – Distortion coefficients to be used for the camera. If not provided, it will use default values or those derived from GCPs if available.

  • lens_pars (Optional[Dict[str, float]]) – Lens parameters to be set. These will override any default settings or those derived from GCPs if provided.