VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Motion Detection

by Dobnik Sebastjan (2 Submissions)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (10 Votes)

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

Download Motion Detection

Download Motion Detection (102 KB)

Motion Detection Comments

No comments have been posted about Motion Detection. Why not be the first to post a comment about Motion Detection.

Post your comment

Subject:
Message:
0/1000 characters