Ask Your Question

Revision history [back]

The image below has 4 sections for each step.

  1. green channel using extractChannel(src, dst, 1)

  2. threshold with threshold value 240

  3. dilate with rect kernel of size 3x3 for 1 iteration

  4. find contours and filter by excluding contours with area < 1000 and excluding contours with center y > 300

image description