Gesture Controlled Snake Game Playing with OpenCV and Computer Vision | Penguin Coders

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 39

  • @kick-tech4691
    @kick-tech4691 5 лет назад

    Hey Mohit such a great idea it is bro . It can be used as controller for many mission critical applications such as bomb deffusal robots , and some critical drone etc . I would love to contribute to.

    • @PenguinCoders
      @PenguinCoders  5 лет назад

      Hey KICK-TECH, it was nice to hear that you liked this project. I would love to have your contribution.

    • @kick-tech4691
      @kick-tech4691 5 лет назад

      @@PenguinCoders I'd love to . Btw I'm Suraj your classmate

  • @mathieulegentil5657
    @mathieulegentil5657 3 года назад

    great video man! can you please tell me how you did in order for the game to take as input the gestures detected?

    • @PenguinCoders
      @PenguinCoders  3 года назад +1

      Thanks for the compliment. You can get the code from the link in the description, with instructions to run the project. Please reply back if you have any issues.

    • @mathieulegentil5657
      @mathieulegentil5657 3 года назад

      @@PenguinCoders No issues! Thanks

  • @YahiyaMulla
    @YahiyaMulla 4 года назад

    Good one bro 👍🏽

  • @RuchiSharma-hv2xk
    @RuchiSharma-hv2xk 4 года назад +1

    can you please tell me how can i access the real time screen if i try to play any online game using gestures like this? i have created gesture recognization part but i am not able to access the game screen

    • @PenguinCoders
      @PenguinCoders  4 года назад

      I used PyAutoGUI library for controling the keyboard movements. You can read more about it here - pyautogui.readthedocs.io/en/latest/

    • @PenguinCoders
      @PenguinCoders  4 года назад

      Please refer the official site and documentation - pypi.org/project/PyAutoGUI/
      Install it using pip on Python. It doesn't have any Windows dependencies.

    • @RuchiSharma-hv2xk
      @RuchiSharma-hv2xk 4 года назад

      @@PenguinCoders yes thanks i installed it using conda can you please tell me that if i try to play a simple car racing game then what should i change in your code? i am working on this project since many days but still i am not able to play racing car game

    • @PenguinCoders
      @PenguinCoders  4 года назад +1

      You can refer this video ruclips.net/video/W5ZU0VALTzU/видео.html
      The same instructions should work for your project too :)

  • @manjuender6286
    @manjuender6286 5 лет назад +1

    Hi, I installed it and tried to run the game-control-using-object-tracking.py script but it is not able to detect the object properly is there a condition that we have to use that green kind of colored pen or any motion is detected.

    • @PenguinCoders
      @PenguinCoders  5 лет назад

      Hi, yes the script masks only green colour object. So it is advised to use a green object like pen, or ball etc. And you will be able to detect it.

  • @ajay.p1784
    @ajay.p1784 5 лет назад

    hey mohit can you tell how do i can run the gesture and game at a same and don't understand how to run it please help me

    • @PenguinCoders
      @PenguinCoders  4 года назад

      You can check the instructions on the Github repo. Link is in description of the video.

    • @PenguinCoders
      @PenguinCoders  4 года назад

      You can refer to this video for instructions for executing the project- ruclips.net/video/W5ZU0VALTzU/видео.html

  • @arnabsarma
    @arnabsarma 4 года назад

    Hey bro "settingsSnakeFun.py" is not running. what to do next?please help

    • @PenguinCoders
      @PenguinCoders  4 года назад

      That is just meant as a configuration file to the main game snakeGame.py You do not need to run the settings file.

  • @vartikavv1455
    @vartikavv1455 4 года назад

    Can u make a video of how to run the project from start ??

    • @PenguinCoders
      @PenguinCoders  4 года назад

      Thanks for the suggestion. I would definitely try to do one.

    • @vartikavv1455
      @vartikavv1455 4 года назад

      @@PenguinCoders yes pls i want to run this project il will be helpful if u can give a tentative date

    • @vartikavv1455
      @vartikavv1455 4 года назад

      @@PenguinCoders is it only runnable in ubuntu or linux

    • @PenguinCoders
      @PenguinCoders  4 года назад +1

      Expect the video to come in a day or two. By end of this weekend

    • @PenguinCoders
      @PenguinCoders  4 года назад +1

      You can run it on Windows too, provided you install all the requirements. I haven't tested in Windows though!

  • @devendrasharma5567
    @devendrasharma5567 4 года назад

    AttributeError Traceback (most recent call last)
    in
    55 frame = cv2.flip(frame,1)
    56 #Resize the given frame to a 600*600 window
    ---> 57 frame = imutils.resize(frame, width = 600)
    58 #Blur the frame using Gaussian Filter of kernel size 11, to remove excessivve noise
    59 blurred_frame = cv2.GaussianBlur(frame, (11,11), 0)
    ~\anaconda3\lib\site-packages\imutils\convenience.py in resize(image, width, height, inter)
    67 # grab the image size
    68 dim = None
    ---> 69 (h, w) = image.shape[:2]
    70
    71 # if both the width and height are None, then return the
    AttributeError: 'NoneType' object has no attribute 'shape'
    how to solve this bro I run your code But it have problem

    • @PenguinCoders
      @PenguinCoders  4 года назад

      Hi Devendra, the error occurs when there is no green object detected in the frame. Make sure to hold the green object in front of camera before you start the python program. This should solve your error. If you have any problem, drop a mail at mohit@penguincoders.net

    • @devendrasharma5567
      @devendrasharma5567 4 года назад

      @@PenguinCoders Ok thanks

  • @ramkumarghasti1528
    @ramkumarghasti1528 5 лет назад

    hi bro can you tell me how to run the project

    • @PenguinCoders
      @PenguinCoders  5 лет назад

      Please follow the link provided in the description.

    • @PenguinCoders
      @PenguinCoders  4 года назад

      You can use these instructions for the project: ruclips.net/video/W5ZU0VALTzU/видео.html