View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Videos

Abrir menú Cerrar menú
  • Colecciones
  • Todos los videos
  • Información

Más videos

  • Información
  • Código
  • Meet Object Capture for iOS

    Discover how you can offer an end-to-end Object Capture experience directly in your iOS apps to help people turn their objects into ready-to-use 3D models. Learn how you can create a fully automated Object Capture scan flow with our sample app and how you can assist people in automatically capturing the best content for their model. We'll also discuss LiDAR data and provide best practices for scanning objects.

    Recursos

      • Video HD
      • Video SD

    Videos relacionados

    WWDC23

    • Meet Reality Composer Pro
  • Buscar este video…
    • 10:03 - Instantiating ObjectCaptureSession

      import RealityKit
      import SwiftUI 
      
      var session = ObjectCaptureSession()
    • 10:25 - Starting the session

      var configuration = ObjectCaptureSession.Configuration()
      configuration.checkpointDirectory = getDocumentsDir().appendingPathComponent("Snapshots/")
      
      session.start(imagesDirectory: getDocumentsDir().appendingPathComponent("Images/"),
                    configuration: configuration)
    • 10:50 - Creating ObjectCaptureView

      import RealityKit
      import SwiftUI
      
      struct CapturePrimaryView: View {
          var body: some View {
              ZStack {
                  ObjectCaptureView(session: session)
              }
          }
      }
    • 11:20 - Transition to detecting state

      var body: some View {
          ZStack {
              ObjectCaptureView(session: session)
              if case .ready = session.state {
                  CreateButton(label: "Continue") { 
                      session.startDetecting() 
                  }
              }
          }
      }
    • 11:36 - Showing ObjectCaptureView

      var body: some View {
          ZStack {
              ObjectCaptureView(session: session)
          }
      }
    • 12:04 - Transition to capturing state

      var body: some View {
          ZStack {
              ObjectCaptureView(session: session)
              if case .ready = session.state {
                  CreateButton(label: "Continue") { 
                      session.startDetecting()
                  }
              } else if case .detecting = session.state {
                  CreateButton(label: "Start Capture") { 
                      session.startCapturing()
                  }
              }
          }
      }
    • 12:27 - Showing ObjectCaptureView

      var body: some View {
          ZStack {
              ObjectCaptureView(session: session)
          }
      }
    • 12:50 - Completed scan pass

      var body: some View {
          if session.userCompletedScanPass {
              VStack {
              }
          } else {
              ZStack {
                  ObjectCaptureView(session: session)
              }
          }
      }
    • 14:03 - Transition to finishing state

      var body: some View {
          if session.userCompletedScanPass {
              VStack {
                  CreateButton(label: "Finish") {
                      session.finish() 
                  }
              }
         } else {
              ZStack {
                  ObjectCaptureView(session: session)
              }
          }
      }
    • 15:00 - Point cloud view

      var body: some View {
          if session.userCompletedScanPass {
              VStack {
                  ObjectCapturePointCloudView(session: session)
                  CreateButton(label: "Finish") {
                      session.finish() 
                  }
              }
          } else {    
              ZStack {
                  ObjectCaptureView(session: session)
              }
          }
      }
    • 15:50 - Reconstruction API

      var body: some View {
          ReconstructionProgressView()
              .task {
                  var configuration = PhotogrammetrySession.Configuration()
                  configuration.checkpointDirectory = getDocumentsDir()
                      .appendingPathComponent("Snapshots/")
                  let session = try PhotogrammetrySession(
                      input: getDocumentsDir().appendingPathComponent("Images/"),
                      configuration: configuration)
                  try session.process(requests: [ 
                      .modelFile(url: getDocumentsDir().appendingPathComponent("model.usdz")) 
                  ])
                  for try await output in session.outputs {
                      switch output {
                          case .processingComplete:
                              handleComplete()
                              // Handle other Output messages here.
                      }}}}
    • 17:02 - Capturing for Mac

      // Capturing for Mac
      
      var configuration = ObjectCaptureSession.Configuration()
      configuration.isOverCaptureEnabled = true
      
      session.start(imagesDirectory: getDocumentsDir().appendingPathComponent("Images/"),
                    configuration: configuration)
    • 18:40 - Pose output

      // Pose output
      
      try session.process(requests: [ 
          .poses 
          .modelFile(url: modelURL),
      ])
      for try await output in session.outputs {
          switch output {
          case .poses(let poses):
              handlePoses(poses)
          case .processingComplete:
              handleComplete()
          }
      }

Developer Footer

  • Videos
  • WWDC23
  • Meet Object Capture for iOS
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines