Draw Pixel Points and Bounding Box

Description

This operator is used to draw pixel points and bounding boxes on an image. Specifically, it draws numbered pixel points and polygon bounding boxes on the input image and outputs the rendered image to visually confirm the accuracy of detection results.

Overview

Draws pixel coordinates and rectangular bounding boxes on 2D images, used to verify the accuracy of 3D-to-2D projection or detection box positions.

Scenarios

Drawing numbered pixel points and polygon bounding boxes to generate a rendered image for easy inspection and downloading.

Inputs and Outputs

Inputs

Image: The background image to be drawn on.

Pixel point list: An N*2 list containing the coordinates of N pixel points to be drawn.

Pixel bounding box list: An N*4*2 list containing N bounding boxes, including the pixel coordinates of their four corner points.

Outputs

Rendered image: A new image with the input points and bounding boxes drawn on it.