ใช้กล้องของอุปกรณ์เพื่อจับภาพความเป็นจริง
คู่มือเฉพาะแพลตฟอร์ม
อุปกรณ์ของผู้ใช้มีกล้อง (มักจะเป็นทั้งด้านหน้าและหลัง) และเซ็นเซอร์หลายตัว เช่น ตัวตรวจวัดความเร่ง ที่ให้ข้อมูลแก่แอป AR เพื่อตีความโลกแห่งความเป็นจริง กล้องเองอาจมีเซ็นเซอร์ตรวจจับความลึกและสามารถระบุระยะทาง ขนาด และข้อมูลอื่นๆ ที่เป็นประโยชน์เกี่ยวกับเป้าหมายที่ตรวจพบ
สําหรับแอป AR คุณต้องกําหนดค่ากล้องเพื่อให้ได้ประสิทธิภาพที่ดีที่สุด นอกจากนี้ คุณยังใช้ข้อมูลเมตาของรูปภาพจากกล้อง การบัฟเฟอร์เฟรม และการเข้าถึงกล้องที่แชร์เพื่อปรับแต่งประสิทธิภาพได้ด้วย คำแนะนำด้านบนจะอธิบายความสามารถบางส่วนของกล้อง AR ในแต่ละแพลตฟอร์ม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-09 UTC
[null,null,["อัปเดตล่าสุด 2024-11-09 UTC"],[[["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"]]