Line detection using Canny edge detection

Help
2011-06-19
2013-05-09
  • Sai Yamanoor

    Sai Yamanoor - 2011-06-19

    Hello All,

    I am trying to control a maze's ball using the vision information.  I need to move the ball to its home position using the vision system's information.  I am able to detect the edges of the route the ball has to adopt.

    The algorithm has detected all the edges in the image. How may I extract the edges of the line the ball has to follow?

    I did it using the video stream of Canny Edge detection example

    Thanks,
    Sai

     
  • Pedram Azad

    Pedram Azad - 2011-06-20

    Hello,

    I am not sure if I understand what you mean with "the edge of the line the ball has to follow". Is it a straight line? For detecting straight lines, you can try the function ImageProcessor::HoughTransformLines (there are two implementations, see the documentation). There is also an example IVT/examples/HoughTransformLines (resp. IVT/win32/HoughTransformLines). Of course there are also other approaches to line detection, which might be suitable for your application. The IVT, however, offers for line detection an implementation of the Hough transform only.

    Pedram

     
  • Sai Yamanoor

    Sai Yamanoor - 2011-06-20

    Hello,

    I am sorry for not being clear in my post. I am using IVT to solve a maze like the one shown below:
    http://www.amazon.com/Solid-Wood-Labyrinth-Maze-Game/dp/B0048GNNP6

    I am using stepper motors to operate the maze using the information from the vision system. I am trying thresholding and edge detection techniques. However I am confused what would be the best approach.

    Your examples are really helpful.

    Thanks,
    Sai

     
  • Pedram Azad

    Pedram Azad - 2011-07-11

    Hello Sai,

    I hope you understand that cannot help you solving a specific computer vision problem. However, I would not try to recognize the layout of the maze online, as it is fixed. This information should be fed to your system offline, so that you only have to do a localization of the boundaries of the maze and the ball online.

    Pedram

     
  • Nobody/Anonymous

    Hello Pedram,

    I apologize for not being specific. As of now, I am solving the problem with OpenCV as I am a novice with image processing. I am planning to port the libraries to IVT as I read that it is faster than the openCV.

     
  • Pedram Azad

    Pedram Azad - 2011-07-12

    Hello Sai,

    IVT is not faster than OpenCV in general - it depends on the functions/methods you use. Furthermore, if speed is your issue, then the Keyetech Performance Primitives (see the topic "Highspeed" in the menu of the IVT homepage) might be of interest to you.

    Good luck with your project!

    Pedram

     

Log in to post a comment.