LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Edge Detection vision output, how to use it?

Hello Developer Zone,

 

I'm working on a school project that will use labview, labview vision, and labview Mindstorms. to make a robot drive along a line of black tape on the ground.

Problem is, the line detection output of dision is confusing me. Teachers cant help me, and i am not that experienced yet.

I want to know that (within area of interest) There is Either a staight line, or a diagonal line (or any / or \ kind of line).

I dont know the posabilitys, but it either detects what kind of line there is and just output instructions to turn left or right or straight forward.

Or it could detect like: The line is there, but 5cm (5 pixels ) whatever it measures in, to the right. and instruct to re-locate to the position the line is pointing, or is at.

 

I hope this isnt to confusing, and i hope someone can help me to output the lines detected, to something i can instruct the drive system with.

 

With this i will post an image of my project on a test.

note: the drive system isnt designed yet, it willbe using 2 servo motors, controlled by Mindstorms. i intend on instructing how long, 1 or 2 of the motors should turn and at how much % of the power.

Though if i can get the vision line system to output in like 5 different conditions ( straight, left,right,hard left, hard right. ) based on how the lines are recorded. this should be no problem at all.

 

Thanks in advance,

Vince Houbraken

Student at ROC Eindhoven NL

 

 

Line Detection.jpg

Message Edited by Smileynator on 11-06-2009 08:08 AM
0 Kudos
Message 1 of 11
(5,892 Views)

Notice that the detected line gives you 2 sets of x and y coordinates.  From this you can find the slope (is it pointing to the left or right) as well as how far off center it may be. (How far away from the center of the picture it is).  You can generate LabVIEW code from the Vision Assistant that will give you all of the line information it has.  

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 2 of 11
(5,889 Views)

the edge detection searches along a line in your image. As confiigured it is currently from left to right. Along this  line the steepness is analyse and if certain conditions are met the position of the steep change in image intensity is judged as a edge. For explanation of the coefficients see Vision manual.

 

 

0 Kudos
Message 3 of 11
(5,882 Views)
Sounds like its to advanced for me now, ill download a manuall somewhere. Hope it can clear some stuff up.
0 Kudos
Message 4 of 11
(5,874 Views)

To get the output from within LabVIEW you have to use the IMAQ (Vision) functions within LabVIEW, not Vision Assistant.  Vision Assistant will create the VI from your script for you if you select Tools>Create LabVIEW VI. 

 

I have also attached a very simple VI that will find edges for you.  The output called Straight edges is an array of edges that includes the coordinates and angle of the edges. 

 

Be sure to select the ROI before you run the VI

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 5 of 11
(5,864 Views)
Unfortunally, the VI doesnt work because i lack that 1 IMAQ item, the detect edges one.
0 Kudos
Message 6 of 11
(5,842 Views)
What happens when you select Tools>Create LabVIEW VI from within Vision Assistant?  
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 7 of 11
(5,840 Views)

What happens when you select Tools>Create LabVIEW VI from within Vision Assistant?  

 

Well that option doesnt seem to be there.. all i got is:  Preformence meter and View measurements under tools.

0 Kudos
Message 8 of 11
(5,813 Views)

Well, if you don't have that VI and you don't see this

Untitled.png

then there's not much more help I can offer.. You ought to look into downloading the NI Vision Development Module.  I have the eval version and all of the VI's are available to me.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 9 of 11
(5,811 Views)

I'll go ahead and resurrect this old thread!

 

I want to do a similar thing pulling the coordinates from Vision Assistant, however I'm using a 2015 vision dev evaluation.  Says it can't create a VI in evaluation mode... anyway around this, short of $4k?

0 Kudos
Message 10 of 11
(4,624 Views)