Skip To Content

Use the model

You can use the Parking Lot Classification — USA model in the Classify Pixels Using Deep Learning tool available in the Image Analyst toolbox in ArcGIS Pro.

  1. Download the model.
  2. Add the imagery layer in ArcGIS Pro.
  3. Add 8-bit, 3-band high resolution (30 centimeters -1.2 meters) imagery and zoom in to an area of interest.
    Area of Interest
  4. Click Tools under Analysis on the ribbon to open the Geoprocessing pane.
    Tools on the Analysis tab in ArcGIS Pro
  5. Click the Toolboxes tab in the Geoprocessing pane, and expand Image Analyst Tools. Click the Classify Pixels Using Deep Learning tool under Deep Learning.
    Classify Pixels Using Deep Learning tool
  6. Set the variables on the Parameters tab as follows:
    1. Input Raster—Raster, mosaic dataset, or image service (30 centimetres - 1.2 meters spatial resolution).
    2. Output Raster Dataset— The name of the raster or mosaic dataset containing the classified parking lots.
    3. Model Definition—Select the pretrained or fine-tuned model .dlpk file.
    4. Model Arguments—Change the values of the arguments if required.
      • padding—-Number of pixels at the border of image tiles from which predictions are blended for adjacent tiles. Increase its value to smooth the output while reducing edge artifacts. The maximum value of the padding can be half of the tile size value.
      • batch_size—Number of image tiles processed in each step of the model inference. This depends on the memory of the graphics card.
      • test_time_augmentation —Performs test time augmentation while predicting. If true, predictions of flipped and rotated variants of the input image will be merged into the final output.
      • predict_background—If set to True, the background class is also classified.
    Classify Pixels Using Deep Learning tool Parameters tab
  7. Set the variables on the Environments tab, as follows:
    1. Processing Extent—Select the imagery or any other option from the drop-down menu.
    2. Cell Size— Set the value to 0.30.
      Note:

      0.30 - 1.2 meters is the expected spatial resolution.

    3. Processor Type—Select CPU or GPU as needed.
      Note:

      If GPU is available, it is recommended that you select GPU and set GPU ID to the GPU to be used.

    Classify Pixels Using Deep Learning tool Environments tab
  8. Click Run.

    Once processing is complete, the classified output of raster layer is added to the map.

    Results from the Classify Pixels Using Deep Learning tool
  9. Reclassify the raster to remove pixels with 0 value.
    1. Click the Toolboxes tab in the Geoprocessing pane, expand Spatial Analyst Tools, and browse to the Reclassify tool under Reclass.
      Reclassify Tool
    2. Set the variables on the Parameters tab as follows:
      1. Input Raster—Add the output of the Classify Pixels using Deep Learning tool as generated in previous steps as input here.
      2. Reclass field—Set the field denoting the values that will be reclassified.
      3. Reclassification—Set the values for the remap table that defines how the values will be reclassified. Manually enter 0 and NODATA in a row if it doesn't fill automatically.
    3. Click Run.
      Reclassify tool
    Reclassify Tool Output
  10. Convert the raster to polygons.
    1. Click the Toolboxes tab in the Geoprocessing pane, expand Conversion Tools, and browse to the Raster to Polygon tool under From Raster.
      Raster to Polygon Tool Navigation
    2. Set the variables on the Parameters tab as follows:
      1. Input Raster—Add the output of Reclassify tool as generated in previous steps as input here.
      2. Field—Set the field used to assign values from the cells in the input raster to the polygons in the output dataset. Use an integer or a string field.
    3. Click Run.
    Raster to Polygon Tool
  11. Smooth polygons.
    1. Click the Toolboxes tab in the Geoprocessing pane, expand Cartography Tools, and browse to the Smooth Polygon tool under Generalization
    2. Set the variables on the Parameters tab as follows:
      1. Input Features—Add the output of the Raster to Polygon tool as generated in previous steps as input here.
      2. Smoothing Tolerance—Specify a tolerance used by the Polynomial Approximation with Exponential Kernel (PAEK) algorithm.

        A tolerance must be specified, and it must be greater than zero. You can choose a preferred unit; the default is the feature unit.

      Smooth Polygon Tool
    3. Click Run.

    To get clean polygons, you must smooth the polygons. The smoothed polygons can be used for further analysis, which is difficult with a raster output.

    Final output