ComfyUI Node
Detect Panels In Image
'Simple' CV algo to generate panel layout from an image. You can build a custom layout using an image as input to this node. Paint the background white and the panels black. It can also be used directly over simple comic or manga pages, whose panel delimitation is very explicit.
Detect Panels In Image
- image
- POLYGON
◄threshold240►
◄min_rel_area0.025►
◄simplifynone►
◄max_vertices6►
◄recover_non_convextrue►
CategoryBmad/Panels
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| threshold | INT | 2401–254 | binary threshold when analysing the image |
| min_rel_area | FLOAT | 0.0250.001–0.999 | contours with an area percentage with respect to the image size inferior to this value are discarded |
| simplify | COMBO | none | Simplify the final polygons according to the provided criteria. |
| max_vertices | INT | 63–9 | Simplify contour shapes with higher vertex count when analysing the contours. For most use cases use the default value. |
| recover_non_convex | BOOLEAN | true | If set to False, discards non convex shapes when detecting the contours. For most use cases use the default value. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| POLYGON | POLYGON | Panels (Shapely Polygons) |