ComfyUI-CenterNode

ComfyUI-CenterNode
★ 7

裁剪定位边界框计算ComfyUI扩展坐标转换
ComfyUI-CenterNode(Bounding Box Crop)节点:根据边界框坐标与目标裁剪宽高,计算裁剪区域中心并输出左上角坐标,便于在ComfyUI流程中精确定位与裁切。
💡 在ComfyUI流程中计算裁剪区域左上角坐标以便精确裁切。
🍴 5 Forks💻 Python🔄 2024-11-14
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/8b0992d318c3
Example Workflow
📄 README

Bounding Box Crop Node for ComfyUI

This repository contains a custom node for ComfyUI. The node, called “Bounding Box Crop”, is designed to compute the top-left coordinates of a cropped bounding box based on input coordinates and dimensions of the final cropped image. It does so computing the center of the cropping area and then computing where the top-left coordinates would be.

Features

  • Computes the top-left coordinates of a cropped bounding box.
  • Takes input for the left, top, right, and bottom coordinates of the bounding box, as well as the desired width and height of the cropped area.
  • Suitable for integration into ComfyUI workflows.
  • Example

    You can use example/workflow.json to run the custom node. It requires also ComfyUI-Impact-Pack

    Installation

    To use the Bounding Box Crop node in your ComfyUI workflow, follow these steps:

  • Clone this repository to the custom_node folder of your ConfyUI installation:
  • “`

    git clone https://github.com/alessandrozonta/ComfyUI-CenterNode.git

    “`

    Contributions

    Contributions to this project are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

    License

    This project is licensed under the GPL-3.0 license.