ObjectCaptureSession
A session object that monitors and controls image capture for photogrammetry.
Declaration
@MainActor class ObjectCaptureSessionOverview
An ObjectCaptureSession is used together with an ObjectCaptureView to present a view that assists in capturing images of an object for reconstruction of a 3D model by using a PhotogrammetrySession.
A capture session contains functions for starting and advancing the capture session through a state machine that controls the image capture process. Your app can also observe several properties of the capture session to determine the current state of the capture process.
Once a session enters the .completed state, your app can transfer the images to a Mac or use them locally on the iOS device for use in object reconstruction using PhotogrammetrySession. Model reconstruction is a separate phase which this session does not directly monitor or control.
Topics
Creating a session
Checking availability
Configuring a session
Monitoring the session
Controlling the session
Structures
Instance Properties
cameraTrackingUpdatescanRequestImageCapturecanRequestImageCaptureUpdatesconfigurationfeedbackUpdatesisAutoCaptureEnabledisPausedUpdatesmaximumNumberOfInputImagesnumberOfShotsTakennumberOfShotsTakenUpdatesshouldPlayHapticsstateUpdatesuserCompletedScanPassuserCompletedScanPassUpdates
Instance Methods
See Also
Model creation
Capturing photographs for RealityKit Object CaptureCreating 3D objects from photographsScanning objects using Object CaptureBuilding an object reconstruction appCreating a photogrammetry command-line appUsing object capture assets in RealityKitPhotogrammetrySessionPhotogrammetrySampleObjectCaptureViewObjectCapturePointCloudView