LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to track line using webcam vision and move along it

Solved!
Go to solution

Hi everyone,

 

I have a question which I can't really find any topic about it.

Currently, I had made my rover robot to be control wirelessly using a 3-Axis joystick and working perfectly.

But I would like to add some features to the vision system on board the rover.

 

I am trying to make the webcam to detect black line against white background and then it will just autonomously move along the the black line. 

 

The thing is I only know abit about vision setup.. So if any one out there able to guide me along the way? 

Do I use colour pattern matching or colour matching or pattern match?

How to I make sure the black line stays in the middle of the vision?(Eg. moving itself to centre the line within its vision)

How do I control the motors using the vision aquired from the above?

 

Message Edited by Shinra on 08-23-2009 10:06 PM
Message 1 of 2
(3,141 Views)
Solution
Accepted by topic author Shinra

Hey,

 

To your questions:

 

Do I use colour pattern matching or colour matching or pattern match?

Pattern Matching or Color Pattern Matching would be to slow.

I would use a Simple 1D Edge detection which returns the coordinates and angle of the edge.

 

How to I make sure the black line stays in the middle of the vision?(Eg. moving itself to centre the line within its vision)

You have to control your motors that e.g. the angle is 0 or 90 degrees (depending on your coordinate system) all the time.

 

How do I control the motors using the vision aquired from the above?

The manual of this robot should tell you how to control the motors.

 

Hope this helps,

Christian

 

Message 2 of 2
(3,119 Views)