unreal.LensDistortionSolver

class unreal.LensDistortionSolver(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

Base 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:

Text

is_enabled() bool

Get the name of this solver class for displaying in the editor UI

Return type:

bool

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:

bool

solve(object_point_array, image_point_array, image_size, focal_length, image_center, camera_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:
Return type:

DistortionCalibrationResult