Skip to content

Remap polygons

Overview

This node transforms polygon coordinates from a cropped subregion back to the original image's coordinate space. It's used when an AI model processes a small "cutout" but you want to display the results on the full camera view.

Use Remap polygons when:

  • You run an AI model on a crop of the original image, and you want to overlay detected bounding boxes onto a dashboard view of the full frame.

💡 Tip

This node requires the polygon_roi parameter that was used to create the original crop to perform the inverse transformation correctly.

Inputs

NameTypeDescription
detected_polygonslist[polygon]The polygons detected within the subregion.
polygon_roipolygonThe subregion defining where the crop was taken from.

Outputs

NameTypeDescription
adjusted_polygonslist[polygon]The polygons remapped back to the full image coordinates.

Parameters

This node does not have any configuration parameters.

Example

Displaying crops on full frame

A system crops a specific corner of an image to find small serial numbers. The detected number's polygon is then remapped so it can be shown in its correct relative position on the original 4K image.

Adjust polygons diagram
Visual representation of the polygon remapping process. When detection has been performed on a cropped image, the detected polygon coordinates can be mapped back from the cropped image coordinate space to the original image coordinate space.

Result: The detection box appears in the correct corner of the full-frame dashboard view.

Reference: