डिवाइस के कैमरे के जियोस्पेशियल ट्रांसफ़ॉर्म को हासिल करें
Geospatial API का इस्तेमाल करने के लिए, अपने ऐप्लिकेशन की सेटिंग कॉन्फ़िगर करने के बाद, डिवाइस के कैमरे का GAREarth.cameraGeospatialTransform
ऐक्सेस किया जा सकता है. GAREarth
ऑब्जेक्ट में मैनेज किए जाने वाले इस ट्रांसफ़ॉर्म में यह जानकारी शामिल होती है:
- जगह की जानकारी, अक्षांश और देशांतर में दी गई हो
- ऊंचाई
- ईयूएस निर्देशांक सिस्टम में, उपयोगकर्ता की ओर की दिशा का अनुमानित ओरिएंटेशन. इसमें X+ पूर्व की ओर, Y+ ऊपर की ओर, और Z+ दक्षिण की ओर है
सटीक होने के लिए, पोज़ को अडजस्ट करें
जब डिवाइस डिफ़ॉल्ट ओरिएंटेशन में सीधा होता है, तो एआर ट्रैकिंग के साथ अपने-आप अलाइन होने की वजह से पिच (X+) और रोल (Z+) ऐंगल सटीक होते हैं. हालांकि, जगह पर वीपीएस डेटा की उपलब्धता और समय के हिसाब से, याव (Y+) ऐंगल अलग-अलग हो सकते हैं. सटीक जानकारी देने के लिए, आपके ऐप्लिकेशन को बदलाव करने पड़ सकते हैं.
GARGeospatialTransform.orientationYawAccuracy
, GARGeospatialTransform.eastUpSouthQTarget
के लिए अनिश्चितता का दायरा दिखाता है. इसे डिग्री में मेज़र किया जाता है. यह वैल्यू, लोकल-लेवल याव (Y+) ऐंगल के अनुमान के स्टैंडर्ड डेविएशन को दिखाती है.
आगे क्या करना है
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया."],[[["Access the device camera's geospatial transform to get the user's location, altitude, and orientation in the real world."],["Adjust the yaw angle for accuracy as it can vary due to VPS data availability and local conditions."],["The `GARGeospatialTransform.orientationYawAccuracy` property provides the uncertainty radius for the yaw angle estimate."],["Use the geospatial data to place anchors and interact with the real-world environment through your AR app."]]],["After configuring the Geospatial API, the `GAREarth.cameraGeospatialTransform` provides location (latitude/longitude), altitude, and device orientation. Orientation uses the EUS coordinate system (X+ east, Y+ up, Z+ south). While pitch and roll are generally accurate, yaw can vary. `GARGeospatialTransform.orientationYawAccuracy` indicates yaw uncertainty. To proceed, use the data to place a Geospatial anchor, by obtaining the anchor's pose.\n"]]