IceAngel89

can i use VB to stream a video from a USB digital camara, access the video 'live' extract frames and compare them (pixels)

i need to create a program to detect unattended objects. so what i want to do was to use a camara, stream the video to the PC, then extract frames to compare. if the pixels are the same for too long, like xx sec. or xxx frames, then raise an alarm

i found on the net that i can use the capture class or something like that.



Re: Game Technologies: Graphics DX in VB

OniShiro

It's not as easy as comparing the pixels, because there are small variations in light, so if you just compare the pixels to be the same, they'll never be.

There are algorithms for detecting movement between 2 images, you should check them out.




Re: Game Technologies: Graphics DX in VB

IceAngel89

About the variations in light problem, I was told of it and was thinking of like getting the pixel color then if its in a certain range of colors, then accept them as the same, something like that, not sure if it works though. Also i was thinking of comparing across a few frames for the color, something like averaging, if possible.And i will try to find the algorithms. I found some programs of motion capture, but the code isn't shown. I am doing thins for a school project so i can't take someone else's work and pass it as mine. Thanks anyway