Align Detection Results After ROI Cropping

Description

This operator is used to align the detection results from an image that has been cropped without maintaining the original shape back to the original uncropped image via a defined 2D ROI.

Overview

Transforms and aligns detection results from a cropped image back to the original uncropped image based on the defined 2D ROI.

Scenarios

In the image detection preprocessing stage, target detection is performed after cropping. Subsequently, the detection results need to be restored to the original uncropped image for subsequent processing or visualization analysis.

Inputs and Outputs

Inputs

Image Before ROI (Optional): The original color image before cropping.

Detection Results: The results obtained from detection on the cropped image, including bounding boxes, classification information, confidence scores, and polygon contours.

2D ROI: A 2D rectangular region defining the image cropping area.

Outputs

Detection Results: Detection results aligned to the original image after coordinate transformation, including bounding boxes, classification information, confidence scores, and polygon contours.