Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [source] Webcam Video Target Tracking! (updated)
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
frank26080115




PostPosted: 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



motiontracker.t
 Description:
4th with some fixes

Download
 Filename:  motiontracker.t
 Filesize:  12.81 KB
 Downloaded:  172 Time(s)


motiontracker.t
 Description:
old 3rd version, 2nd version deleted

Download
 Filename:  motiontracker.t
 Filesize:  11.55 KB
 Downloaded:  127 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
CodeMonkey2000




PostPosted: 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.
Tony




PostPosted: Sat Dec 09, 2006 9:27 pm   Post subject: (No subject)

this is seriously cool
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
ericfourfour




PostPosted: 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.
frank26080115




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: