Nodes/comfyui-kepri-nodes-pack/Kepri Framing Analysis (Border Contact + Margins)
ComfyUI Node

Kepri Framing Analysis (Border Contact + Margins)

A ComfyUI node in Kepri/Background with 3 inputs and 12 outputs.

By wearekhepri·Created 3 months ago·Updated about a month ago· 1
Kepri Framing Analysis (Border Contact + Margins)
  • mask
  • mask
  • framing
  • touches_top
  • touches_bottom
  • touches_left
  • touches_right
  • margin_top
  • margin_bottom
  • margin_left
  • margin_right
  • free_sides
  • framing_data
edge_tolerance_px2
contact_min_percent1.0
CategoryKepri/Background

Inputs (3)

NameTypeDefaultDescription
maskMASK
edge_tolerance_pxINT20–64An object counts as 'touching' a border if active pixels lie within this many px of the edge.
contact_min_percentFLOAT1.00–100Minimum % of the border length that must be covered to count as contact (ignores a stray pixel).

Outputs (12)

NameTypeDescription
maskMASK
framingSTRING
touches_topBOOLEAN
touches_bottomBOOLEAN
touches_leftBOOLEAN
touches_rightBOOLEAN
margin_topFLOAT
margin_bottomFLOAT
margin_leftFLOAT
margin_rightFLOAT
free_sidesSTRING
framing_dataSTRING