draw.blur_bbox
Description
Blurs area bounded by bounding boxes over detected object.
- class Node(config=None, **kwargs)[source]
Blurs area bounded by bounding boxes on image.
The
draw.blur_bbox
node blurs the areas of the image bounded by the bounding boxes output from an object detection model.- Inputs
img
(numpy.ndarray
): A NumPy array of shape \((height, width, channels)\) containing the image data in BGR format.bboxes
(numpy.ndarray
): A NumPy array of shape \((N, 4)\) containing normalized bounding box coordinates of \(N\) detected objects. Each bounding box is represented as \((x_1, y_1, x_2, y_2)\) where \((x_1, y_1)\) is the top-left corner and \((x_2, y_2)\) is the bottom-right corner. The order corresponds to bbox_labels and bbox_scores.- Outputs
img
(numpy.ndarray
): A NumPy array of shape \((height, width, channels)\) containing the image data in BGR format.- Configs
blur_kernel_size (
int
) – default = 50.
This defines the kernel size used in the blur filter. Larger values ofblur_kernel_size
gives more intense blurring.