FindContoursNode

Overview

Finds contours in a binary/grayscale image and draws them on an output image.

Inputs

  • Input Image (GrayScaleImage)

  • Draw On Image (GrayScaleImage)

  • Mode (Int)

  • Method (Int)

  • Min Area (Int)

  • Draw Color R (Int)

  • Draw Color G (Int)

  • Draw Color B (Int)

  • Thickness (Int)

Parameters

  • Mode: default cv2.RETR_EXTERNAL. OpenCV contour retrieval mode

  • Method: default cv2.CHAIN_APPROX_SIMPLE. OpenCV contour approximation method

  • Min Area: min 0, max 10000, default 100. Filter out small contours by area

  • Draw Color R/G/B: defaults R=0, G=255, B=0. RGB color used to draw contours

  • Thickness: min -1, max 50, default 2. Line thickness; -1 fills the contour

Outputs

  • Result Image (ColorImage)

  • Contour Count (Int)

  • Contours (Contours)

Example

Use Min Area=200 to ignore small particles.