Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I grab images from camera?

Hi , Im new in Vission Assistant and LabView.

Im in a project and I need to do the following.

I have an USB camera pointing to a surface marked with an "X", this surface moves from time to time, what I want to do I to read this "X" and display its current possition in real-time.

Now I can find the "X" and detect its X, and Y possition, but only in images from files,  what I want to do is to read them from the camera, to see the results in real-time.

the camera is well configured, and I can save images from it, but how to capture the images in "runtime" ?


any help,  of comment will help a lot.   thanks.


- Polo
0 Kudos
Message 1 of 5
(4,077 Views)
 

Hello

If i understood, you want acquire an image with a usb camera.

One thing i can´t understaind is how you can save images without capture image in labview.

You can go to this link http://zone.ni.com/devzone/cda/epd/p/id/5030, and install the NI-IMAQ for USB Cameras then you can see in the NI-IMAQ for USB Cameras user guide.pdf many examples how to capture images.

 

 

0 Kudos
Message 2 of 5
(4,073 Views)
Hi thanks for aswer
Ok, In vision Assitant I can aquire images from the webcam,  and I can save images, to work with them, but what I want is to get those images in runtime from the webcam,  so I can detect  the new x,y position of my mark ("X").  any way Ill check the link u gave me. And I have the IMAP installed.

I hope to find a good example or some kind of tutorial.


Thank you for answer.


/Polo
0 Kudos
Message 3 of 5
(4,070 Views)
Hi Polox,
 
Vision Assistant is a scripting and prototyping tool.  You can grab a series of images into the Image Browser, and run through the acquired images to test the inspection on several images.  However to run the inspection continuously, you will need to generate the code in LabVIEW and add the acquisition code.  In this particular case, you will want to look at the USB IMAQ examples for a grab acquisition.  You can find the examples in C:\...\National Instruments\LabVIEW\examples\IMAQ\imaqUSB.llb\Grab.vi.
 
Hope this helps.
 
Saludos,
ErinB.
 
NI Mexico
 
 
0 Kudos
Message 4 of 5
(4,034 Views)

Hi Erin, can you take a look at this post: how to save 8 bit images from a TCP connection with a Smart Camera?

 

maybe you could help me. Gracias

Impossible is nothing
0 Kudos
Message 5 of 5
(3,457 Views)