Face Detection | ML Kit - Google Developers
文章推薦指數: 80 %
With face detection, you can get the information you need to perform tasks like embellishing selfies and portraits, or generating avatars from a user's photo. MLKit Guides Reference Samples Casestudies Community Language English BahasaIndonesia Deutsch Español Français Português–Brasil Русский 中文–简体 日本語 한국어 Signin Guides MLKit Guides Reference Samples Casestudies Community Overview ReleaseNotes KnownIssues EarlyAccessProgram OverviewProductrecognition MigratingfromMLKitforFirebase OverviewAndroidiOS MigratingfromMobileVision OverviewAndroidiOS Vision TextRecognition OverviewSupportedlanguagesAndroidiOS TextRecognitionv2(Beta) OverviewSupportedlanguagesAndroidiOS FaceDetection OverviewFaceDetectionConceptsAndroidiOS PoseDetection(Beta) OverviewAndroidiOSPoseClassificationOptions SelfieSegmentation(Beta) OverviewAndroidiOS BarcodeScanning OverviewAndroidiOS ImageLabeling Overview BaseModel LabelMapAndroidiOS CustomModels AndroidiOS AutoMLVisionEdge MigratetoCustomModelsAndroidiOS ObjectDetectionandTracking Overview BaseModels AndroidiOS CustomModels AndroidiOS DigitalInkRecognition OverviewBaseModelsAndroidiOS CustomModels GoogleCodeScanner(Beta) NaturalLanguage IdentifyLanguages OverviewSupportedlanguagesAndroidiOS TranslateText OverviewGuidelinesSupportedlanguagesAndroidiOS SmartReplies OverviewAndroidiOS EntityExtraction(Beta) OverviewAndroidiOS PrepareforProduction ReduceAndroidAppPackageSize Colophon Terms&Privacy AndroidDataDisclosure iOSDataDisclosure Home Products MLKit Guides FaceDetection WithMLKit'sfacedetectionAPI,youcandetectfacesinanimage,identify keyfacialfeatures,andgetthecontoursofdetectedfaces.NotethattheAPI detectsfaces,itdoesnotrecognizepeople. Withfacedetection,youcangettheinformationyouneedtoperformtaskslike embellishingselfiesandportraits,orgeneratingavatarsfromauser'sphoto. BecauseMLKitcanperformfacedetectioninrealtime,youcanuseitin applicationslikevideochatorgamesthatrespondtotheplayer'sexpressions. iOS Android Keycapabilities Recognizeandlocatefacialfeatures Getthecoordinatesoftheeyes,ears,cheeks,nose,andmouthofevery facedetected. Getthecontoursoffacialfeatures Getthecontoursofdetectedfacesandtheireyes,eyebrows,lips,andnose. Recognizefacialexpressions Determinewhetherapersonissmilingorhastheireyesclosed. Trackfacesacrossvideoframes Getanidentifierforeachuniquedetectedface. Theidentifierisconsistentacrossinvocations,soyoucan performimagemanipulationonaparticularpersoninavideostream. Processvideoframesinrealtime Facedetectionisperformedonthedevice,andisfastenoughtobeused inreal-timeapplications,suchasvideomanipulation. Exampleresults Example1 Foreachfacedetected: Face1of3 Boundingpolygon (884.880004882812,149.546676635742), (1030.77197265625,149.546676635742), (1030.77197265625,329.660278320312), (884.880004882812,329.660278320312) Anglesofrotation Y:-14.054030418395996,Z:-55.007488250732422 TrackingID 2 Faciallandmarks Lefteye (945.869323730469,211.867126464844) Righteye (971.579467773438,247.257247924805) Bottomofmouth (907.756591796875,259.714477539062) ...etc. Featureprobabilities Smiling 0.88979166746139526 Lefteyeopen 0.98635888937860727 Righteyeopen 0.99258323386311531 Example2(facecontourdetection) Whenyouhavefacecontourdetectionenabled,youalsogetalistofpoints foreachfacialfeaturethatwasdetected.Thesepointsrepresenttheshapeof thefeature.Thefollowingimageillustrateshowthesepointsmaptoaface. Clicktheimagetoenlargeit: Facialfeaturecontours Nosebridge (505.149811,221.201797),(506.987122,313.285919) Lefteye (404.642029,232.854431),(408.527283,231.366623),(413.565796,229.427856),(421.378296,226.967682),(432.598755,225.434143),(442.953064,226.089508),(453.899811,228.594818),(461.516418,232.650467),(465.069580,235.600845),(462.170410,236.316147),(456.233643,236.891602),(446.363922,237.966888),(435.698914,238.149323),(424.320740,237.235168),(416.037720,236.012115),(409.983459,234.870300) Topofupperlip (421.662048,354.520813),(428.103882,349.694061),(440.847595,348.048737),(456.549988,346.295532),(480.526489,346.089294),(503.375702,349.470459),(525.624634,347.352783),(547.371155,349.091980),(560.082031,351.693268),(570.226685,354.210175),(575.305420,359.257751) (etc.) Exceptasotherwisenoted,thecontentofthispageislicensedundertheCreativeCommonsAttribution4.0License,andcodesamplesarelicensedundertheApache2.0License.Fordetails,seetheGoogleDevelopersSitePolicies.JavaisaregisteredtrademarkofOracleand/oritsaffiliates. Lastupdated2022-07-14UTC. [{ "type":"thumb-down", "id":"missingTheInformationINeed", "label":"MissingtheinformationIneed" },{ "type":"thumb-down", "id":"tooComplicatedTooManySteps", "label":"Toocomplicated/toomanysteps" },{ "type":"thumb-down", "id":"outOfDate", "label":"Outofdate" },{ "type":"thumb-down", "id":"samplesCodeIssue", "label":"Samples/codeissue" },{ "type":"thumb-down", "id":"otherDown", "label":"Other" }] [{ "type":"thumb-up", "id":"easyToUnderstand", "label":"Easytounderstand" },{ "type":"thumb-up", "id":"solvedMyProblem", "label":"Solvedmyproblem" },{ "type":"thumb-up", "id":"otherUp", "label":"Other" }] Connect Blog Facebook Medium Twitter YouTube Programs WomenTechmakers GoogleDeveloperGroups GoogleDevelopersExperts Accelerators GoogleDeveloperStudentClubs Developerconsoles GoogleAPIConsole GoogleCloudPlatformConsole GooglePlayConsole FirebaseConsole ActionsonGoogleConsole CastSDKDeveloperConsole ChromeWebStoreDashboard Android Chrome Firebase GoogleCloudPlatform Allproducts Terms Privacy SignupfortheGoogleDevelopersnewsletter Subscribe Language English BahasaIndonesia Deutsch Español Français Português–Brasil Русский 中文–简体 日本語 한국어
延伸文章資訊
- 1Face Recognition: Biometric Authentication - NEC Corporation
Face recognition can often prove one of the best biometrics because images can be taken without t...
- 2Facial recognition system - Wikipedia
A facial recognition system is a technology capable of matching a human face from a digital image...
- 3face-recognition - PyPI
Facial Recognition · Find and recognize unknown faces in a photograph based on photographs of kno...
- 4Face Recognition - GitHub
Find and recognize unknown faces in a photograph based on photographs of known people · Identify ...
- 5Face API - Facial Recognition - Microsoft Azure
Apply facial recognition to a range of scenarios. Detect, identify, and analyze faces in images a...