Is it possible to access the underlying image from hv.element.tiles.EsriImagery()
? I would like to access the tile image and run an object detection model on it.
When I try accessing the .data
property, I see the template url https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}.jpg
, however I am interested in accessing the image of the specific tile that is being displayed and then using it for additional processing.
Yes, it's possible, and we have an example like just that! It's not yet fully published, but the source code is reachable at https://github.com/pyviz-topics/examples/pull/193 . The relevant function is in GeoViews (geoviews/util.py):