08-10-2010 09:35 AM
Hi everyone,
I have recorded an image movement by using webcam. Now, I would like to transfer the image into LABVIEW for image processing. Anyone knows how to import the image into LABVIEW software? And how should I do image processing in order to determine the movement of the image?
There are too many topics out there and I got confused. Could anyone guide me or at least show me the topic that I should know about ?
Sorry if this is a duplicated question, but I really need help.
Thanks.
08-10-2010
09:52 AM
- last edited on
03-27-2024
09:17 PM
by
Content Cleaner
First question:
Is the image a video image, live, from the camera itself? If so, then you will need to do one of two things:
Use IMAQ to get the image.
Or use a Windows API call or a dll to access the image from the drivers. Then use Labview base image VIs to work with the image (can be tedious).
http://sine.ni.com/nips/cds/view/p/lang/en/nid/202472
It is a rather expensive Module for LabView. I thinkit may be included when you by an NI camera but I could be wrong.
It has lots of features to help with getting a camera image into LabView and working with it. Lots of advanced functions included as VIs (edge detection and such).
If the image is just sitting on your computer as a file like a .jpg, then the functions under Programming->Graphics and Sound->Graphics Formats are your friend. Read BMP, Read JPG, Read PNG are all nice vis to bring in your common image files into LabView. If you have a different file type, either convert it manually or read in the binary and convert the image to Labview image data yourself (good luck with that!).
I hope this helps.
08-31-2010 12:34 AM - edited 08-31-2010 12:37 AM
The Best way to do is download the USB IMAQ library and use the functions to grab or snap the image directly from the webcam. Later it can be saved to a file or directly taken to the processing. If you are using LabVIEW 2009 there is option in the Vision module itself to grab,snap through USB webcam.