Detection Result Split

Description

This operator is used to split detection results, extracting the mask image, center point coordinates, and corresponding detection box information for each target.

Overview

Splits image detection results, extracting the mask image, center point coordinates, and corresponding bounding box information for each target.

Scenarios

Meets post-processing requirements based on detection or segmentation results.

Inputs and Outputs

Inputs

Image: Supports input of a single RGB image.

Detection Results: Detection output results containing each target’s contour polygon, category, score, and other information.

Outputs

Detection result mask image list: A list of binary mask images corresponding to each target, where the white area represents the target region.

Center Point List: Pixel coordinates of the center point for each target, an N×2 array.

Detection Box List: An N×4×2 array containing the four-point coordinates of each detection box. The box may be the minimum bounding box of the polygon or the box formed by the polygon’s top-left and bottom-right corners.

Parameters

Detection Box Type

Description

Selects the method used to generate detection bounding boxes, affecting the type and accuracy of the final output bounding boxes.

Tuning Instructions

  • Minimum Bounding Box: Computes the minimum oriented bounding rectangle (minimum enclosing rotated rectangle) for each detected object based on its precise contour points. This method yields more accurate bounding boxes that closely conform to the object’s contour, and is particularly suitable for scenarios involving irregularly shaped objects or downstream tasks with high requirements for orientation and dimensional accuracy.

  • Max-Min Points: Based on the object’s contour points, this method simply extracts the maximum and minimum values along the X and Y axes to directly construct an axis-aligned horizontal bounding box (defined by its top-left and bottom-right corners). It offers faster computation but lower bounding box accuracy, as the box will encompass more blank space — especially when the object is rotated at a large angle or has a noticeably skewed shape, the box may extend significantly beyond the object’s actual boundary.

Parameter Range

Values/Range:

  • Minimum bounding rectangle

  • Axis-aligned rectangle

Default: Minimum bounding rectangle