DeviceFrameSourceCamera Class¶
Description¶
Device camera to provide camera frame data in frame source.
Classes¶
public class DeviceFrameSourceCamera.CameraExtrinsics |
Camera extrinsics, it is a matrix usually calibrated to explain physical offset of camera from device/head pose origin. |
Properties¶
Extrinsics¶
- C#
public DeviceFrameSourceCamera.CameraExtrinsics Extrinsics { get; }
Camera extrinsics, it is usually a calibrated matrix. The axes should match with DeviceFrameSourceCamera.AxisSystem definition. If extrinsics axis definition is different with your pose axis definition or they do not match with DeviceFrameSourceCamera.AxisSystem , you must do axis conversion first before you set this value.
AxisSystem¶
- C#
public AxisSystemType AxisSystem { get; }
Axis system used by head/camera pose and camera extrinsics. The same axis system should be used by all matrixes. Axis conversion should be taken over before you send data into EasyAR if your data does not match known axis system types.
CameraType¶
- C#
public CameraDeviceType CameraType { get; }
Camera device type.
CameraOrientation¶
- C#
public int CameraOrientation { get; }
Angles rotation required to rotate clockwise and display camera image on device with natural orientation. The range is [0, 360).
FrameSize¶
- C#
public Vector2Int FrameSize { get; }
The size of image.
FrameRateRange¶
- C#
public Vector2 FrameRateRange { get; }
The frame rate range. Define x is lower bound and y is upper bound of the frame rate range.
Methods¶
.ctor¶
- C#
public DeviceFrameSourceCamera( CameraDeviceType cameraType, int cameraOrientation, Vector2Int frameSize, Vector2 frameRateRange, DeviceFrameSourceCamera.CameraExtrinsics extrinsics, AxisSystemType axisSystem)
Set value according to the description of each property.