unreal.LensInfo

class unreal.LensInfo(lens_model_name: str = '', lens_serial_number: str = '', lens_model: Class = Ellipsis, sensor_dimensions: Vector2D = Ellipsis, image_dimensions: IntPoint = Ellipsis, squeeze_factor: float = 0.0)

Bases: StructBase

Information about the lens rig

C++ Source:

  • Plugin: CameraCalibrationCore

  • Module: CameraCalibrationCore

  • File: LensData.h

Editor Properties: (see get_editor_property/set_editor_property)

  • image_dimensions (IntPoint): [Read-Write] Resolution of the original footage that was captured by the camera (not necessarily the resolution of the media source). For example, the original footage might have been 4320x1746, but to transmit that image over SDI, it might have been scaled and fit into a 4096x2160 frame. In this case, the “Image Resolution” should be set to 4320x1746, while the “Media Resolution” will read 4096x2160.

  • lens_model (type(Class)): [Read-Write] Model of the lens (spherical, anamorphic, etc…)

  • lens_model_name (str): [Read-Write] Model name of the lens

  • lens_serial_number (str): [Read-Write] Serial number of the lens

  • sensor_dimensions (Vector2D): [Read-Write] Width and height of the calibrated camera’s sensor, in millimeters

  • squeeze_factor (float): [Read-Write] Squeeze Factor (or Pixel Aspect) for anamorphic lenses. Spherical Lenses should keep this default to 1.0f

property image_dimensions: IntPoint

[Read-Write] Resolution of the original footage that was captured by the camera (not necessarily the resolution of the media source). For example, the original footage might have been 4320x1746, but to transmit that image over SDI, it might have been scaled and fit into a 4096x2160 frame. In this case, the “Image Resolution” should be set to 4320x1746, while the “Media Resolution” will read 4096x2160.

Type:

(IntPoint)

property lens_model: Class

[Read-Write] Model of the lens (spherical, anamorphic, etc…)

Type:

(type(Class))

property lens_model_name: str

[Read-Write] Model name of the lens

Type:

(str)

property lens_serial_number: str

[Read-Write] Serial number of the lens

Type:

(str)

property sensor_dimensions: Vector2D

[Read-Write] Width and height of the calibrated camera’s sensor, in millimeters

Type:

(Vector2D)

property squeeze_factor: float

[Read-Write] Squeeze Factor (or Pixel Aspect) for anamorphic lenses. Spherical Lenses should keep this default to 1.0f

Type:

(float)