ComfyUI Node
Bounding Box Crop (ZS)
A ComfyUI node in zsnodes/image with 9 inputs and 4 outputs.
Bounding Box Crop (ZS)
- image
- paint_color
- OUTPUT_IMAGE
- ORIGINAL_WITH_BOXES
- BBOX_INFO
- MASK
◄prompt►
◄dino_modelGroundingDINO_SwinT_OGC (694MB)►
◄output_modeCrop►
◄deviceAuto►
◄threshold0.35►
◄crop_modeFirst►
◄padding10►
Categoryzsnodes/image
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| prompt | STRING | Enter text description of object to detect and crop | |
| dino_model | COMBO | GroundingDINO_SwinT_OGC (694MB) | GroundingDINO model for text-to-box detection |
| output_mode | COMBO | Crop | Crop: extract the object, Paint: paint out everything else |
| device | COMBO | Auto | Auto: smart detection, CPU: force CPU, GPU: force GPU |
| thresholdopt | FLOAT | 0.350.05–0.95 | Detection threshold (higher = more strict) |
| crop_modeopt | COMBO | First | How to handle multiple detections |
| paddingopt | INT | 100–200 | Padding around the bounding box in pixels |
| paint_coloropt | COLOR | #000000 | Color to paint outside the bounding box (hex format) |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| OUTPUT_IMAGE | IMAGE | — |
| ORIGINAL_WITH_BOXES | IMAGE | — |
| BBOX_INFO | STRING | — |
| MASK | MASK | — |