Visit ComfyUI Online for ready-to-use ComfyUI environment
Extracts bounding box coordinates, converts to integers, useful for precise manipulation in object detection and image processing.
The BboxToInt node is designed to extract specific bounding box coordinates from a list of bounding boxes and convert them into integer values. This node is particularly useful when you need precise integer coordinates for further processing or visualization tasks. By selecting a bounding box from the list using an index, the node returns the minimum x and y coordinates, the width and height of the bounding box, and the center coordinates. This functionality is essential for tasks that require accurate bounding box manipulation, such as object detection, image cropping, or annotation.
This parameter represents the list of bounding boxes from which you want to extract a specific bounding box. Each bounding box in the list is expected to be a tuple or list containing the coordinates and dimensions of the bounding box. The bounding boxes should be in the format (x_min, y_min, width, height). This parameter is crucial as it provides the source data for the node to process.
The index parameter specifies which bounding box to select from the list of bounding boxes. It is an integer value that determines the position of the desired bounding box in the list. The default value is 0, meaning the first bounding box in the list will be selected by default. The minimum value is 0, and the maximum value is 99999999, allowing for a wide range of indices to be specified. This parameter is important for targeting a specific bounding box within the list.
This output parameter represents the minimum x-coordinate of the selected bounding box. It is an integer value that indicates the leftmost position of the bounding box on the x-axis.
This output parameter represents the minimum y-coordinate of the selected bounding box. It is an integer value that indicates the topmost position of the bounding box on the y-axis.
This output parameter represents the width of the selected bounding box. It is an integer value that indicates the horizontal size of the bounding box.
This output parameter represents the height of the selected bounding box. It is an integer value that indicates the vertical size of the bounding box.
This output parameter represents the x-coordinate of the center of the selected bounding box. It is an integer value calculated as the midpoint of the bounding box's width.
This output parameter represents the y-coordinate of the center of the selected bounding box. It is an integer value calculated as the midpoint of the bounding box's height.
bboxes
parameter is correctly formatted as tuples or lists containing (x_min, y_min, width, height).index
parameter to select the specific bounding box you need to work with, especially when dealing with multiple objects in an image.index
parameter is within the valid range of the bounding box list. Check the length of the list and adjust the index accordingly.bboxes
parameter is not provided or is set to None
.bboxes
parameter. Verify that the input data is correctly formatted and not None
.© Copyright 2024 RunComfy. All Rights Reserved.