Computer uses webcam to play Pong with itself
As Pong attempts to solidify itself as the most hacked up game in the history of mankind, Ashish Derhgawen has programmed his computer to actually play a homegrown version of the title without any human interaction at all. By utilizing a webcam as the machine's eyes, he was able to write up an image recognition program that could detect borders and make appropriate movements based on where the ball currently was. Nothing too dramatic in terms of execution, but teaching an old computer new tricks always brings about a certain sense of pride. Check the video after the jump.
[Via hack a day]
[Via hack a day]



















Can one of them win?
To answer this, we must first defer to the oh-so-wonderful testament to 80's movie greatness, "Wargames"
LOL
The flaw of the movie wargames was that in reality if you analyze tic-tac-toe you will find the one that does the first move in tic-tac-toe should always win, and so the computer would actually initiate a nuclear war if it really used the game as basis for deciding.
The only way to win is not to play.
I think my mind just exploded.
The end is near.
Whats next? Dividing by zero?
Oh greta. Now computer's are learning to masturbate. What is the world coming to?
Isn't this a waste of energy?
I wouldn't say this is a waste of energy. Computer vision is the next big thing. Projects such as these are the first steps in becoming computer vision experts. You have to crawl before you walk.
Hey! I think I have the same webcam!!
What a difference in fate...mine is collecting dust, his is featured on Engadget.
A computer that plays with itself. The end product of artificial intelligence. These computers are becoming more and more like humans.
I think that's a computer playing against the other..
Isn't it?
Since it is running separate processes for the game, the computer can cheat against itself! Computer: "No fair! I cheated against myself!"
did I just spend the last 2 minutes of my life watching a game of pong played by two computers?
My mind just exploded
that goes to show computer do know how to have some fun...stand-by isn't the only way to kill boredom.
...so it plays with itself? I guess the up and down motion of the pong paddle... never mind
Nubaeus, that is the funniest post on Engadget today. Good one.
What is the title of this song?
Pfff, *pong*. Tell me when we can make computers that can play far more complicated games, like... Like... Chess! With an artificial intellect that powerful, true AI shall be just around the corner!
...
What?
I feel like just whipping a tennis ball at that camera.
the title of the post is misleading....
it cud have been 'computer playing pong on another computer using webcam' :D
and image processing takes some time so i guess the host computer will be winning if the velocity increases...
and one more question wat will the computer do if it loses... throw the webcam at the laptop or sends some virus thru the TCP/IP link.... hehe then it wud be fun to watch :D
Holy crap!!! What will they think of next. A computer that can play against itself without a webcam? Oh, wait...
@eb:
It's Snow (Hey Oh) by Red Hot Chili Peppers.
Wow. You have succeeded in wasting many hours of you own life, and countless minutes of others. I commend you and your pong playing device.
You should try to make it play really fast. that would be cool.
it's not a fair game really.. the laptop has the advantage of actually playing directly in the game, while the desktop has to watch the ball and track it's movements and adjust accordingly... so doesn't that mean if neither side is winning or losing that the desktop is actually better at the game? or does it mean that the desktop is more human? or.... nevermind... it doesn't mean anything...
Nothing else I'd rather watch than some hot computer on computer action, yeah!
Noga Rosenthal said:
Ultimately, these playful developments could lead to more serious applications, like automation. Giving computers the ability to recognize the real world evironment can lead to many benefits (or the inevitable takeover by robots :))
- Noga Rosenthal
some people really dont have nothing to do ....
what a stupid waste of time..
get a life dude.
Whats the big deal ? I've been using a computer and a webcam to play with myself for years !
This video was shot in russia.
OK, forgive this, but I got to:
OMGWTFBBQ! Teh HAXXOR!
Hes usign teh aimbot to haxxor my pogn! CHEETER!