I made a Program to Play Pac-Man with Ninjutsu...

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 มิ.ย. 2024
  • In this video, we will explore the exciting world of machine learning and Python to create a unique gaming experience using Naruto hand signs as controllers to play Pacman. The project uses a machine learning algorithm to recognize the hand signs of Naruto characters and convert them into controls for playing the classic game, Pacman. I will walk you through the entire process, from training the machine learning model to creating a custom interface to connect the hand signs to the game controls. If you are interested in learning about the exciting possibilities of machine learning and Python, and how it can be applied to gaming and other real-world applications, then this video is for you. - this was written by ChatGPT 💀
    JOIN THE DISCORD!
    💻 Discord: / discord
    💻 Instagram: / im.ardens
    💻 GitHub: github.com/myNameIsArdens
  • บันเทิง

ความคิดเห็น • 110

  • @doctorg3676
    @doctorg3676 ปีที่แล้ว +77

    How much limited edition blue crystal meth was consumed in the making of this video

    • @JustPyroYT
      @JustPyroYT ปีที่แล้ว +8

      *Y E S*

    • @aCreativeNamee
      @aCreativeNamee 10 หลายเดือนก่อน

      Not enough

    • @kianchristopher7704
      @kianchristopher7704 6 หลายเดือนก่อน

      less than average

    • @TylerTMG
      @TylerTMG หลายเดือนก่อน

      ​@@aCreativeNameeas his dealer I agree

  • @bluezcreen
    @bluezcreen ปีที่แล้ว +17

    Next video:
    "I played Flappy Bird with a nuclear briefcase"

  • @JustPyroYT
    @JustPyroYT ปีที่แล้ว +29

    Please continue this "series". Its really cool! 👍

  • @mtnyoucef
    @mtnyoucef ปีที่แล้ว +25

    apparently the problem is in what it detects when you trasition between hand positions, my suggestion is that you should have added a delay in detection when there is a change in the type of detection it gets, meaning :
    if detected-class-in-frame_t-1 != detected-class-in-frame_t:
    sleep(0.3) # enough time for you to switch position

    • @Ardens.
      @Ardens.  ปีที่แล้ว +11

      I tried that actually!! That solution worked but it arose another problem. By delaying the frames, I also delay the input keys; meaning I could not control pacman with good speed. I tried finding a sweet spot for how long I should delay for but that had it's own problems.

    • @mtnyoucef
      @mtnyoucef ปีที่แล้ว +3

      @@Ardens. mhm i see, makes sense.
      Well anyway it is still a great project and great video GJ !

    • @Ardens.
      @Ardens.  ปีที่แล้ว +2

      Thank you so much! It's so cool to see others thinking what I was thinking. And also, thank you for watching!

    • @SunnyKimDev
      @SunnyKimDev ปีที่แล้ว +4

      maybe the simple solution here is just getting better at switching positions
      become the ninja Arden, ascend and join us in a higher level (of pacman)

    • @FuryJack07
      @FuryJack07 ปีที่แล้ว +2

      ​@@Ardens. I have an idea. You teach the program to recognize when the image is blurry and then you make it ignore those frames.
      It shouldn't be THAT hard, right?

  • @ZENUX_EDITS
    @ZENUX_EDITS ปีที่แล้ว +12

    This guy is underrated af 💀

  • @that_guy1107
    @that_guy1107 ปีที่แล้ว +8

    To fix the misinputs could you have only pressed the key if the certainty of the detection was above say 60%. I haven’t used tensorflow properly before but i assume there is a way to access that value.

    • @nicholasspring
      @nicholasspring 11 หลายเดือนก่อน

      That's what I was thinking!

  • @Muhammadusman-fb2dp
    @Muhammadusman-fb2dp ปีที่แล้ว +1

    Amazing video I enjoyed it keep up the videos coming

  • @tworsfeline2302
    @tworsfeline2302 ปีที่แล้ว +18

    No keyboard needed!
    Me: Then how did you write the code???

    • @unneccry2222
      @unneccry2222 ปีที่แล้ว +4

      with hand signs

    • @Bruno-sg3wg
      @Bruno-sg3wg ปีที่แล้ว +2

      A magnetic needle and really steady hands

  • @AquaQuokka
    @AquaQuokka ปีที่แล้ว +1

    Wake up babe, new Ardens vid just dropped!

  • @IamPyu-v
    @IamPyu-v ปีที่แล้ว +2

    The long awaited video.

  • @dimkau09
    @dimkau09 ปีที่แล้ว +1

    Finally a new video! I just love your videoes

    • @Ardens.
      @Ardens.  ปีที่แล้ว +1

      Glad you like them!

    • @AquaQuokka
      @AquaQuokka ปีที่แล้ว +1

      ​@@Ardens. Same bro!

  • @mohithp8700
    @mohithp8700 ปีที่แล้ว +8

    amazing project keep up the good work

    • @Ardens.
      @Ardens.  ปีที่แล้ว

      Thanks, will do!

    • @axel3151
      @axel3151 ปีที่แล้ว

      ​@@Ardens.you fr look like onevilage

  • @abubakkarsiddikbadhon29.47
    @abubakkarsiddikbadhon29.47 ปีที่แล้ว

    I was waiting for yoir video !

  • @michaelchen2821
    @michaelchen2821 10 หลายเดือนก่อน +3

    ...Technically... To fix the in-between hand signs issue, what you really need to do is to take a bunch of photos of all the in-between hand sign positions and classify them as "in between". Then, your code should focus only on the real hand signs.

  • @posho9535
    @posho9535 ปีที่แล้ว

    Ardens you are the Best keep going pls

  • @SCPShyguy-vd7rm
    @SCPShyguy-vd7rm 19 ชั่วโมงที่ผ่านมา

    You could have made an individual state where the model gets the option to detect the input as undefined and trained it on being more specific by showing it more hands that are invalid

  • @zaydhassan1069
    @zaydhassan1069 ปีที่แล้ว

    This is amazing

  • @leiocera2433
    @leiocera2433 10 หลายเดือนก่อน

    That's awesome, dattebayo!

  • @Blargnla
    @Blargnla 10 หลายเดือนก่อน

    I'd suggest the possibility of there being no output if the image detection of the input is below a certain percentage

  • @CrazyLuke11
    @CrazyLuke11 6 หลายเดือนก่อน

    You destroyed my Ears!!!

  • @nobody-er6ys
    @nobody-er6ys ปีที่แล้ว

    When will you make some game dev projects?

  • @leonardolimadesouzalopes2007
    @leonardolimadesouzalopes2007 ปีที่แล้ว

    Very cool

    • @Ardens.
      @Ardens.  ปีที่แล้ว

      thanks!

  • @sakke7104
    @sakke7104 ปีที่แล้ว +1

    So just add a delay requiring a set amount of frames detecting the same handsign before sending the input then?

    • @Ardens.
      @Ardens.  ปีที่แล้ว +1

      I should've mentioned that I tried that in the video. The problem with that is by delaying the frames, I would also delay the input keys. A key isn't pressed until a sign is detected. This means controlling pacman would be slow & I'd die quicker

  • @xevento8682
    @xevento8682 7 หลายเดือนก่อน

    To fix the hand sign transition issues compare the images and add a difference threshold. If the difference between the current and last frame is very high, then your in-between hand positions, therefore the program shouldn't detect anything. If the difference is low, you're hands aren't moving and the program should start detecting.
    As for implementation, you could convert the image to grayscale with fixed resolution and then to a Numpy 2D vector and after every frame save the last frame in another variable.
    Then just subtract the two matrices and then take the mean of the difference matrix. That is your value to check. Now you just need to define a threshold, that when the mean of the difference matrix is low enough it checks for hand signs.

    • @Ardens.
      @Ardens.  7 หลายเดือนก่อน

      please check out this video: th-cam.com/video/eBMgyC9xCeE/w-d-xo.html

  • @walksanator
    @walksanator 8 หลายเดือนก่อน

    You shouls try pacman championship edition

  • @niil047
    @niil047 ปีที่แล้ว +1

    tetris with eye tracking

  • @nihiqallam5616
    @nihiqallam5616 ปีที่แล้ว

    Hi could you make game tutorial especially for making horror survival games like slient hill and resident evil ❤

  • @romenyesayan3855
    @romenyesayan3855 หลายเดือนก่อน

    ardens ardens ardens

  • @thecloakedgamer2888
    @thecloakedgamer2888 ปีที่แล้ว

    @Ardens What would you say are the top videos I need to watch in order to implement something similar to this. I was thinking about making a side scroller using Naruto hand symbols. How long did training take?
    Do you happen to have you code still? I am participating in a hackathon and would like to use it of course with credit to you

    • @Ardens.
      @Ardens.  ปีที่แล้ว

      Hi, thecloakedgamer, so the videos I watched that helped me with this project are from a TH-camr called "Nicholas Renotte." I credited him at 3:25. The first thing you need to do is install all the necessary dependencies. Watch his video titled "Install Tensorflow Object Detection From Scratch in 5 Steps | Python Deep Learning" to help with that. After that, you can watch his sign language detection and object detection videos and follow along. Training for me took about an hour to finish; it could take more or less time depending on how many steps you're training for and the speed of your GPU. I do still have the code for my project, but it's no different from the videos I'm pointing you to; I simply edit it a bit for this project. So I don't think I deserve any credit.

    • @thecloakedgamer2888
      @thecloakedgamer2888 ปีที่แล้ว

      @@Ardens. Would you be willing to share the code privately? I have a short time span for the hackathon and would prefer to work on gameplay of the game rather than the AI code.

    • @Ardens.
      @Ardens.  ปีที่แล้ว

      Text me on Instagram. You can find it in my descriptions & on my TH-cam banner

    • @thecloakedgamer2888
      @thecloakedgamer2888 ปีที่แล้ว

      @@Ardens. I made the same comment a couple times and it keeps not showing up. I can go on instagram. Is there another way?

    • @Ardens.
      @Ardens.  ปีที่แล้ว

      I'm not telling you to comment anything. My Instagram account is available in this video's description. Just go to the link and send me a message.

  • @DarkMatterX101
    @DarkMatterX101 ปีที่แล้ว

    Does anyone know what code this program uses?

  • @-hackers_industry
    @-hackers_industry ปีที่แล้ว +1

    VIDEO IDEA: "making a game in unreal engine with no experience(in 3 days)".

    • @Ardens.
      @Ardens.  ปีที่แล้ว +1

      I'd do that video honestly, but unfortunately I don't have a desktop PC that can handle UE5 right now.

    • @-hackers_industry
      @-hackers_industry ปีที่แล้ว

      @@Ardens. Something i can relate to. xd

    • @-hackers_industry
      @-hackers_industry ปีที่แล้ว

      @@Ardens.Something i can relate to... xd

  • @tibocub
    @tibocub ปีที่แล้ว

    yo now let's play GTA with gang signs

  • @notZerr
    @notZerr ปีที่แล้ว

    Real

  • @fnasfanfnaffan6044
    @fnasfanfnaffan6044 6 หลายเดือนก่อน

    in reality he's a puppet master and controlling the keys with chakra strands

  • @user-hz2zr6qr2z
    @user-hz2zr6qr2z ปีที่แล้ว

    gg

  • @LambdaCreates
    @LambdaCreates ปีที่แล้ว

    Next video:
    I played Among Us with my face.

  • @umikaliprivate
    @umikaliprivate ปีที่แล้ว +1

    try tetris with this control scheme.

  • @syylvia
    @syylvia ปีที่แล้ว

    good luck trying to keep playing after you summon a big ass frog and crush your house

    • @Ardens.
      @Ardens.  ปีที่แล้ว

      😂😂

  • @Ardens.
    @Ardens.  ปีที่แล้ว +4

    Why is he called Pac-Man? Do he be packing?

    • @starrymohannad
      @starrymohannad ปีที่แล้ว +1

      it called Pac-Man so a group of nerds can name the package manager for their linux distro after it 20 years later
      I use arch btw

    • @QuinceTart10
      @QuinceTart10 ปีที่แล้ว

      @@starrymohannad true
      I use Arch, btw

    • @AquaQuokka
      @AquaQuokka ปีที่แล้ว

      I use Debian
      I do not use Arch, btw

    • @QuinceTart10
      @QuinceTart10 ปีที่แล้ว

      @@AquaQuokka If you never used (I suppose, can't see in your mind) Arch, then you don't get the joke. In Arch Linux there is a package manager called "pacman".
      I use Arch, btw

    • @AquaQuokka
      @AquaQuokka ปีที่แล้ว

      @@QuinceTart10 No, I know there is.

  • @tarasj6908
    @tarasj6908 ปีที่แล้ว

    now play dark souls using naruto hand signs :trollface:

  • @youssefmic
    @youssefmic ปีที่แล้ว

    Yooooooo

  • @JSiuDev
    @JSiuDev 10 หลายเดือนก่อน

    If naruto school use this system ....🤣

  • @OSCHeaven
    @OSCHeaven ปีที่แล้ว +2

    You should make mario with fortnite dances

    • @Ardens.
      @Ardens.  ปีที่แล้ว

      lmaooo

  • @Anonymous_Amit
    @Anonymous_Amit ปีที่แล้ว

    Next Gta 😂

  • @mrpotion
    @mrpotion ปีที่แล้ว

    bro suggest me a programming language to learn besides python and JS

    • @Ardens.
      @Ardens.  ปีที่แล้ว

      Languages are just tools to be used in a way that is best suited for what you're doing, but since you asked, here: Lua, a C language and Rust.

    • @AquaQuokka
      @AquaQuokka ปีที่แล้ว

      C#, Rust, Elixir, V, Clojure, Kotlin, Java

  • @uzmaasif128
    @uzmaasif128 7 หลายเดือนก่อน

    Arens arens arens

  • @Mario4zz
    @Mario4zz ปีที่แล้ว

    Play fnf based on head movement !

  • @IamPyu-v
    @IamPyu-v ปีที่แล้ว

    i clicked that

  • @shreder95ua
    @shreder95ua 10 หลายเดือนก่อน

    hell nah, my brother anime fanboy will send you 1000 dollars for this

  • @guillermoleon0216
    @guillermoleon0216 10 หลายเดือนก่อน

    Man you gave me such a bad idea

  • @bbdd5609
    @bbdd5609 ปีที่แล้ว

    Hi

  • @christianemazzola5863
    @christianemazzola5863 11 หลายเดือนก่อน

    I died because the hands are faulty

  • @bmigames123
    @bmigames123 ปีที่แล้ว

    :troll:

  • @letter_o_hyphen_letter_o
    @letter_o_hyphen_letter_o 7 หลายเดือนก่อน

    NO FUCKING WAY
    PAC MAN JUTSU

  • @HeroicTime
    @HeroicTime ปีที่แล้ว +2

    ALL NARUTO FANS IN THE COMMENTS STAND UUUP!!!

    • @Ardens.
      @Ardens.  ปีที่แล้ว

      🥷🥷🥷

  • @leeabshire8352
    @leeabshire8352 ปีที่แล้ว

    🌟 Promo*SM

  • @exotick235
    @exotick235 ปีที่แล้ว

    last!

  • @abubakkarsiddikbadhon29.47
    @abubakkarsiddikbadhon29.47 ปีที่แล้ว

    Hi , how are you ??????

    • @Ardens.
      @Ardens.  ปีที่แล้ว +1

      im good :) thank u for asking

  • @PokeNaj
    @PokeNaj ปีที่แล้ว

    101th

  • @Syntax_Break
    @Syntax_Break ปีที่แล้ว +1

    Now play Getting Over It by making sounds from your mouth

  • @axel3151
    @axel3151 ปีที่แล้ว

    you look like onevilage

  • @the-MaZe
    @the-MaZe 11 หลายเดือนก่อน

    Please less ear-rape, otherwise I like your videos.