ComfyUI Node
Kepri Framing Analysis (Border Contact + Margins)
A ComfyUI node in Kepri/Background with 3 inputs and 12 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | — | |
| edge_tolerance_px | INT | 20–64 | An object counts as 'touching' a border if active pixels lie within this many px of the edge. |
| contact_min_percent | FLOAT | 1.00–100 | Minimum % of the border length that must be covered to count as contact (ignores a stray pixel). |
Outputs (12)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |
| framing | STRING | — |
| touches_top | BOOLEAN | — |
| touches_bottom | BOOLEAN | — |
| touches_left | BOOLEAN | — |
| touches_right | BOOLEAN | — |
| margin_top | FLOAT | — |
| margin_bottom | FLOAT | — |
| margin_left | FLOAT | — |
| margin_right | FLOAT | — |
| free_sides | STRING | — |
| framing_data | STRING | — |