Detect Objects In 3D Space (GeoAI Tools)
Summary
Applies a trained deep learning model to oriented imagery to detect and extract objects in 3D space.
This tool uses a model definition file, either an Esri model definition file (.emd) or a deep learning model package (.dlpk), to detect objects within the imagery. By leveraging depth maps either provided directly or generated via input 3D layer the tool maps detected 2D features to real-world 3D coordinates, enabling accurate object detection in 3D space.
Usage
You must install the proper deep learning framework Python API (such as PyTorch or Keras) in the ArcGIS Pro Python environment; otherwise, an error will occur when you add the Esri model definition file to the tool. Obtain the appropriate framework information from the creator of the Esri model definition file.
To set up your machine to use deep learning frameworks in ArcGIS Pro, see Install deep learning frameworks for ArcGIS.
This tool calls a third-party deep learning Python API (such as PyTorch or Keras) and uses the specified Python raster function to process each object.
The Model Definition parameter value can be an Esri model definition JSON file (
.emd), a JSON string, or a deep learning model package (.dlpk). A JSON string is useful when this tool is run on the server, and you can use the JSON string rather than upload the.emdfile. The.dlpkfile must be stored locally.The input oriented imagery dataset or layer may include depth images for further processing. If depth maps are not available in the dataset, a 3D layer must be provided to generate them. For accurate detection, the input oriented imagery dataset and input 3D layer should use the same spatial reference.
Supported formats for the 3D layer used to compute the depth maps are 3D Tiles Layer, Scene Layer, and Gaussian Splat Layer.
For oriented imagery layers, the processing will always occur in pixel space. When pixel space is used for processing, the pixel space detections are preserved in the output table in the
IShapefield.Increasing the batch size can improve tool performance; however, as the batch size increases, more memory is used. If an out of memory error occurs, use a smaller batch size. The
batch_sizevalue can be adjusted using the Arguments parameter.Batch sizes are square numbers, such as 1, 4, 9, 16, 25, 64 and so on. If the input value is not a perfect square, the highest possible square value is used. For example, if a value of 6 is specified, the batch size is set to 4.
Use the Suppress Duplicate Detections parameter to identify and remove overlapping duplicate features generated during object detection.
To run this tool, a GPU-equipped machine is required. If you have more than one GPU, specify the GPU ID to specify the GPU to be used. The GPU ID is supported only for the Input Model Definition File parameter and is not supported during the depth rendering process.
For information about requirements for running this tool and issues you may encounter, see Deep Learning frequently asked questions.
For more information about deep learning, see Deep learning using the ArcGIS Image Analyst extension.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Oriented Imagery Dataset |
An oriented imagery dataset used as input for object detection. The dataset must contain |
Oriented Imagery Layer |
|
Output Detected Objects |
The output feature class that will contain multipatch geometries detecting the objects in the input images. If the feature class already exists, the results will be appended to the existing feature class. |
Feature Class |
|
Input Model Definition File |
An Esri model definition JSON file ( |
File; String |
|
Arguments (Optional) |
The information from the Input Model Definition File parameter that will be used to set the default values for this parameter. These arguments will vary, depending on the model architecture. The following are supported model arguments for models trained in ArcGIS. ArcGIS pretrained models and custom deep learning models may have additional arguments that the tool supports.
Value table columns:
|
Value Table |
|
Objects of Interest (Optional) |
Specifies the objects that will be detected by the tool. The available options will be based on the Input Model Definition File parameter value. This parameter is only active when the model detects more than one type of object. |
String |
|
Input 3D Layer (Optional) |
The 3D layer that will be used to compute the depth maps. |
3D Tiles Layer; Scene Layer; Gaussian Splat Layer; File |
|
Output Depth Image Folder (Optional) |
An existing folder where the generated depth maps will be saved. |
Folder |
|
Update Oriented Imagery Dataset With Depth Maps (Optional) |
Specifies whether the path of the generated depth maps will be added to the input oriented imagery dataset.
|
Boolean |
|
Suppress Duplicate Detections (Optional) |
Specifies whether duplicate detections will be suppressed.
|
Boolean |
Environments
Licensing information
- Basic: No
- Standard: No
- Advanced: Requires Image Analyst