Skip To Content ArcGIS for Developers Sign In Dashboard

Pixel-based Classification Workflow with arcgis.learn


As an example, we use land cover classification to demonstrate of workflow of pixel-based image classification using arcgis.learn. To begin with, we need input imagery as well as labels for each pixel. With the ArcGIS platform, these datasets are represented as layers, and are available in our GIS. This guide notebook showcases an end-to-end to land cover classification workflow using ArcGIS API for Python. The workflow consists of three major steps: (1) extract training data, (2) train a deep learning image segmentation model, (3) deploy the model for inference and create maps. To better illustrate this process, we will use NAIP imagery and high-resolution labeled data provided by the Chesapeake Conservancy land cover project.

Figure 1. A subset of of the labeled data for Kent county, Delaware

Export training data for deep learning

Import ArcGIS API for Python and get connected to your GIS

In [1]:
from arcgis import GIS
In [4]:
gis = GIS("home")

Prepare data that will be used for training data export

To export training data, we need a labeled imagery layer that contains the class label for each location, and a raster input that contains all the original pixels and band information. In this land cover classification case, we will be using a subset of the one-meter resolution Kent county, Delaware, dataset as the labeled imagery layer and USA NAIP Imagery: Color Infrared as the raster input.

In [63]:
label_layer ="Kent_county_full_label_land_cover")[1] # the index might change
land cover labels for Unet sampleImagery Layer by portaladmin
Last Modified: May 09, 2019
0 comments, 9 views
In [91]:
m ="Kent county, Delaware")