latestCameraSample
Returns the most recent camera sample, if available....
Declaration
func latestCameraSample() -> (image: CVPixelBuffer, intrinsics: NSDKCameraIntrinsics, pose: NSDKCameraExtrinsics, orientation: NSDKScreenOrientation, timestamp: UInt64)?
Returns the most recent camera sample, if available.
- Returns: A tuple containing:
- image: A retained
CVPixelBufferrepresenting the captured image.- intrinsics: Camera intrinsic parameters for the image.
- pose: The pose (extrinsics) of the camera associated with the image.
- orientation: The device orientation of the camera associated with the image.
- timestamp: Camera timestamp in milliseconds.