Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

screen coordinates of edge detection in real time

Hi there,

I am evaluating the vision assistant addtion to labview.  I have managed to use the applications features to identify two edges a want to track and control.  These edges are constantly moving and I need to know their location with respect to a known point on the screen say 0,0.  The idea will be to eventually keep the edge in centre screen by means of an external control system.  I can see that the straight edge function creates a couple of coordinates which I believe are screen coordinates.  It also mentions an angle of the line of 280deg but I am unshure what this is referenced from.

 

So far I have only been able to run the image analysis on still images in vision asssistant which I have grabbed from a live video feed.  How can I input the live feed (in the first instance a recording in avi format) and check that the processing is still sound at 30 frames per second for instance?  I then need to get this process into labview so I can analyses the coordinates (with respect to 0,0) as the edges move.    

 

I tried to create a VI from Vision Assistant but I can't as I'm only evaluating it at the moment.  I notice all of the functions are available in Labview, is it possible to build it there directly and cut out Vision assistant.  Obviously if I can prove this is likely to work I will purchase the vision assistant licence which should make life easier.

 

Any help would be most appreciated,

 

Regards

 

0 Kudos
Message 1 of 3
(3,483 Views)

I'm not sure what combination of things you have installed. If you have the Vision Development Module isntalled, you should have a license for the Vision VIs in LabVIEW, as well as the Vision Assisstant (unless you're using a really old version of LabVIEW and/or Vision Dev Module). Since 8.0 these have been combined into one part number, and share the same license.

 

Basically, if you have access to the Vision VIs to do this in LabVIEW, you should also be able to use the Vision Assistant within LabVIEW with no problems. 

 

One way to check to see if you're keeping up with your timing is to create a 3 frame sequence structure. You can take a timestamp in the first and third frame, and in the second frame you can process 30 or more images and see if you're holding to your timing you need. 

 

The angle you're seeing from the detect straight edge VI is the angle relative to the horizontal axis in the image (unless you're measuring based on some coordinate system you've created, in which case it's the x axis of the coordinate system).

 

Hope this clears up a couple of things. feel free to ask any follow up questions, if I wasn't clear.

 

-Matt


LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 2 of 3
(3,459 Views)
obviously the double post notification didnt work as expected. You have a reply in both the threads.
0 Kudos
Message 3 of 3
(3,442 Views)