[source] Webcam Video Target Tracking! (updated)
Author |
Message |
frank26080115
|
Posted: Mon Dec 04, 2006 5:41 pm Post subject: [source] Webcam Video Target Tracking! (updated) |
|
|
This program compares images taken every second with an original picture, and then finds the pixels that are different, identifies the target and IGNORES small targets, frames the target in a box and draws a dot to find it's center
you need the window to be shown and active in order for it to work, because if it is a hidden window there is more chance of picID to crash it
UPDATE: new features, anykey start up, initial sample picture retake, and colour relationship comparison.
UPDATE: draws target, bug proofing
UPDATE: motion indication, bug fixes
small update: code change makes no difference but better and more bug proof
it can only track one target, if there is two large targets, it will aim in between them, which, of course, is bad
some other problems are that the tolerance are off and can probably never be perfect, and dorgem can only take one picture per second at fastest. also the time of day makes the lighting different and causes incorrect results
in order to run this program, you need another program to take webcam pictures every second as "test2.jpg" (change as you wish, but file name must be changed in program too) in the same folder, i used dorgem at http://dorgem.sourceforge.net/
my gun turret can pan, i need another gear box so it can tilt, then i would hook it up to my parallel port and see if i can actually aim at stuff, right now you can probably make an intruder alarm if you can use the net functions in turing
see http://thesentrygun.com/ and http://ringmast3r.no-ip.com/sentry/
im going to try and see if i can make it so that it sees the target, and the program remembers the clothing colour and then look only for the colour, this will probably let it look for only one target. might also use time to adjust for brightness
video of version one working ( 1:08 long , file size: 10 mb)
pretty nice use for 2d array practice
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
motiontracker.t |
Filesize: |
12.81 KB |
Downloaded: |
172 Time(s) |
Description: |
old 3rd version, 2nd version deleted |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
motiontracker.t |
Filesize: |
11.55 KB |
Downloaded: |
127 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
CodeMonkey2000
|
Posted: Sat Dec 09, 2006 2:27 pm Post subject: (No subject) |
|
|
wow, this is pretty cool. lol, i dont kno how it works, but it works, mostly. it really slows down my comp tho. u can make ur own alarm system with this, or face recognization for ur comp.
|
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
|
|
|
![](images/spacer.gif) |
ericfourfour
|
Posted: Sat Dec 09, 2006 11:32 pm Post subject: (No subject) |
|
|
This reminds me of eyetoy for ps2. It was probably made using a similar concept.
|
|
|
|
|
![](images/spacer.gif) |
frank26080115
|
Posted: Sun Dec 10, 2006 11:51 am Post subject: (No subject) |
|
|
interesting point, i might be able to give the computer commands with barcode like cards maybe, or count fingers
or... if turing could, activate screen saver when nobody is around and shut the screen saver when someone comes in the room
|
|
|
|
|
![](images/spacer.gif) |
|
|