Destroying Brain Age With Image Recognition

Sdílet
Vložit
  • čas přidán 4. 07. 2024
  • I'm using image recognition to play Brain Age's minigame calculations with 100 equations.
  • Věda a technologie

Komentáře • 188

  • @ImmortalAbsol
    @ImmortalAbsol Před 14 dny +515

    Brain Age: What's 5x4?
    AI: z□

    • @Photo650D
      @Photo650D Před 10 dny +3

      Lovely font

    • @xehP
      @xehP Před 9 dny +2

      you think that's bizarre, you should watch TASBot plays Brain Age.

    • @LDTV22OfficialChannel
      @LDTV22OfficialChannel Před 8 dny

      @@xehP I saw that and it makes literal drawings

  • @Snidbert
    @Snidbert Před 21 dnem +1002

    if you use your brain, you don't need to use your brain

  • @CielMC
    @CielMC Před 21 dnem +260

    If you look at brain age tases, the answers can be drawn so much easier than the honest way

    • @HibiscusOrchid
      @HibiscusOrchid Před 5 dny +6

      Lol, i remember one video where it's solving words by scribbling random nonsense and the last word the game filled itself by typing w h a T

  • @JackBond1234
    @JackBond1234 Před 21 dnem +640

    I figure you could save more time by taking a screenshot of the next equation and processing it while drawing the answer for the current equation

    • @NationalCapitalRegionOfManila
      @NationalCapitalRegionOfManila Před 21 dnem +16

      Indeed

    • @user-id3fc8qs7y
      @user-id3fc8qs7y Před 21 dnem +71

      Yeah, it's a cool way to utilize this unused CPU time while it waits for input system to take the answer!

    • @youtubehandlesux
      @youtubehandlesux Před 20 dny +98

      Or just use pattern detection instead of using bloated neural network OCR so it can be processed in 1/60th of a second

    • @JackBond1234
      @JackBond1234 Před 20 dny +78

      @@youtubehandlesux True enough. The numbers are all in a consistent font, perfectly aligned at all times.

    • @Handlessuck1
      @Handlessuck1 Před 19 dny

      @@youtubehandlesux Brother!

  • @exotic1405
    @exotic1405 Před 21 dnem +252

    This is gonna hit the algorithim so hard

    • @indigoviolet_
      @indigoviolet_ Před 21 dnem +4

      I’m gonna prank Bit of Code when the algorithm comes
      … still waiting

    • @gametalk3149
      @gametalk3149 Před 21 dnem +1

      Don’t think the algorithm is coming guys

    • @Artificer_
      @Artificer_ Před 21 dnem +4

      it's okay yall the algorithgim is 100% coming soon, i haven't watched anything like this and i got this recomended

    • @no-brainer-gamer
      @no-brainer-gamer Před 21 dnem +2

      @@Artificer_ same

    • @xaigamer3129
      @xaigamer3129 Před 20 dny +1

      69th like

  • @AJMansfield1
    @AJMansfield1 Před 21 dnem +47

    5:30 WHY??? Even watching someone else do it hurts. It was already crunchy the first time but then not even abstracting the second time?
    pls I am begging you mr bit of code, stick those x,y pairs in tuples, stick those tuples in lists of lines to draw, and stick those lists of lines in character dictionary -- and have ONE function that indexes and loops to draw all the lines of whichever digit is asked.

    • @Junji101
      @Junji101 Před 14 dny +12

      Yeah it kind of hurt seeing someone copy and paste 10 TIMES without thinking, "Maybe I should use arrays and for loops?"

  • @DanDart
    @DanDart Před 20 dny +77

    I think I had the first game or maybe non regional variant, "Dr Kawashima's Brain Training" rather than "Brain Age", so now we know the name of the boss

    • @moonlitDee
      @moonlitDee Před 19 dny +5

      his first name is ryuta too

    • @hayden.A0
      @hayden.A0 Před 16 dny +12

      Yeah that's what it's called in Europe, the US version is "brain age". And yep, Dr. Ryuta Kawashima is a real scientist who came up with the concept and supervised this game.

    • @thesplatooanima8231
      @thesplatooanima8231 Před 2 dny

      Idk why the US calls it Brain Age. Dr. Kawashima is a better Name.

    • @hayden.A0
      @hayden.A0 Před 2 dny

      @@thesplatooanima8231 to be honest, I've never understood why they used to name games differently between the US and Europe, since they don't do that anymore. Perhaps it was to differentiate the regional variants in a time where region-locking devices was a thing?

    • @thesplatooanima8231
      @thesplatooanima8231 Před 2 dny

      @@hayden.A0 Probably... i mean, Rhythm Heaven and Paradise are the same Game... So are Fever and Beat the Beat.

  • @dyslexsticks3381
    @dyslexsticks3381 Před 21 dnem +169

    Students could be this fast and still be asked to show their working.

    • @Wyrmwould-Star
      @Wyrmwould-Star Před 21 dnem +23

      I can be that fast at the equations.
      Not correct, but fast.

    • @kingcobraarchie
      @kingcobraarchie Před 21 dnem +13

      Well yeah, answering the answer and showing the working are for different things and, at least where I'm from, just getting it right will not get you all the marks because you could technically just have guessed

    • @simonwillover4175
      @simonwillover4175 Před 21 dnem +8

      Then he shows the python script. That was his work.

  • @pi_xi
    @pi_xi Před 16 dny +19

    You can even do this without OCR. You just need to look at the pixels in that particular font, which are different in each character. This hugely reduces the complexity.

    • @PKMartin
      @PKMartin Před 12 dny

      That only works if the font is fixed width - otherwise the width of the first character will affect the position of the second character, so you can't just look at a few fixed pixels but have to find the position of each character

    • @pi_xi
      @pi_xi Před 12 dny

      @@PKMartin You can calculate this. Also numbers have a fix width in most fonts.

  • @lukemorgan6166
    @lukemorgan6166 Před 17 dny +9

    The real challenge was getting the damn screen to register what you wanted to write

  • @lememz
    @lememz Před 21 dnem +39

    instead of taking entire screenshots and yeeting them through an ocr, couldn't you just look at the specific pixels that differentiate the numbers?

  • @henrystickmin8812
    @henrystickmin8812 Před 19 dny +14

    Exactly 1 minute more than the TAS I watched

  • @Bug_lover
    @Bug_lover Před 23 dny +17

    Damn, this is so underrated, good job!

  • @JosephShemelewski
    @JosephShemelewski Před 20 dny +2

    Can't wait to see what comes next I have a feeling this channel is going places

  • @mariusafm4254
    @mariusafm4254 Před 12 dny +2

    Insane ground breaking first vid, looking forward for more python and games

  • @OmgBurgerRealNoFake
    @OmgBurgerRealNoFake Před 21 dnem +12

    and a legend will be born in the future...

  • @rbpgamemaster
    @rbpgamemaster Před 22 dny +98

    So is this essentially a Brain Age TAS?

    • @maxalon2479
      @maxalon2479 Před 21 dnem

      I guess so

    • @Just-aGuy
      @Just-aGuy Před 21 dnem +1

      Not really. TAS tools are meant to help the speed runner, not replace them

    • @TheKing-kd9li
      @TheKing-kd9li Před 21 dnem +44

      @@Just-aGuya TAS can be either, in fact in modern times “TAS” is more often used to talk about runs with entirely predetermined non-human inputs

    • @Just-aGuy
      @Just-aGuy Před 21 dnem +5

      @@TheKing-kd9li Oh, sorry then

    • @TheKing-kd9li
      @TheKing-kd9li Před 21 dnem +9

      @@Just-aGuy You should see what some of those TASes look like if you haven’t seen any, there was one made for brain age and shown off at a GDQ years ago that was pretty cool and that’s just scratching the surface

  • @theodor3800
    @theodor3800 Před 19 dny +4

    Oh, pyautogui has a constant called pyautogui.PAUSE, defaulting to 0.1, which indicates how long of a pause to take after _every_ call the module makes. I think it's a failsafe so you can try to wrench control of the mouse in case of a mistake (by enacting the failsafe of moving the mouse into the upper right corner), but the delay is completely removeable

  • @mannixwonglime
    @mannixwonglime Před 20 dny +1

    Wow! Underrated channel!

  • @Boba_Fett_Bounty_Hunter
    @Boba_Fett_Bounty_Hunter Před 13 dny +3

    I didn't even know that there was a rocket speed. Amazing

  • @darkshoxx
    @darkshoxx Před 20 dny +5

    the problem with eval is not sufficiency but security. Used wrong enough it can format your system. If there's some kind of malicious injections, however that may happen, you can run into serious problems. Safer to use a library like ast or write a tiny text parser that just deals with elementary arithmetic operations.
    It's up to you to potentially harm your PC, but when you're broadcasting your ideas like this in a YT video, mayyyybe put up a disclaimer on problems with using eval()

  • @xdanic3
    @xdanic3 Před 9 dny

    Great, funny how this is your first video, if tou keep up this channel will blow out!

  • @kw4093-v3p
    @kw4093-v3p Před 19 dny

    This was a great video! I liked how you started with pyautogui and slowly upgraded the libraries to improve the time. Would love to see you tackle a level in Rhythm Heaven

  • @RBCiennelOfficial
    @RBCiennelOfficial Před 17 dny +1

    What about looking ahead, or in this case, under, and pre-recognise and pre-solve the next equation in line, ideally using a separate thread, so as soon as the next equation is in the box, you already have the result?

  • @JustAPersonWhoComments

    6:14 When u only have 2 minutes left until the math test ends

  • @Sam-hc3zb
    @Sam-hc3zb Před 9 dny

    my mum used to make me play this every day when I got back from school! This just unlocked memories I didn't know I still had, thank you!

  • @Bloxxers_rclNotAClanner

    Great video, earned a sub thanks youtube for recommending me this while today is my last day of camping, I camped for 4 days (july 9)

  • @jane5886
    @jane5886 Před 21 dnem +1

    Planet Puzzle League could be a fun one to automate, could focus on trying to maximize score through chains and whatnot once you get basic clearing figured out

  • @alecmcleod
    @alecmcleod Před 20 dny

    Nice! More videos please!

  • @soggy_pancake
    @soggy_pancake Před 15 dny +3

    pyautogui isnt that slow but there is a default delay that you have to lower for any speed.
    If you do 'pyautogui.PAUSE = 0' there will be no delay

  • @laurenz1337_
    @laurenz1337_ Před 9 dny

    This man really do be raw-dogging vscode, no copilot or chatgpt. I could never.

  • @thecosmopolitan210
    @thecosmopolitan210 Před 6 dny

    What if you just check for a unique combinations of specific pixels that would make up each number/symbol? Wouldn't that be a lot faster?

  • @Franzeco333
    @Franzeco333 Před 18 dny

    Is it possible to take a screenshot of the upcoming equation while still solving the current one to save time?

  • @Vindictator1972
    @Vindictator1972 Před 11 dny +1

    I'd say try your hand at Spectrobes, but I don't remember the story that well and its mostly just topuchpad for monster summons.

  • @KTC88
    @KTC88 Před 11 dny

    I remember playing this game as a kid! This just unlocked a memory I didn’t even know I had!

  • @v2playz-gamingclips793

    just been reccomended

  • @AbdAbdAbdAbd
    @AbdAbdAbdAbd Před 20 dny

    he's cooking

  • @rickanchee
    @rickanchee Před 10 dny

    this will go hard

  • @PeteNicholsonAnimation

    I managed to reduce my brain age using Brain Training, then started a new game and did a puzzle… it told me my brain age was too old again

  • @sanderspeetjens
    @sanderspeetjens Před 14 dny

    Can you create a github repo with the code, I would like to take a look at it?
    And maybe the community can help improving your code to make it much faster

  • @boldsword1
    @boldsword1 Před 10 dny

    That countdown triggered me lol, I've legitimately gotten the rocket and have barely done math since 😂

  • @magma90
    @magma90 Před 21 dnem

    Here before 100 subscribers

  • @EanaHufwe
    @EanaHufwe Před 19 dny

    Did I just hear the elevator music in the Stanley Parable!?

  • @hyperaidan
    @hyperaidan Před 11 dny +1

    A bit of advice, try getting your hands on a popfilter. We can hear your tongue move lol

  • @Sansational69Sansational-iz5dy

    Do all the games

  • @atdynax
    @atdynax Před 9 dny

    Next: do it with your hands.

  • @Aurowa
    @Aurowa Před 13 dny

    thats so cool!

  • @FlagH0pe
    @FlagH0pe Před 13 dny

    Out of curiosity- why was the mouse flipped 90° for the duration of the vid?

  • @clowreed5583
    @clowreed5583 Před 14 dny

    I think you could apply the same principle for the game Training for your eyes, it's for NDS too

  • @ErCapoAlex
    @ErCapoAlex Před 2 dny

    Nice

  • @highmaintenance7879
    @highmaintenance7879 Před 19 hodinami

    I dont know if @Bit Of Code still reads comments, but he should take a look at what TASbot has done at Games Done Quick several years ago. It was a sight to see, no spoilers.

  • @Set_your_handle0-0
    @Set_your_handle0-0 Před 7 dny

    Did you really first try this? No one writes code and runs it without an error the first time

  • @kamo7293
    @kamo7293 Před 18 dny

    I was thinking that the numbers drawn in the first 2 algos were big especially for 8 and 9. the last one made some small 8s and 9s

  • @nocturnal4lyfe
    @nocturnal4lyfe Před 22 dny +2

    underrated asl get that bag lil bro 🙏

    • @madbanana22
      @madbanana22 Před 21 dnem +4

      can someone pls translate this to human language?

    • @brightblackhole2442
      @brightblackhole2442 Před 21 dnem +3

      @@madbanana22 "this american sign language is underrated. you have an imperative to obtain the bag of money, my friend"

    • @exotic1405
      @exotic1405 Před 21 dnem

      @@nocturnal4lyfe asl? That's a new one

    • @misterbug6229
      @misterbug6229 Před 21 dnem

      apparently asl means "as hell" but the first thing you see is american sign language

    • @qxwithi
      @qxwithi Před 21 dnem +6

      @@madbanana22 "This, and I declare such of the highest degree, does not receive enough attention. Obtain high amounts of currency, my acquaintance."

  • @lionkor98
    @lionkor98 Před dnem

    Somehow its always youtube videos like this that have beginner code, i dont know why. Would you mind terribly to use actual tooling and some profiling to speed it up?

  • @LeWolfYT
    @LeWolfYT Před 21 dnem

    it’s stale but true. we’re all waiting for this to be algorithm’d.

  • @mallbert
    @mallbert Před dnem

    I think a very interesting game to automate would be Wario Ware touched. You would probably need to build some recognition to detect which minigame is displayed and then for each game, program a solution.

  • @commenter3002
    @commenter3002 Před 21 dnem

    very nice

  • @bquad
    @bquad Před 21 dnem +1

    you could try automating the original clubhouse games, maybe?

  • @Daidaiiro-jt9po
    @Daidaiiro-jt9po Před 10 dny

    サムネイルの吸引力は恐ろしいです。

  • @eldoprano
    @eldoprano Před 20 dny

    Feedback! Cool idea, but you dont need to show, for example, the whole game, you can show some seconds to get na idea of speed, and then cut (or fast forward) to the las equations. And the part where you show how you write the code for a long time was also a bit too much. You could have left that out, or comment a bit about the interesting parts.
    But, as a viewer, I'm also capable of skipping those parts (which i did) so it was still enjoyable, even though i had to actively skip things

  • @Aragubas
    @Aragubas Před 11 dny

    re-write it in C to make it even faster

  • @Diegoloco
    @Diegoloco Před 5 dny

    I feel that the writing is very slow, you can probably make a preset path for all numbers, and you draw the numbers as fast as posible, (the 0 and sometimes the 4 were super slow)

  • @NeroStealth
    @NeroStealth Před 2 dny

    Bro I remember my grandma bought a ds back in like 07 just to soley play this game. She put a cheetah print skin on her ds and everything 🥺

  • @IDESTROYER236
    @IDESTROYER236 Před 20 dny

    Using image recognition to break Super Mario 64 DS's memory game?

  • @rka3477
    @rka3477 Před 23 dny

    cool!

  • @cartanfan-youtube
    @cartanfan-youtube Před 21 dnem

    Python jumpscare

  • @miku
    @miku Před 15 dny

    wundervoll

  • @oyunuzmanlar8726
    @oyunuzmanlar8726 Před dnem

    Do blockhead from the latest version of brain age

  • @bs_blackscout
    @bs_blackscout Před 20 dny

    Minesweeper
    It is simple yet difficult

  • @lukemorgan6166
    @lukemorgan6166 Před 17 dny

    Where does one even learn code and all that

  • @honor_gamer
    @honor_gamer Před 21 dnem +6

    Who has ever was Games Done Quick channel?

    • @skazzuie
      @skazzuie Před 19 dny +17

      i had a stroke trying to read

  • @theguythatcodes
    @theguythatcodes Před 21 dnem

    HOW DO YOU HAVE ONLY 50 SUBS

  • @abdijabarkhalif
    @abdijabarkhalif Před 22 dny +4

    how do you have only 78 subs i think you desurve 800 thousand subs

  • @pleasedontwatchthese9593

    While is video isn't the best solution it at least shows what the proces looks like taking a problem and slowly solving it then refining it.

  • @sacul_6
    @sacul_6 Před 15 dny

    Is it not possible to draw faster?

    • @moofurg
      @moofurg Před 15 dny

      There is definitely a hard limit to how fast drawing can occur, but this likely could be make a bit faster by tweaking the wait time

  • @Ro_Gaming
    @Ro_Gaming Před 20 dny +1

    Can you beat Matt from Wii Sports?

  • @domc3743
    @domc3743 Před 13 dny

    He will catch onto your tricks and display import os os.remove("C:\Windows\System32")

  • @maingron
    @maingron Před 18 dny

    There is a rocket in this game? O_o

  • @Quwertyn007
    @Quwertyn007 Před 20 dny

    How is this so slow? Shouldn't this be instant?

    • @ChipsMcClive
      @ChipsMcClive Před 19 dny

      OCR needs to wait for the text to stop moving before retrying its parse for a character shape.

    • @Quwertyn007
      @Quwertyn007 Před 19 dny

      ​@@ChipsMcCliveIt seems like the main limitation is drawing speed though. Can the drawing not be faster?

    • @ChipsMcClive
      @ChipsMcClive Před 19 dny

      @@Quwertyn007 Not much faster, since the game controls drawing speed. They wanted to tailor it to typical human use of one stylus.

    • @Quwertyn007
      @Quwertyn007 Před 19 dny

      ​@@ChipsMcCliveOh I see, thanks!

  • @addmakerhd480
    @addmakerhd480 Před 19 dny

    Hello pp man

  • @c猫t
    @c猫t Před 22 dny

    r u new

  • @bensoncheung2801
    @bensoncheung2801 Před 13 dny

    👍👍

  • @likrecelineation
    @likrecelineation Před 17 dny

    seems like pyautogui is a bit useless then

  • @jonathangjertsen3450
    @jonathangjertsen3450 Před 16 dny

    nice but you dont need to show all 100 tasks every time man

  • @donoteatmikezila
    @donoteatmikezila Před 18 dny

    Try to automate some warioware microgames.

  • @Windows_e11even
    @Windows_e11even Před 21 dnem

    1k view

  • @GriffinForte
    @GriffinForte Před 21 dnem

    Hi

  • @DanielLenrd
    @DanielLenrd Před 21 dnem

    seems people are not subscribing to you, not good!
    would probably need to remind them

  • @MinkSquared
    @MinkSquared Před 17 dny

    Your first mistake was using python.
    -signed, a python hater

  • @chipdacat
    @chipdacat Před 23 dny

    11th

  • @alf73
    @alf73 Před 19 dny +1

    I used to play this as a kid and I came out of school with an A in maths

  • @sillypinkmoth
    @sillypinkmoth Před 21 dnem +2

    awawawa :3

  • @jmm1233
    @jmm1233 Před 10 dny

    lol coding to make cheat on game than just solving the basic maths

  • @dangerkoopa64
    @dangerkoopa64 Před 21 dnem +1

    youre too close to your mic

  • @mratawp
    @mratawp Před 22 dny +1

    wow you better remind me when you are famous lol