Andwelcometoanotherfacialrecognitionvideointhisvideowe'regonnabetalkingaboutisdoingfacialrecognitiononvideoandthenkindofexpandingourourlogicandcode a littlebitfromthere.
Sojusttodosomething a littlemoreinterestingSowhereweleftoff, wewerebasicallyjustWe'redoingthisonimagesandwehadthisknownfacesduringtheunknownfacesturnunknownfacesiswheretheimageswerethatwewantedtodo a facialrecognitiononseeifhey, doweknowthisface?
Soinstead, whatwe'regoingtosayis, we'regonnathrowinthatkindofifcvtodotwaitkeyoneonandthenthisisthecodeforandzerolowercase X capital F F vehicleswarmqueBasicallyiftheuserpressesthecuchi, wewant a breakAndthenbecause I'm onahboonto I guessdestroywindowjustiswhatdoesnotworkon a boontoSoSoonethingthatDanielwassayingwasonewayaroundthisisyoucouldjusttryandacceptSoyoucantryCVtodestroywindowexceptpassandjustbedonetherebecause I guessforsomereason I havebeentothat, thisfunctionjustdoesnotworksoveryinteresting.
Well, obviously, asthefacestartstocomeup a littlebitmore, youstartto, like, loseTheatheface, butnotbad.
Okay, solet's goimpress Q.
Andthatshouldbeeverythingyouwantforvideofrom a videoeither a videofileor a videofeed.
Thesamethingisgoingtowork.
You'llhaveyourknownfaces.
You'lllook.
Buttome, that's a littleboring, becausethatwaslikethreelinesofcode.
Sonowwhat I wanttodoistakenOrwellianturned, and I'm goingtosayfromourvideo, eithervideocapturedeviceor a videofile, because I don't reallyhavelotsofpeoplepassingbyandsaid, What I wanttodois I wanttostartlabeling, givingpeople i D.
S.
Soimagineyourunninglikeanofficebuildingor a schoolorsomethinglikethatwhere, youknowyouhave a bunchofpeoplethatarecommonlycomingthroughthatarea.
Soit's verycommontoseecommonpeople.
Butit's veryuncommontoseeuncommonpeople.
Andthenthere's otherplaceswhereit's a littlemoreraretoseecommonpeople, sothinkaboutlikeanyplacewheretravelling.
Soifit's notanemployeeorsomethinglikethat, seeinglike, let's sayyou'reatanairportseeingcommonpeoplethathavenogoodreasontobetherecommonlythat's a weirdthing, rightsamethingifyoudependingonyourofficebuilding, right.
There's someplaceswhereyoumighthave a bunchofemployeesthatyouexpecttoseecommonly.
Butthen, ifthere's somenewfacethathasnoreasontobethere, commonlyyou'vegot a problem.
So, umso, yeah, sowhatwe'regonnadonowis, ratherthanusingthevideocapture, because I'm theonlypersonintheroomrightnow, we'regoingtouse a videofilethat I created, So I willdomybesttosharethisfileif I forgetsomeonejustremindme.
Butit's basicallyjustmeholdingupmycellphoneandswappingthroughphotosofvariousindividualsandactually I think I don't knowhowmanytotalwehavemade.
Nonamesonthenknownunderscorefacesdot a pen, Um, inthiscaseforface.
Sothiswouldbefacingcoating.
Sowe'llsavethosetwothings.
Andthenwhatwewanttodoissavenowthatwe'vegotthisnewencodingandit's onlywhenwehave a newencodinglateryoucouldsavemoreand I'lltalk a littlebitaboutsomeofthelogic I thoughtoftoelikeaddmorefaces.
Andtheneverytimeyousee a newfaceor a newversionofthefacealsojustasnotewiththetoleranceat 0.6, wecanseewe'rehavingreallynotroubleidentifyingeitherofthesepeople.
Isthatwell, Bidenbouncedaround a littlebit, butitleastdid a betterjobandsamethinghere.
So I thinkbeforewehad 17 totalHeidi's.
Nowwe'renine.
Wejustgotanothernewone.
Let's seeifweendupwith 10.
Doesn't looklikeit.
Okay, Um, cool.
Sothat's prettyinteresting.
Sonow, asyou'vegottenis, youget a newfaceyouwouldbeabletorecognizeHey, thisis a newfaceornot.
Sobasically, everytimeyouhit, uh, thisthiselsethat's a newface.
Soanytimeyou'vegotideasbouncingaroundlikewe'vejustseenwhatyoucouldDioisyoucouldthroughlogic, youcouldsay, Hey, thatwasalwaysthesamefaceWhichoneofthesefacesisthemorecommonfaceandlike, Hey, let's makethatthemain i D.
Chancesare, ifyou'veevertriedtoworkon a realworldproblem, you'veseenthatrealworldproblemsaremuchmorechallengingthanlike m nistorclassifyingdogsandcatsor, youknow, whatever.
Andifyouwanttokindoflevelupyourknowledgeofhowneuralnetworksworkandhowtoactuallymakesomethingworkon a problemthathasn't yetbeensolved, definitelyworthcheckingouttheneuralnetworksfromscratchbook.
Youcangotoknowwhen I wasfromscratch, whichis N N f s dot I oh, uh, andyoucanpreorderthebooknow, andeventuallythebookwillbeoutandyoucouldbuyit.