![]() We’ll try to enable those that are closer to being finished, however, to show you how they’ll look in case that they do ship. Keep in mind that Google may or may not ever ship these features, and our interpretation of what they are may be imperfect. When we decompile these files (called APKs, in the case of Android apps), we’re able to see various lines of code within that hint at possible future features. Here is an example:Īs usual, you can find the code on my github page.Google is preparing to shut down the dedicated Street View app on Android, keeping the feature in Google Maps.Ībout APK Insight: In this “APK Insight” post, we’ve decompiled the latest version of an application that Google uploaded to the Play Store. I have written a small JavaScript library that fetches the data, decompresses it and computes a depth map from the planes. The geometry of the planes and the map containing the index of the plane at each pixel can be retrieved as Base64-encoded and zlib-compressed data by requesting the following URL: ![]() Therefore, in order to calculate the depth at a pixel, one has to determine the intersection point of a ray starting at the center of the camera and the plane corresponding to the pixel. A plane is given by its normal vector and its distance to the camera. ![]() Each pixel in a grid of 512×256 pixels references one of several planes. The depth information is stored in a slightly complicated way, probably to save bandwidth. As far as I know, there is no official documentation of the format, but there are some open source projects which contain code showing how to interpret the data. Besides high-resolution images, Google Street View also provides a depth map for each panorama, containing the distance from the camera to the nearest surface at each pixel.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |