| Streetscape-class | R Documentation |
The output of strview_search family functions is constructed in this data format - A specialized data frame for streetscape package for initializing the object with streetscape data and extracting and decoding segmentation information of streetscape dataframe.
dataA data frame containing metadata of Mapillary street view images
epsgA numeric epsg code
decodeDetection()Regenerate a dataframe with decoded segmentation. 'detections' column will be updated and a new column 'segmentation' will be added.
download_data(path, items)Download street view images (and segmentations in sf format if applicable)
get_mask(index)Convert the semantic segmentation of a street view image from the StreetscapeDataFrame into sf polygons
gvi(level)Calculate green view index (GVI) for each collected image by segmenting green pixels and quantifing the percentage in street view images. This method adds a new column of greeness percetage to the dataframe
mapPreview(maptype = "meta", fields = c())Plot data points in an ineractive map view
decodeDetection()scdataframe$decodeDetection()
gvi()scdataframe$gvi(level = 1)
levelnumeric, indicating the resolution level of images for calculating the green view index. 1 - the 256px wide thumbnail; 2 - the 1024px wide thumbnail; 3 - the 2048px wide thumbnail; 4 - the original wide thumbnail. The default is level = 1
get_mask()scdataframe$get_mask(index = 1)
indexnumeric, the row index of the dataframe of StreetscapeDataFrame class
mapPreview()scdataframe$mapPreview(maptype = 'meta')
maptypecharacter or character, specifying what type of information to be mapped: 'meta' - image meta, 'seg' - segmentation proportion, and 'gvi' - GVI".
fieldsvector (optional), a vector of fields indicates the information of images to be included for the 'meta' map. The fields of 'id', 'is_pano', 'height', 'width', 'lon', and 'lat' are already included
download_data()scdataframe$download_data(path = 'path/to/download',
items = c('image', 'mask'))
pathcharacter, directory for downloading street view images or segmentation masks or both
itemscharacter or vector, specifying what to download: 'image' - 'original street view image; 'mask' - semantic segmentation (sf objects in .geojson format)"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.