{"id":13550140,"url":"https://github.com/ricardocaste/face_detection","last_synced_at":"2025-04-02T23:31:57.372Z","repository":{"id":45698593,"uuid":"330002615","full_name":"ricardocaste/face_detection","owner":"ricardocaste","description":"Flutter Smile Detection with Google ML Kit","archived":false,"fork":false,"pushed_at":"2022-02-18T02:16:02.000Z","size":66,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-03T19:37:42.994Z","etag":null,"topics":["face-detection","flutter","google-ml-kit","machinelearning"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ricardocaste.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-15T19:23:43.000Z","updated_at":"2024-10-13T10:21:34.000Z","dependencies_parsed_at":"2022-09-17T16:11:59.996Z","dependency_job_id":null,"html_url":"https://github.com/ricardocaste/face_detection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardocaste%2Fface_detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardocaste%2Fface_detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardocaste%2Fface_detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardocaste%2Fface_detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ricardocaste","download_url":"https://codeload.github.com/ricardocaste/face_detection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911222,"owners_count":20853653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["face-detection","flutter","google-ml-kit","machinelearning"],"created_at":"2024-08-01T12:01:29.402Z","updated_at":"2025-04-02T23:31:56.847Z","avatar_url":"https://github.com/ricardocaste.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# face_detection\nFlutter Face Detection with google_ml_kit\n\nGoogle's ML Kit is a Flutter plugin to use Google's standalone ML Kit for Android and iOS.\n\n# Google's ML Kit Flutter Plugin\n\n[![Pub Version](https://img.shields.io/pub/v/google_ml_kit)](https://pub.dev/packages/google_ml_kit)\n\nA Flutter plugin to use [Google's standalone ML Kit](https://developers.google.com/ml-kit) for Android and iOS.\n\n## Features\n\n### Vision\n\n| Face Detection Feature                                                                                       | Android | iOS |\n|-----------------------------------------------------------------------------------------------|---------|-----|\n|[Face Detection](https://developers.google.com/ml-kit/vision/face-detection)                   | ✅      | ✅  |\n\n## Requirements\n\n### iOS\n\n- Minimum iOS Deployment Target: 10.0\n- Xcode 12 or newer\n- Swift 5\n- ML Kit only supports 64-bit architectures (x86_64 and arm64). Check this [list](https://developer.apple.com/support/required-device-capabilities/) to see if your device has the required device capabilities.\n\nSince ML Kit does not support 32-bit architectures (i386 and armv7) ([Read mode](https://developers.google.com/ml-kit/migration/ios)), you need to exclude amrv7 architectures in Xcode in order to run `flutter build ios` or `flutter build ipa`.\n\nGo to Project \u003e Runner \u003e Building Settings \u003e Excluded Architectures \u003e Any SDK \u003e armv7\n\n![](https://github.com/bharat-biradar/Google-Ml-Kit-plugin/blob/master/ima/build_settings_01.png)\n\nThen your Podfile should look like this:\n\n```\n# add this line:\n$iOSVersion = '10.0'\n\npost_install do |installer|\n  # add these lines:\n  installer.pods_project.build_configurations.each do |config|\n    config.build_settings[\"EXCLUDED_ARCHS[sdk=*]\"] = \"armv7\"\n    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion\n  end\n  \n  installer.pods_project.targets.each do |target|\n    flutter_additional_ios_build_settings(target)\n    \n    # add these lines:\n    target.build_configurations.each do |config|\n      if Gem::Version.new($iOSVersion) \u003e Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])\n        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion\n      end\n    end\n    \n  end\nend\n```\n\nNotice that the minimum `IPHONEOS_DEPLOYMENT_TARGET` is 10.0, you can set it to something newer but not older.\n\n### Android\n\n- minSdkVersion: 21\n- targetSdkVersion: 29\n\n## Usage\n\nAdd this plugin as dependency in your pubspec.yaml.\n\n- In your project-level build.gradle file, make sure to include Google's Maven repository in both your buildscript and allprojects sections(for all api's).\n- All API's except `Image Labeling`, `Face Detection` and `Barcode Scanning` use bundled models, hence others should work out of the box.\n- For API's using unbundled models, configure your application to download the model to your device automatically from play store by adding the following to your app's `AndroidManifest.xml`, if not configured the respective models will be downloaded when the API's are invoked for the first time. \n\n  ```xml\n  \u003cmeta-data\n          android:name=\"com.google.mlkit.vision.DEPENDENCIES\"\n          android:value=\"ica\" /\u003e\n      \u003c!-- To use multiple models: android:value=\"ica,model2,model3\" --\u003e\n  ```\n  \n  Use these options:\n  \n  - **ica** - `Image Labeling`\n  - **ocr** - `Barcode Scanning`\n  - **face** -`Face Detection`\n\n## Migrating from ML Kit for Firebase\n\nWhen Migrating from ML Kit for Firebase read [this guide](https://developers.google.com/ml-kit/migration). For Android details read [this](https://developers.google.com/ml-kit/migration/android). For iOS details read [this](https://developers.google.com/ml-kit/migration/ios).\n\n## Known issues\n\n### Android\n\nTo reduce the apk size read more about it in issue [#26](https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/26). Also look at [this](https://developers.google.com/ml-kit/tips/reduce-app-size).\n\n### iOS\n\nIf you are using this plugin in your app and any other plugin that requires Firebase, there is a known issues you will encounter a dependency error when running `pod install`. To read more about it go to issue [#27](https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/27).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardocaste%2Fface_detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricardocaste%2Fface_detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardocaste%2Fface_detection/lists"}