View Single Post
  #3   Spotlight this post!  
Unread 10-01-2009, 23:06
Woody1458's Avatar
Woody1458 Woody1458 is offline
AKA: Woody Jansen
FRC #1458 (Danvillans)
Team Role: Engineer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Danville, California
Posts: 286
Woody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to behold
Send a message via AIM to Woody1458
Re: Give me a general direction for the camera.

Im not on my team's prgramming team so I don't know specifically about this camera but I have programmed my computers webcam to follow a red ball and use it as mouse control. What I did was find all point on the image that were within certain color constrictions (r>200 b<20 g<20) then count the points, if there werent enough point the ball wasn't in image. If it counted enough point it would find the average location of the sum of points.

(sum x_loc/total locations,sum y_loc/total locations)

This worked pretty well. good luck!
__________________
"Everything we produce is made of: Duct Tape, zip ties, and hope" - Christian Allinson 1458

Anyone can watch Westcoast Choppers and see adults build things, but FIRST is great because it encourages kids to do the building and adults to do the watching.

GO DANVILLANS!!
Reply With Quote