FME Transformers: 2024.2

Categories
Rasters
Related Transformers
RasterObjectDetectionModelTrainer
RasterObjectDetectorSampleGenerator
RasterObjectDetectorSamplePreparer

RasterObjectDetector

Accepts a raster input and outputs rectangular geometries outlining the detected object(s).

The transformer uses OpenCV’s Cascade Classifier for object detection and allows for selection of various object types and detection models or classifiers. Each classifier is trained to detect a specific object, for instance: human bodies, faces and eyes. Multiple classifiers can to be used in the same transformer on the same source raster(s) to produce different sets of results, grouped by detection model.

Detection models use a detection kernel window that is moved across the entire raster. If the pixel pattern in a specific area of the raster matches the kernel “sufficiently”, that area is treated as a detected object. For the purposes of matching, the kernel and source raster are scaled up and down, respectively, to detect smaller and larger objects.

A rough bounding box of the detected object will be individually attached to a feature and output via the Detected port. The detection parameters, scaling factor, minimum number of neighbors and detection object sizes work together to help balance the number of objects detected, processing speed and detection accuracy. See the parameters section for more details.

Note  Due to security vulnerabilities in the OpenCV library this transformer depends on, a separate download of OpenCV version 3.4.9 is needed after FME is installed. The installation location must be added to the system path so FME is able to load the executables, otherwise the transformer will produce an error.
Note  This transformer is not available for the macOS M1 ARM architecture (Apple Silicon). Please use an alternative platform such as Intel macOS.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the RasterObjectDetector on the FME Community.