How Microsoft Azure Simplifies Face Recognition? - Zerone ...

文章推薦指數: 80 %
投票人數:10人

Microsoft Azure Face API offers advanced algorithms that detect human faces in digital images. Face API can detect one or more human faces in an image and ... Blog HowMicrosoftAzureSimplifiesFaceRecognition? BookYourFreeStrategySession Facialrecognition(orfacerecognition)systemsarecommonlyusedforsecuritypurposes.Today,thistechniquefindsitsapplicationinabroadrangeofindustriesincludingretail,eventmanagement,hospitals,academies,defensewings,governmentdepartments,commercialestablishments,banks,andfinancialinstitutions.Facerecognitionisabiometricmethodofidentifying(recognizing)anindividualbycomparinglivecaptureordigitalimagedataagainstthestoredrecordforthatperson.Beforewemoveon,letushaveaquickglanceatthetwoterms-facedetectionandfacerecognition. FaceDetectionandRecognition–AnOverview FaceDetectionandFaceRecognitionaretwodistinctconceptsthatdiffercompletelyfromeachother,thoughrecognitionbuildsupondetection.InDetection,thesystemidentifieshumanfacesindigitalimages,irrespectiveofthesourceoftheimage.InRecognition,thesystemrecognizesaknownfaceinadigitalimagewithaknownname.Herealso,sourceisnotamatterofconcern.Sourcecouldbeanyofthese:ascannedphotograph,alivevideostreamoraCCTVfootage. Incorporatingfacedetectionandrecognitiontechnologiesinbusinessesallowsyoutogeneratevastamountsofusefuldata,thatcanbefurtheranalyzedtoderiveadvancedinsightsandbusinessintelligence.Facerecognition-poweredanalyticssolutionplaysasignificantroleinmanyindustries,sinceitreducesthegapbetweenbusinessandcustomer. Currently,numerousopensourcecodesareavailableinthemarketforfacedetectionandrecognition,outofwhich,themostwidelyusedsolutionsareOpenFace,OpenCVusingEMGU.NETWrapper,andMSAzureFaceAPI.Inthispost,wewillhavealookathowMicrosoftAzureFaceAPIhelpsinfacedetectionandrecognition. MicrosoftAzureFaceAPI MicrosoftAzureFaceAPIoffersadvancedalgorithmsthatdetecthumanfacesindigitalimages.FaceAPIcandetectoneormorehumanfacesinanimageanddisplayfacerectanglestohighlightthefacesintheimage.Alongwiththis,FaceAPIalsoshowsattributesthatincludemachine-learningbasedpredictionsoffacialfeatures.Theattributescompriseage,gender,emotion,pose,smileandfacialhair,inadditionto27otherlandmarksforeachfaceidentifiedinthegivenimage.State-of-the-artalgorithmsdetecthumanfacesinimages,openingarangeoffacialcapabilitiestoyourapplications. MicrosoftAzureFaceAPIcan: Detecthumanfacesandsearchforsimilarities Consolidateimagesintogroupsbasedontheirvisualsimilarities Identifyanypreviouslytaggedpeopleinimages OnceFaceAPIidentifiesthefaces,itwillverifytofindoutwhethertwopeopleinanimageorimagesarethesamebyusingaconfidencescore,orcompareitagainstadatabasetofindoutwhetheranidenticalfacealreadyexists.FaceAPIusesthesharedvisualtraitstogroupsimilarlookingfaces. MSAzureEmotionAPI EmotionAPIprovidesyouanincrediblepersonalizedexperiencebyallowingyoutobuildanapplicationthatrecognizesemotionsfromfacialexpressions.Thisisacloud-basedAPIthatdetectsemotionssuchashappiness,sadness,neutrality,contempt,anger,disgust,fear,andsurprise.EmotionAPIanalyzestheseemotionsbasedonuniversalstandardsofcategorizingfacialexpressions.Itfunctionsinacross-culturalmanner.Thatmeans,yourapplicationwillworkacrosstheglobe. SubscriptionandImplementation UserswithaMicrosoftAzuresubscriptioncanimplementFaceAPI,sinceitisapaidservice.YoucancreateyourownFaceAPIserviceusingtheAzureportal.Thishelpsyourapplicationtoperformfacedetectionandrecognition. QuickstepstoimplementMicrosoftAzureFaceAPI ThefollowingexampleisbasedonWindowsOSandsourcecodeispurelyinC#.Toimplementthesesteps,youneedtohaveaMicrosoftAzuresubscription. Step1: CreateFaceAPIserviceinMSAzureasdisplayedbelow: Step2: Goto“AllServices”menu,whereyoucanseeyourserviceslisted.Notethesubscriptionid,endpoint,andaccesskeyswhichweneedlaterinourprogram. Step3: Selecttheappropriatepricetierforcreatingtheservice.Inthisexample,weareusingthe“FreePriceTier”fordemopurpose. Step4: DifferentstagesofFacerecognitionandDetection -AuthorizeAPIcall:WhileusingfaceAPIclientservices,youshouldauthorizeyourselfforavalidsubscriptionkey. privateFaceServiceClient_faceClient=newFaceServiceClient("Yoursubscriptionkey"); -Createpersongroup:Persongroupactsasacontainerofallpersons.Inthefollowingcodesnippet,replacepersonGroupIdwithyourgroupnameasperyourrequirement(example:mygroup,group1). -Addpersontogroup:Hereweareaddingpersonstopreviouslycreatedgroup. //DefinePerson CreatePersonResultfriend1=await_faceClient.CreatePersonAsync(“Givethepreviouslycreatedgroupname”,“Giveuniquepersonname”); -Addperson’sfaces(TakeTrainingimages) -Trainpersongroup:Thepersongroupmustbetrainedpriortoperforminganidentificationusingit.Moreover,ithastobere-trainedafteraddingorremovinganyperson,orifanypersonhastheirregisteredfaceedited. -IdentifyPerson:Thefollowingcodedemonstratestheprocessofidentification. Theresultwillappearasshownbelow: -Capture1:Samegendergroupwithdifferentemotions. -Capture2:Differentgendersandemotions TheMicrosoftAzureCognitiveServiceFaceAPIApplicationhelpsyoutomakeaFaceAPIappin30minutes.AllyouneedisaMicrosoftAzuresubscription.AzureFaceAPIhasanaccuracyof90-95%. close Hello. We’regladyou’rehere. Tellusalittleaboutyourrequirement. FullName* WorkEmail* Phone* CompanyName* Howcanwehelpyou?*



請為這篇文章評分?