03-07-2011 08:43 AM
Hello all.
I am new to NI Vision and am in the middle of a college project. I am using Labview 2010 and a usb webcam. The camera is working fine and I can acquire an image no problem but do not know how to use the necessary tools within labview to process it. I was using NI Vision Assistant also to help me along in the process but am hitting a brick wall. I am attempting to find a line in a region of interest. Once found I want to get the lenght of the line and the angle of the line with respect to an origin. I have attached a VI that I have been working on so far.
Thank you in advance
03-07-2011 10:38 AM
Can you attach one of the images you're working with? That would hlelp getting you advice.
Best regards,
-Christophe
03-07-2011 04:02 PM
Sorry about that.
03-07-2011 10:27 PM
My initial thought is to use Concentric Rake to find the line. You can define an annulus that goes around the spot in the center and covers the range you need. This will help you locate the line and figure out its orientation.
Once you know where the line is, you can measure the length. Concentric Rake may output all the edge points on the line, which would give you a pretty good estimate of the length. If not, you could generate a rectangle around the area of the line and locate the first edge going from the outside toward the center.
Good luck.
Bruce
03-08-2011 03:09 AM
Thank you for that .
I am already attempting to use concentric rake but when I try to connect the image that I have captured is tells me that it is not an image. Maybe I have to convert it to an 8 bit image.
You would hardly have any examples of how to input the correct parameters to the VI. I have included an example that i am working on.
Bye
03-08-2011 02:54 PM
Yes, a color image would need to be converted to grayscale (8 bit) before using the rake function.
Bruce
03-08-2011 02:55 PM
THANK YOU
03-15-2011 11:09 AM
03-16-2011 04:28 AM
Hello Matchpattern,
If you need help, please open a new forum post and specify your issue.