Image Anonymization in Esri ArcGIS Online
Easily blur personal information in images hosted on ArcGIS Online by using Celantur Cloud API.
Last updated
Easily blur personal information in images hosted on ArcGIS Online by using Celantur Cloud API.
Last updated
This tutorial will guide you through the process of anonymizing personal information in your images stored in ArcGIS Online. We'll use a Jupyter Notebook to connect ArcGIS Online with the Celantur Cloud API.
The Notebook will fetch the original image attachments which have not been anonymized yet, send them to Celantur Cloud API for anonymization, and save the anonymized images back to ArcGIS Online.
Before you begin, ensure you have the following:
Log in to your ArcGIS Online account.
On the ArcGIS page https://celantur.maps.arcgis.com/home/content.html click to New Item
button and proceed with creation of Feature Layer
.
Then open that new Item, and open Data
tab and select Fields
sub-tab
Click to Add
button (only if this field does not yet exist)
Field Name
: is_anonymized
Display Name
: Is anonymized
Type
: integer
Default Value
: 0
Click Add New Field
Add images as attachment to points via e.g. Field Maps app. Make sure the same Feature Service Layer is specified in the Notebook code.
In ArcGIS online, create a new Notebook.
Insert the Notebook content from https://github.com/celantur/arcgis-jupyter-dev into your newly created Notebook.
In the section of ! CREDENTIALS !
specify your credentials accordingly
Go to section Main
Adjust layer_id
uid value to the corresponding layer you want to use.
Adjust params to your taste, see https://doc.celantur.com/cloud-api/api-endpoints#create-anonymization-task
Create directory /arcgis/home/downloads
Run the Notebook
Verify that the personal information in your images has been successfully anonymized.
Schedule the Notebook to be executed regularly.
Limitations:
The current Notebook code will process all images where is_anonymized
equals false
. Please consider the impact of the amount of images on the Notebook runtime.
Congratulations! 🎉 You have successfully anonymized images in Esri ArcGIS Online using the provided Jupyter Notebook and Celantur Cloud API. Feel free to explore the code and customize it for your specific use case.
If you encounter any issues or have suggestions for improvement, please address your contact person at Celantur.