Class

ARCamera

Information about the camera position and imaging characteristics for a given frame.

Declaration

@interface ARCamera : NSObject

Overview

You get camera information from the camera property of each ARFrame ARKit delivers.

Topics

Handling Tracking Status

trackingState

The general quality of position tracking available when the camera captured a frame.

ARTrackingState

Possible values for position tracking quality.

trackingStateReason

A possible diagnosis for limited position tracking quality as of when the camera captured a frame.

ARTrackingStateReason

Possible causes for limited position tracking quality.

Examining Camera Geometry

transform

The position and orientation of the camera in world coordinate space.

eulerAngles

The orientation of the camera, expressed as roll, pitch, and yaw values.

Examining Imaging Parameters

imageResolution

The width and height, in pixels, of the captured camera image.

intrinsics

A matrix that converts between the 2D camera plane and 3D world coordinate space.

Applying Camera Geometry

projectionMatrix

A transform matrix appropriate for rendering 3D content to match the image captured by the camera.

- projectionMatrixForOrientation:viewportSize:zNear:zFar:

Returns a transform matrix appropriate for rendering 3D content to match the image captured by the camera, using the specified parameters.

- viewMatrixForOrientation:

Returns a transform matrix for converting from world space to camera space.

- projectPoint:orientation:viewportSize:

Returns the projection of a point from the 3D world space detected by ARKit into the 2D space of a view rendering the scene.

- unprojectPoint:ontoPlaneWithTransform:orientation:viewportSize:

Returns the projection of a point from the 2D space of a view rendering the scene onto a plane in the 3D world space detected by ARKit.

Applying Motion Blur

exposureDuration

A value you use to effect motion blur when rendering your app's virtual content.

Applying Post-Processed Lighting

exposureOffset

A value you supply to your custom renderer to light your scene.

Relationships

Inherits From

Conforms To

See Also

Camera

Occluding Virtual Content with People

Enable people to cover your app’s virtual content where ARKit recognizes people in the camera feed.

ARFrame

A video image captured as part of a session with position tracking information.