Hi guys!
I'm working with on an application that leverages the mapbox Static Images API and the Datasets API. My application will perform inferncing on the static images received to generate bounding boxes that will correspond to various locations on the map.
My goal is to convert the pixel positions (e.g., the center of each bounding box) into latitude and longitude coordinates so I may create a dataset from it. I know the pixel coordinates of the image's four corners, zoom level and dimensions.
What would be an appropriate way to do this conversion? Are the any libraries/SDKs by Mapbox or third-parties in the Python language that can help me apply this kind of pixel-to-GPS mapping with Mapbox static images?