dabble.bbox_count

Description

Counts the number of detected boxes.

class Node(config=None, **kwargs)[source]

Counts the total number of detected objects.

Inputs

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

count (int): An integer representing the number of counted objects.

Configs

None.