VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Motion Detection

Dobnik Sebastjan  (2 Submissions)   Graphics   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

Video Motion Detection is really quite simple. The 'joke' is to compare
previous picture with the new one. So, teoreticaly this differences
between 2 pictures are motion of some kind...
BUT it is not that easy If U wish to do it correctly you'll have to
1. break pixel colors apart
2. set up a small buffer for let us say last 20 frames to counteraffect
picture / pixel blinking
3. unite colors
4. check average value of a single pixel for the last xx frames
5. Check if difference is big enought to raise detection
and finaly
6. Detect motion...
This small demonstration requires Controll ezVidC60.ocx which is added to
driver.zip file. You can also download it from https://www.shrinkwrapvb.com.
This
demo runs (or so it should) on win 98 or better... up to XP and is written for
VB5 and above.
Hope u like this demo. Votes and sugestions are wanted.

Rate Motion Detection (10(10 Vote))

Download Motion Detection

Motion Detection Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters