AI for Everyone LESSON 19 HOMEWORK SOLUTION: Gesture Based Pong Arcade Game

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 52

  • @muhammadaleemadil
    @muhammadaleemadil 2 роки тому

    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

  • @jorgechavarriaga395
    @jorgechavarriaga395 Рік тому

    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.

  • @FuchurTheDragon
    @FuchurTheDragon 2 роки тому

    ... 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!

  • @richardfothergill8090
    @richardfothergill8090 3 роки тому

    Just want to say thanks so much for these videos. Really appreciate them. Nice to see the problem solving live

  • @8Jallin
    @8Jallin 3 роки тому +1

    I'm so mad I just found your channel.
    Great content !!! Thank you.

  • @MrHazahari695
    @MrHazahari695 3 роки тому

    Not try anything before. But love to see you giving a lecture. Something new to me at my age.

  • @CarbonMusicCouch
    @CarbonMusicCouch 3 роки тому

    Thank you Paul, I always learn something new in your series.

  • @edSabio572
    @edSabio572 2 роки тому

    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.

  • @riffaxelerator7299
    @riffaxelerator7299 2 роки тому

    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.

  • @augustinecalvin7722
    @augustinecalvin7722 Рік тому

    Paul if I complete this course do you think that would qualify me for a programming job?

  • @cbrombaugh
    @cbrombaugh 3 роки тому

    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. :)

  • @leeg.1402
    @leeg.1402 3 роки тому

    Thanks for the great video, Paul. Truly appreciate your efforts.

  • @rubialugattimoreira1978
    @rubialugattimoreira1978 3 роки тому

    The best channel for makers

    • @paulmcwhorter
      @paulmcwhorter  3 роки тому

      Wow, you are so kind. Thank you for the encouraging words, and hope yoy continue to enjoy the material.

  • @angelovillano50
    @angelovillano50 2 роки тому

    i am legend! as always thank you Paul!!

  • @SaffatUllah
    @SaffatUllah 4 місяці тому

    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.

  • @joestanco4341
    @joestanco4341 3 роки тому

    Great lesson. Folded, got the ball to bounce correctly but could not get it to work with the paddle.

    • @paulmcwhorter
      @paulmcwhorter  3 роки тому

      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.

  • @kglasnapp
    @kglasnapp 3 роки тому +2

    When I go to your web site -- I can't find "Gesture Based Arcade Game" -- what am I doing wrong.

    • @paulmcwhorter
      @paulmcwhorter  3 роки тому

      Should be right there. Here is a link: toptechboy.com/ai-for-everyone-developing-a-gesture-based-arcade-game-based-on-mediapipe-and-python/

    • @kglasnapp
      @kglasnapp 3 роки тому

      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

  • @jasonhu446
    @jasonhu446 Рік тому

    LEGEND!!!

  • @dennisplowman7666
    @dennisplowman7666 3 роки тому

    Great Job!

  • @aman-sood
    @aman-sood 2 роки тому

    Struggled, but am a legend nonetheless! I did it using a in range()

  • @juldupont
    @juldupont Рік тому

    you are a legend !!

  • @hoellenstein
    @hoellenstein 2 роки тому

    When i played the game, my wife thought i was having a video conference and i am waving to my girlfriend 🤣🤣

  • @augustinecalvin7722
    @augustinecalvin7722 Рік тому

    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

  • @polito-yd8fp
    @polito-yd8fp Рік тому

    I folded up like a cheap Walmart lawn chair 😊

    • @paulmcwhorter
      @paulmcwhorter  Рік тому

      But you will get up, dust yourself off, and try again!

  • @augustinecalvin7722
    @augustinecalvin7722 Рік тому

    I am legend!

  • @mannatkaur1146
    @mannatkaur1146 2 роки тому

    I am Legend!

  • @sharyarkhan4363
    @sharyarkhan4363 2 роки тому

    im .70% legenddddd

  • @yusufguler1662
    @yusufguler1662 2 роки тому

    I m legend!

  • @DamienPictures
    @DamienPictures 2 роки тому

    This is my solution to the homework assignment:
    ua-cam.com/video/m3YI1oDOgxM/v-deo.html
    Thank you!