We can make a two player game having two pads , top and bottom of the screen , take the finger tip index (X,Y) and (X2,Y2) points from the frame and then show the game movements on a black window screen using numpy array and enjoy your game on that screen . THANKS PAUL . LOVED YOUR LESSON
Great lesson! To avoid the 'mirror' effect that could be annoying... you can use: frame = cv2.flip(frame, 1) In this way it will be more comfortable to handle the paddle.
... Thank you for the very interesting assignment - indeed I spent lots of time to finally become legend. I could use the class stuff you tought in your last lessons and ended up with a version where the snip of the index finger accelerates the ball if it comes in time before the ball hits the paddle. Thanks again!
Thanks Paul! I don't play video games but loved the code lesson. It seems to me that this algorithm is used to guide a vacuum cleaner sold in stores. It would be nice to apply / modify this program to help a blind man navigate the walls of a house unassisted. I think someone has already done this but it would be nice to do it at an affordable price...Just a thought.
A little tip for those interested. Instead of doing int(paddleWidth/2) within your code. I assigned that to a variable called paddleHalf and you can use that instead.
I AM LEGEND! Thanks for these AI lessons, Paul. This is really interesting stuff. My game held my wife's attention for 4 games; not too bad for a couple days' work. :)
I AM LEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAND!!! Instead of using = conditionals like you did to check if ball has hit the paddle, I made a list of range(paddleLeftBound, paddleRightBound), and then used 'in' to check if xPos of the ball is in the list. Worked quite well for me, but I'm not super sure if my method is computationally more efficient than yours.
Thanks I was able to get the example to work. For some reason I had to change line self.hands=self.mp.solutions.hands.Hands(False,maxHands,tol1,tol2) to self.hands=self.mp.solutions.hands.Hands(maxHands) to get the example working. Do I have the wrong version of mediapipe. The error message I get with the original code is: create_int(): incompatible function arguments. The following argument types are supported: 1. (arg0: int) -> mediapipe.python._framework_bindings.packet.Packet
Interesting how the ball speed increases when I take my hand out of the frame because the FPS increases because the program is not having to make all the calculations for my hand
We can make a two player game having two pads , top and bottom of the screen , take the finger tip index (X,Y) and (X2,Y2) points from the frame and then show the game movements on a black window screen using numpy array and enjoy your game on that screen .
THANKS PAUL . LOVED YOUR LESSON
Great lesson! To avoid the 'mirror' effect that could be annoying... you can use:
frame = cv2.flip(frame, 1)
In this way it will be more comfortable to handle the paddle.
... Thank you for the very interesting assignment - indeed I spent lots of time to finally become legend. I could use the class stuff you tought in your last lessons and ended up with a version where the snip of the index finger accelerates the ball if it comes in time before the ball hits the paddle. Thanks again!
Just want to say thanks so much for these videos. Really appreciate them. Nice to see the problem solving live
I'm so mad I just found your channel.
Great content !!! Thank you.
Not try anything before. But love to see you giving a lecture. Something new to me at my age.
Hope you enjoy!
Thank you Paul, I always learn something new in your series.
Thanks Paul! I don't play video games but loved the code lesson. It seems to me that this algorithm is used to guide a vacuum cleaner sold in stores. It would be nice to apply / modify this program to help a blind man navigate the walls of a house unassisted. I think someone has already done this but it would be nice to do it at an affordable price...Just a thought.
A little tip for those interested. Instead of doing int(paddleWidth/2) within your code. I assigned that to a variable called paddleHalf and you can use that instead.
Paul if I complete this course do you think that would qualify me for a programming job?
I AM LEGEND! Thanks for these AI lessons, Paul. This is really interesting stuff. My game held my wife's attention for 4 games; not too bad for a couple days' work. :)
Glad to help!
Thanks for the great video, Paul. Truly appreciate your efforts.
My pleasure!
The best channel for makers
Wow, you are so kind. Thank you for the encouraging words, and hope yoy continue to enjoy the material.
i am legend! as always thank you Paul!!
Legend!
I AM LEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAND!!!
Instead of using = conditionals like you did to check if ball has hit the paddle, I made a list of range(paddleLeftBound, paddleRightBound), and then used 'in' to check if xPos of the ball is in the list. Worked quite well for me, but I'm not super sure if my method is computationally more efficient than yours.
LEGEND!
Great lesson. Folded, got the ball to bounce correctly but could not get it to work with the paddle.
So we will need to you to get up, dust yourself off, and get back in the saddle and try again. It is the cowboy way.
When I go to your web site -- I can't find "Gesture Based Arcade Game" -- what am I doing wrong.
Should be right there. Here is a link: toptechboy.com/ai-for-everyone-developing-a-gesture-based-arcade-game-based-on-mediapipe-and-python/
Thanks I was able to get the example to work. For some reason I had to change line
self.hands=self.mp.solutions.hands.Hands(False,maxHands,tol1,tol2) to
self.hands=self.mp.solutions.hands.Hands(maxHands)
to get the example working. Do I have the wrong version of mediapipe. The error message I get with the original code is:
create_int(): incompatible function arguments. The following argument types are supported:
1. (arg0: int) -> mediapipe.python._framework_bindings.packet.Packet
LEGEND!!!
Great Job!
Thanks!
Struggled, but am a legend nonetheless! I did it using a in range()
you are a legend !!
LEGEND!
When i played the game, my wife thought i was having a video conference and i am waving to my girlfriend 🤣🤣
Interesting how the ball speed increases when I take my hand out of the frame because the FPS increases because the program is not having to make all the calculations for my hand
I folded up like a cheap Walmart lawn chair 😊
But you will get up, dust yourself off, and try again!
I am legend!
LEGEND!
I am Legend!
LEGEND!
im .70% legenddddd
I m legend!
This is my solution to the homework assignment:
ua-cam.com/video/m3YI1oDOgxM/v-deo.html
Thank you!