From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Development Best Practices Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

motion detaction

hi i am a new to use LABVIEW ..Plzz any onre teel me how i could implement motion detection using a web cam..

0 Kudos
Message 1 of 3
(5,742 Views)

armank,

Thanks for posting!  This group is focused on large application development, so you might not find what you are looking for here.  Your question could probably best be answered in the NI Discussion Forums.  I would try the "LabVIEW" board or the "Machine Vision" board.

Best of luck!

Todd

Todd S.
LabVIEW Community Manager
National Instruments
0 Kudos
Message 2 of 3
(3,339 Views)

There are a few steps to make this work.

First, you have to get images into LabVIEW from the webcam. Webcams don't present their data in a standard format, so there's no guarantee that anything will work, but there are a couple of tools out there. NI provides supported  tools for GigE and other expensive types of cameras. For USB, NI provides NI-IMAQ for USB but support is limited and your device has to work with DirectShow.

http://zone.ni.com/devzone/cda/epd/p/id/5030

If this doesn't work, you'lkl have to try some other tools. Search for "LabVIEW webcam" and a few things come up, like:

http://mindtrove.info/software/labview-webcam-library/

If it doesn't work, it's because your USB camera doesn't conform to one of the "standards."

Once you have the image in LabVIEW, you need to find a method to look for differences in the images. You can do this with the array tools in LabVIEW, but you'll be starting from scratch. A better method is using the Vision Module:

http://sine.ni.com/nips/cds/view/p/lang/en/nid/2881

These threads show some ways to use the Vision Module to do motion tracking:

http://forums.ni.com/ni/board/message?board.id=170&message.id=40536&requireLogin=False

http://forums.ni.com/ni/board/message?board.id=200&message.id=14307&requireLogin=False

Hope that helps!

Message 3 of 3
(3,339 Views)