unreal.LensDistortionSolver¶
- class unreal.LensDistortionSolver(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectBase lens distortion solver class that can be inherited from in Blueprints or Python
C++ Source:
Plugin: CameraCalibration
Module: CameraCalibrationEditor
File: CameraCalibrationSolver.h
- get_display_name() Text¶
Get the name of this solver class for displaying in the editor UI
- Return type:
- is_running() bool¶
Returns true if the solver is currently running, and false if it has been cancelled. The solver should call this in critical loops in order to respond to cancellation requests.
- Return type:
- solve(object_point_array, image_point_array, image_size, focal_length, image_center, distortion_parameters, camera_poses, target_poses, lens_model, pixel_aspect, solver_flags) DistortionCalibrationResult¶
Calibrate camera intrinsics and distortion from a set of input 3D-2D point correspondences and initial camera intrinsics guess.
- Parameters:
object_point_array (Array[ObjectPoints])
image_point_array (Array[ImagePoints])
image_size (IntPoint)
focal_length (Vector2D)
image_center (Vector2D)
pixel_aspect (double)
solver_flags (CalibrationFlags)
- Return type: