:trophy: Added main utility decode_pixel_geometry_in_geojson for decoding all the pixel geometries from the GeoJSON.
This should close #32.
Test Run
import mapillary as mly
from utils.format import decode_pixel_geometry_in_geojson
mly.set_access_token('MLY|XXX')
data = mly.get_detections_with_image_id(image_id=1933525276802129).to_dict()
data = decode_pixel_geometry_in_geojson(geojson=data, normalized=True).to_dict() # for normalized coordinates
data = decode_pixel_geometry_in_geojson(geojson=data).to_dict() # for un-normalized coordinates
Pixel Geometry
:trophy: Added main utility
decode_pixel_geometry_in_geojson
for decoding all the pixel geometries from the GeoJSON.This should close #32.
Test Run
Normalized output
Un-normalized output