Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Motion Detection in Multiple Locations

My project involves keeping track of motion in several discrete (but close by) locations on a glass plate etched with a specific pattern. Unfortunately, the locations which need to be watched for motion are in relation to the pattern on the plate instead of to the camera. My first idea was to use image analysis tools to find the edges of the glass plate and re-orient the image based on that, but I have been unable to find or create an algorithm with which to do that. Additionally, I am concerned as to whether the transformation of the image would be possible within my time frame (as I would have to transform each frame and check for motion in it and wish to have a framerate of around 10 fps, though I should be able to handle less). If anyone has any suggestions, I would be happy to hear them.
Using LabVIEW 2009 on Windows Vista
0 Kudos
Message 1 of 13
(5,437 Views)

Is there any reason why image analysis is not working for you? If you are coming across any specific problems with your vision code, you can post your questions here.

If not using a vision algorithm to keep track of these points, it would have to be through some type of sensor attached to these points such as an accelerometer. While we provide DAQ cards that are capable of reading the values obtained from the accelerometers, the algorithm to correlate this to position would still have to be architected. 

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 2 of 13
(5,403 Views)
Can you also post a few images?
0 Kudos
Message 3 of 13
(5,397 Views)

Image analysis isn't working because I can't set up static locations to monitor for motion without making sure the image is always aligned the same way (which it won't be, due to small movement of the physical object) and I am unable to find the correct edges in the (rather dark) image in order to realign it so I can set static locations for monitoring. I have tried thresholding the image and then performing edge detection, but it is still not working correctly.

 

A sample image is attached.

 

 

 

chip.jpg

 

dlg

Using LabVIEW 2009 on Windows Vista
0 Kudos
Message 4 of 13
(5,341 Views)
Actually, the labview vision algorithms seem to work only with b&w images, so we have been taking the images in greyscale, not in color. I do not have easy access to a black and white version of the above image, so you will have to use your imaginiation.
Using LabVIEW 2009 on Windows Vista
0 Kudos
Message 5 of 13
(5,338 Views)

 


the labview vision algorithms seem to work only with b&w images,

 

 

I dont understand what you mean. You can apply a lot of greyscale filtering functions. Also in the image you posted did you try applying gamma correction and edge detection?

0 Kudos
Message 6 of 13
(5,281 Views)
Run the vi attached with the image u attached.
Message Edited by muks on 01-21-2010 03:33 PM
Message 7 of 13
(5,280 Views)

Thanks muks, that's a very useful VI. After fiddling with the contrast and color extraction, I managed to make it do basically what I want it to do. I'm just wondering, where did you find that vertical edge VI? I can't find any documentation on it and am also looking for a find horizontal edge VI for similar uses, as well as wanting to understand the edge detection VI better.

 

dlg

Using LabVIEW 2009 on Windows Vista
0 Kudos
Message 8 of 13
(5,246 Views)

dlg,

 

I suggest you first play around with vision assistant. then you generate the vi from it and you can always optimize it later in labVIEW.

 

eddddge.PNG

Message 9 of 13
(5,201 Views)
Message 10 of 13
(5,199 Views)