unreal.MagicLeapCVCameraFunctionLibrary

class unreal.MagicLeapCVCameraFunctionLibrary(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

The MagicLeapCVCameraLibrary provides access to and maintains state for computer vision camera capture functionality. The connection to the device’s camera is managed internally. Users of this function library are able to retrieve various computer vision data for processing.

C++ Source:

  • Plugin: MagicLeapCamera

  • Module: MagicLeapCVCamera

  • File: MagicLeapCVCameraFunctionLibrary.h

classmethod disable_async(on_disable)bool

Closes the computer vision stream.

Parameters

on_disable (MagicLeapCVCameraDisable) –

Returns

Return type

bool

classmethod enable_async(on_enable)bool

Initializes the computer vision stream.

Parameters

on_enable (MagicLeapCVCameraEnable) –

Returns

Return type

bool

classmethod get_camera_output()MagicLeapCameraOutput or None

Gets the latest transform of the camera.

Returns

True if the transform was successfully retrieved, false otherwise.

out_camera_output (MagicLeapCameraOutput):

Return type

MagicLeapCameraOutput or None

classmethod get_frame_pose()Transform or None

Gets the latest transform of the camera.

Returns

True if the transform was successfully retrieved, false otherwise.

out_frame_pose (Transform): Contains the returned transform of the camera if the call is successful.

Return type

Transform or None

classmethod get_intrinsic_calibration_parameters()MagicLeapCVCameraIntrinsicCalibrationParameters or None

Gets the intrinsic calibration parameters of the camera. Requires the camera to be connected.

Returns

True if the parameters were successfully retrieved, false otherwise.

out_params (MagicLeapCVCameraIntrinsicCalibrationParameters):

Return type

MagicLeapCVCameraIntrinsicCalibrationParameters or None