NI Home > Community > NI Discussion Forums

Machine Vision

Showing results for 
Search instead for 
Do you mean 
Reply
Member
marooner
Posts: 45
0 Kudos

Processing video acquired through a webcam/camcorder in Labview/IMAQ

Hi,
I need to acquire&process video of a source located far away from the computer which has the labview and IMAQ.Since I do not have a laptop and other equipment, I plan to use a camcorder to get the video ,download it into the computer and then start processing it with IMAQ, like seperating the images frame by frame,ROIs,edge detection etc.Is it possible with LabVIEW?If so, please send me ur suggestions.
Trusted Enthusiast
BruceAmmons
Posts: 2,452
0 Kudos

Re: Processing video acquired through a webcam/camcorder in Labview/IMAQ

I believe it is possible, but you may run into problems. You would need to connect the video signal from your original display to your camcorder to record it, then hook the video output from the camcorder to an IMAQ card. If you have a firewire camera, you might be able to get the video in that way, but it would be difficult.

When you record a video signal onto tape, then play it back later, you will lose some image quality. It may not be enough to matter, but it could have significant consequences. I was just working on an OCR application that reads text off a display screen. If the pixel clocks of the display, camcorder, and IMAQ board don't all match, the results can be garbage.

Bruce
Bruce Ammons
Ammons Engineering
Member
Derick
Posts: 9
0 Kudos

Re: Processing video acquired through a webcam/camcorder in Labview/IMAQ

You didn't state which platform you are using. My suggestion assumes a Windows based platform. I do this using an ActiveX program from http://www.cbcsolutions.net (I have no ties to the company) called XVideo2. It has several useful functions and works with most Video for Windows compliant frame grabbers. It also has a function CapExtract, which takes an AVI file and breaks it down to individual BMP files, frame by frame, in a named directory. I then can take the individual frames and process them using IMAQ. Once the video is on your machine IMAQ can do the ROI, edge detect etc. I have found XVideo2 to work well with LabVIEW using an ActiveX container, set to hidden if you want to hide the control on your front panel, then using the Invoke and Property nodes.

Hope
this helps you out.

Happy wiring

Rick
Member cld
Member
cld
Posts: 128
0 Kudos

Re: Processing video acquired through a webcam/camcorder in Labview/IMAQ

Since you would like to apply processing on multiple images, your best solution may be to acquire the images with a sequence. Using buffers, a sequence allows you to manipulate when and which images you want to take in. Below is a link to several examples, you may want to take a look at the Low-Level Sequence in Onboard Memory:
http://zone.ni.com/devzone/devzone.nsf/webcategories/1E4B156BEB020A5A8625685E0077B394?opendocument&node=DZ52489_US

Good Luck with your Application!
Chris D
NI Applications Engineer
Member
maocañas
Posts: 19
0 Kudos

Re: Processing video acquired through a webcam/camcorder in Labview/IMAQ

hi

Member
ajita24patil@gmail.com
Posts: 20
0 Kudos

Re: Processing video acquired through a webcam/camcorder in Labview/IMAQ

hello,i am doing my final year project in video processing in labview.

I am also facing the same kind of problem.

I am using a webcam for capturing live video. My next step is to process that video in labview.

 The processing includes detection of certain objects.

I am getting the video in labview as live but can't process on it for further steps.

Can u help me for this?

If you know anything about this topic then please let me know.