Tuesday, May 5, 2009

Rovio works!



The point of the whole project is to get the ball into the goal.

The algorithm goes:
  1. take a picture
  2. convert it from RGB to YUV
  3. mask out the ball and the posts into 2 separate matrices
  4. find the ball
  5. turn to it
  6. rotate around the ball until you find the goal
  7. shoot!
And if it were only 7 lines of code my life would have been much easier for the last little while ;) Here's all the code. And here's the Rovio in action:


video

Woot!


video

The next step is to clean up and compile the code to get it ready to play soccer against the other Rovios!

Labels: , , , , ,

3 Comments:

At May 5, 2009 12:28 PM , Blogger roschler said...

Nice job Max! Maybe you should add a little victory dance to the final? :)

 
At May 5, 2009 2:05 PM , Blogger Scott said...

Well done indeed sir!

 
At May 6, 2009 2:15 AM , Blogger Max said...

Thanks! :)

 

Post a Comment

Links to this post:

Create a Link

<< Home