Saiba mais sobre a API Semantics para o SDK do Android, que fornece informações semânticas para complementar as geométricas e melhorar a compreensão do cenário.
[null,null,[],[[["The Depth API enables more realistic AR experiences by letting your app understand the size and shape of real-world objects using depth images."],["This API powers features like object occlusion, environmental effects, depth-of-field blurring, improved physics, and more accurate hit-tests."],["Depth data is generated from device motion and potentially hardware sensors like ToF, providing 3D scene understanding with varying levels of accuracy based on distance and surface features."],["Devices require sufficient processing power and manual Depth API activation, with compatibility varying based on hardware capabilities."],["Developers can explore the ARCore Depth Lab for practical examples and integrate the API across Android, Android NDK, Unity, and Unreal Engine platforms."]]],["The Scene Semantics API provides real-time semantic information for outdoor scenes. Developers can enable the API by checking device support and setting the semantic mode in an ARCore session. Once enabled, the semantic image, a pixel-by-pixel label map, and a confidence image, providing corresponding confidence values, can be acquired using `acquireSemanticImage()` and `acquireSemanticConfidenceImage()`. The fraction of pixels belonging to a specific label can be queried using `getSemanticLabelFraction()`. These outputs are typically available after 1-3 frames.\n"]]