2024-11-14 13:20:37 +01:00
2024-05-02 13:17:04 +02:00
2024-04-30 16:54:55 +02:00
2024-05-02 12:22:49 +02:00
2024-05-22 10:12:22 +02:00
2024-05-02 12:25:19 +02:00
2024-11-14 13:20:37 +01:00
2024-05-02 13:17:04 +02:00

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

Example Workflow

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:

  1. 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.

S
Description
No description provided
Readme GPL-3.0
346 KiB
Languages
Python 100%