robertyoung2 / sidewalk-panorama-tools

Collection of tools for fetching and processing Street View imagery, adapted from code by @kotarohara
1 stars 0 forks source link

Bug: Some Pano Images are too large/have black borders surrounding them #1

Closed robertyoung2 closed 3 years ago

robertyoung2 commented 3 years ago

Implemented simple logic to check the max extremity of the panorama image.

First, the boundary past the default image size of images of width 13,312 is grabbed: https://github.com/robertyoung2/sidewalk-panorama-tools/blob/8d3d629ae7bc3cd2c7f91abd89a7e37bbcf98e75/DownloadRunner.py#L294

Then a check is carried out to see if this image tile is valid (not black). If it is, set the dimensions to the large size, else use the default size: https://github.com/robertyoung2/sidewalk-panorama-tools/blob/8d3d629ae7bc3cd2c7f91abd89a7e37bbcf98e75/DownloadRunner.py#L312