使用裝置與相機鏡頭拍攝實景
平台專屬指南
使用者的裝置具有攝影機 (通常是前後鏡頭) 和各種感應器 (例如加速度計),可為 AR 應用程式提供資料,以便解讀現實世界。攝影機本身可能有深度感應器,可判斷所偵測目標的範圍、尺寸和其他實用資料。
針對 AR 應用程式,您可以設定相機以獲得最佳效能。您也可以使用相機圖像中繼資料、影格緩衝區和共用相機存取權來調整效能。上述指南說明瞭各平台的部分擴增實境相機功能。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-28 (世界標準時間)。
[null,null,["上次更新時間:2025-02-28 (世界標準時間)。"],[[["Access comprehensive guides for configuring and optimizing camera usage in your AR applications across Android, Android NDK, Unity, and Unreal Engine platforms."],["Leverage device cameras and sensors, including depth sensors, to capture real-world data for enhanced AR experiences."],["Fine-tune camera performance by adjusting configurations, utilizing image metadata, implementing frame buffering, and managing shared camera access."],["Explore platform-specific documentation and resources to effectively integrate AR camera capabilities into your app development workflow."],["Utilize the provided links to access detailed guides on specific camera features and functionalities for each supported platform."]]],["AR applications can utilize device camera data and sensors. Key actions include configuring camera settings for optimal AR performance, accessing camera image metadata, buffering camera frames, and sharing camera access. These functionalities are detailed in platform-specific guides for Android (Kotlin/Java), Android NDK (C), Unity (AR Foundation), and Unreal Engine. Camera capabilities include detecting range, dimensions, and other data about real-world targets, which helps to interpret the real world.\n"]]