Search code examples
c#winformsemgucv

is it possible for Canny Edge to measure?


Hi sirs I'm just wondering if is it possible for me to measure the height or width of an object using canny edge?

and if there's other way?


Solution

  • As @BartoszKP correctly stated, there are numerous ways on how to solve your problem. If, however, you want to go ahead and solve it with the help of the Canny edge detection you could do something like this:

    1. Create Canny edge image
    2. Do Hough line detection (here is an example in Emgu) to get geometrical information on where the lines in your image are - they might now represent your clothing article outline in a much more usable way
    3. Use the geometrical information to rule out the non-shoulder lines - normally you should have all the information you need on all the lines (like where they are exactly in the image). That information might just enable you to throw away, let's say, the bottom end of the clothing article.
    4. Use the geometrical information of the remaining lines to calculate your shoulder width or whatever you want to calculate.