ComfyUI Node
BK Image Rect Layout
Find the bounding rectangle of black elements in the input image and place a suitable image from the image list within it. 在输入的白色背景图片中找到所有黑色元素的边界矩形,并将符合该矩形长宽比的图片等比缩放并居中放置其中。
BK Image Rect Layout
- background_image
- image_list
- IMAGE
- RECT_PREVIEW
- REMAINING_IMAGE_LIST
◄aspect_ratio_threshold0.25►
◄use_background_if_no_matchtrue►
Category⭐️ Baikong/Image
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| background_image | IMAGE | — | |
| image_list | IMAGE_LIST | — | |
| aspect_ratio_thresholdopt | FLOAT | 0.250.01–0.5 | — |
| use_background_if_no_matchopt | BOOLEAN | true | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| RECT_PREVIEW | IMAGE | — |
| REMAINING_IMAGE_LIST | IMAGE_LIST | — |