Camera

class Camera : NSObject

Object representing the state of the camera. The precision of the camera properties depends on its calibration, so it’s recommended to use them when the Camera.isCalibrated value becomes true.

  • Progress of camera parameters estimation expressed in range [0..1]

    Declaration

    Swift

    var calibrationProgress: Float { get }
  • Camera frame size

    Declaration

    Swift

    var frameSize: ImageSize { get }
  • fov

    Vertical field of view expressed in radians

    Declaration

    Swift

    var fov: Float { get }
  • The ratio of width to height of the camera frame Aspect ratio is 0 when frame height is 0.

    Declaration

    Swift

    var aspectRatio: Float { get }
  • Roll of the camera in radians Expresses rotation around Y axis (goes from the right to the left of the vehicle). Camera pointing straight to the road will have roll = pi/2 radians (90 degrees).

    Declaration

    Swift

    var roll: Float { get }
  • Pitch of the camera in radians Expresses rotation around Z axis (goes from the bottom to the top of the vehicle). Camera pointing straight to the road will have pitch = 0 radians.

    Declaration

    Swift

    var pitch: Float { get }
  • yaw

    Yaw of the camera in radians Expresses rotation around X axis (goes from the rear to the front of the vehicle). Camera pointing straight to the road will have yaw = 0 radians.

    Declaration

    Swift

    var yaw: Float { get }
  • Height above the road surface in meters

    Declaration

    Swift

    var height: Float { get }
  • Returns true when calibrationProgress reaches 1, otherwise - false.

    Declaration

    Swift

    var isCalibrated: Bool { get }