dabble.check_large_groups

Description

Checks if number of objects in a group exceeds a threshold.

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

Checks which groups have exceeded the group size threshold. The group associated with each object is accessed by the groups key of obj_attrs.

Inputs

obj_attrs (Dict[str, Any]): A dictionary of attributes associated with each bounding box, in the same order as bboxes. Different nodes that produce this obj_attrs output type may contribute different attributes. dabble.check_large_groups requires the groups attribute.

Outputs

large_groups (List[int]): A list of integers representing the group IDs of groups that have exceeded the size threshold.

Configs

group_size_threshold (int) – default = 5.
Threshold of group size.

Changed in version 1.2.0: draw.check_large_groups used to take in obj_tags (List[str]) as an input data type, which has been deprecated and now subsumed under obj_attrs. The same attribute is accessed by using the groups key of obj_attrs.