Nodes/comfyui-panels/Detect Panels In Image
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.

By bmad4ever·Created 11 months ago·Updated 2 months ago· 38
Detect Panels In Image
  • image
  • POLYGON
threshold240
min_rel_area0.025
simplifynone
max_vertices6
recover_non_convextrue
CategoryBmad/Panels

Inputs (6)

NameTypeDefaultDescription
imageIMAGE
thresholdINT2401–254binary threshold when analysing the image
min_rel_areaFLOAT0.0250.001–0.999contours with an area percentage with respect to the image size inferior to this value are discarded
simplifyCOMBOnoneSimplify the final polygons according to the provided criteria.
max_verticesINT63–9Simplify contour shapes with higher vertex count when analysing the contours. For most use cases use the default value.
recover_non_convexBOOLEANtrueIf set to False, discards non convex shapes when detecting the contours. For most use cases use the default value.

Outputs (1)

NameTypeDescription
POLYGONPOLYGONPanels (Shapely Polygons)