Ask Your Question

Revision history [back]

How about using below below method?

  1. Pushing the points of contours in white line edge.
  2. Using ransac to find two lines those are fit to upper and lower edge.
  3. Check the distance between the line point and the contour point.
  4. Detect the variance of those distance with 3 or 5 pixel widths.
  5. You could detect some threshold in both directional variance for erode and dilate cases.