Nodes/ComfyUI-ZSNodes/Bounding Box Crop (ZS)
ComfyUI Node

Bounding Box Crop (ZS)

A ComfyUI node in zsnodes/image with 9 inputs and 4 outputs.

By ZeroSpaceStudios·Created 12 months ago·Updated 12 months ago· 0
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)

NameTypeDefaultDescription
imageIMAGE
promptSTRINGEnter text description of object to detect and crop
dino_modelCOMBOGroundingDINO_SwinT_OGC (694MB)GroundingDINO model for text-to-box detection
output_modeCOMBOCropCrop: extract the object, Paint: paint out everything else
deviceCOMBOAutoAuto: smart detection, CPU: force CPU, GPU: force GPU
thresholdoptFLOAT0.350.05–0.95Detection threshold (higher = more strict)
crop_modeoptCOMBOFirstHow to handle multiple detections
paddingoptINT100–200Padding around the bounding box in pixels
paint_coloroptCOLOR#000000Color to paint outside the bounding box (hex format)

Outputs (4)

NameTypeDescription
OUTPUT_IMAGEIMAGE
ORIGINAL_WITH_BOXESIMAGE
BBOX_INFOSTRING
MASKMASK