We'llprobablythreethingsfirstisthat I don't reallywanttoputtheeffortintogettinggoodatthisgameso I couldsitdownandjustplayalone a lotuntil I getreallygoodatthisgamebecauseit's trickingyourbrainintokindofseeingthesesetsasquicklyaspossible.
But I amprettylazyandsonotinterestedinthat.
Um, I'm alsoimpatient.
I don't takethetimetodothat.
Um, I'd ratherdoit.
Useitforsomethingelse.
Andlastofall, themotherofallcharacterflaws.
Hubris.
Um, I'm prettysure I I wasreadingaboutStarcraftbeingbeatbydeepmindandoffagoinAlphaZero.
Andlike, I candothis, I cansolvesetwithmycomputer.
Um, and I canfinallybeatSusanthisway.
Umandso I startedthinkingabouthowthisproblemthisforms.
Andsofor a human, it's interesting, becauseifyouthinktheproblemintwoparts, thesetmakingisthehardestpartforhuman, Uh, whenyouyoucanquicklyseethesecarsandyouknowwhattheyare.
Butyoucan't makethesetsveryquicklyoutofthemfor a computer.
It's actuallytheopposite.
Thesetmakingofsupereasy.
Um, Andthevisionpart, that's thehardpart.
So I cantellwe'regonnacomputervisionthecrapoutofthisproblem.
Allright, here's theplan.
Um, we I wantthisaroundmyphone, so I'm gonnausethecamonmyphone, getinto a browseroncanvas.
Nowpullouteachcardtodothis, weneedtosimplifythatpath a littlefurther.
Um, insteadofthatpathislike a wholebunchofdotsaroundthatcard.
Ultimately, what I wantisthisrectangleishthingarequadrilateralthatconsistsofonlyfourverteseestodothat.
Um, there's probably a coolnameforthisthing, but I madeupsomeranthewaytodothis.
Um, what I endupdoingisbasicallyremovingpixels.
So I wanttoremoveherdonepixels a longerline.
Um, andso I justkeepremovingthemuntilitdownbeforetheway I choosewhichpixeltoremoveNextisbasicallytheonethatresultintheminimumleastareachangewhichresultin a prettygoodrectanglethispoint.
So I basicallybuiltthemodelbasedon, like, a couplesourceimages.
Didn't takeintoaccount a wholelotdifferentlightingthat I mightcomeinto, um, contactwithshadows, lotsofotherdifferentthings.
Um, andsothewaythatfixedthisisbasicallyyouget a lotofsourceimages.
Um, So I wentback, and I builtintomythingwaytoquicklygrab a lotofimagesonandthenattackthem.
Um, andthenbasedonthat, I canactually, um, finestuff.
Orso I cantrainthis a littlebetter.
Soit's basicallytakingallofthoseallthoseimagesandusingthosewhoinformallthosemagicnumberswhich I callpoorman's machinelearning, whichisexactly, actuallymachinelearning s o.
Don't letanyonetellyouotherwise.
It's basicallymachinelearning's doing.
Um, So I puttogether a trainingmontage, playsit's onYouTube.
No, itdoes.
Okay.
Hello.
I needsound.
I'm gonnadothislivestartovercause I gottime.
That's right.
Changeablepassion.
Wait, wait, wait.
I tithe.
Andthelastbuiltfivestocksallright.
Oh, I wentfullscreen.
Nofullscreen.
Althoughallwe'redoingis a livedemo.
Next.
I did, um, SoOkay, I did.
I get.
So I have a plantintheaudienceandeveryonewelcomeanandget A dealerismilesaroundoranybodywhowantstodealdealsomecards.
So, umwell, I have a chanceoflosingeasily, becauselightinguphereisinteresting.
I triedthisearlier, and I think I wasokay.
Butalsoanisprettygoodthisgame.
Andsowe'llsee.
We'llsee.
Howthisgirlsareyouready?
Whereyougo?
Oh, I'm seating.
I cantakeitbecause I'm a cheater.
Oh, no.
Thesecardsareweird.
Fixup, Justin.
Thresholding.
Isthereanythinghere?
Maybethat's notoneofthefalsePositive.
Yeah.
Thescardstooclosetoeachother.
Wait, no, there's a set.
What?
Yeah, Thisiswherehewouldstillhave a chanceBecausecomputerscan't see.
That's it.
I thinkthepressure's gettingtheend.
Thestagepressure.
There's a TVset.
Yougo.
Whoa!
Thatwas a harderset.
Um, yetset.
Okay, I thinkwegettheidea, becausethisisgonnatake a whiletogothrough, butthere's anothersetrighttherethatandgot, umAllright, I'm gonnadeclarethat a victory.
Um, sothisisjustthetoolthat I feellikeyoucanYoucanbasicallyveryquicklyfigureout.
Likeifyou'veeverhad a womanwithhermanagerandyou'retryingtofigureout, Likewhat?
What's thenextbestthingformetoworkon?
Whatwouldhappenif I, like, justgotreallygoodatsomeoftheseotherthings?
Wherewouldthatputme?
Um, thisanswersitforyou.
Um, soyeah.
So, again, why?
I againlovecheatingandmischiefinjustsolvingproblemsinwaysthatshouldn't besolved.
Um, and I feellikeitleadstobasicinnovation, sothat's kindofwhy I hope I'veinspiredyoutoactuallybuildsomething, um, andkindofshownow, like, I'veneverdonecomputervisionthingsbeforethis, Uh, thisismyfirstpassatit.