{"id":19273063,"url":"https://github.com/fluttercandies/flutter_bdface_collect","last_synced_at":"2025-04-21T22:32:35.807Z","repository":{"id":41178740,"uuid":"374641014","full_name":"fluttercandies/flutter_bdface_collect","owner":"fluttercandies","description":"a baidu face offline collect plugin. Only Android and IOS platforms are supported.  百度人脸离线采集插件，只支持安卓和iOS。","archived":false,"fork":false,"pushed_at":"2024-06-24T09:38:24.000Z","size":42709,"stargazers_count":35,"open_issues_count":6,"forks_count":16,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-24T11:10:48.843Z","etag":null,"topics":["baidu","baiduface","face"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluttercandies.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-07T11:28:23.000Z","updated_at":"2024-06-24T09:38:28.000Z","dependencies_parsed_at":"2024-06-24T11:00:36.497Z","dependency_job_id":"b8b2e6fc-df8a-4265-9bc1-5b0b79761e27","html_url":"https://github.com/fluttercandies/flutter_bdface_collect","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_bdface_collect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_bdface_collect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_bdface_collect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_bdface_collect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttercandies","download_url":"https://codeload.github.com/fluttercandies/flutter_bdface_collect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223881804,"owners_count":17219268,"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":["baidu","baiduface","face"],"created_at":"2024-11-09T20:40:41.075Z","updated_at":"2024-11-09T20:40:41.702Z","avatar_url":"https://github.com/fluttercandies.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_bdface_collect\n\na baidu face offline collect plugin. Only Android and IOS platforms are supported. 【armeabi-v7a、arm64-v8a】\n\n百度人脸离线采集插件，只支持安卓和iOS。【armeabi-v7a、arm64-v8a】\n\n# PS: SDK only support armeabi-v7a、arm64-v8a, if want x86, Please select [old-sdk](https://github.com/fluttercandies/flutter_bdface_collect/tree/old-sdk)\n# PS: SDK 只支持 armeabi-v7a、arm64-v8a, 如果想使用 x86, 请选择 [old-sdk](https://github.com/fluttercandies/flutter_bdface_collect/tree/old-sdk)\n\n## SDK Version\n| Platform | Version |\n|   ----   |--------|\n|  Android | 4.1.5  |\n|   iOS    | 4.1.5  |\n\n## Preparing for use\n\nPS：已注释隐私授权检查，故使用前请自行检查授权\n\n### Android\n在 Android 项目的`app/src/main/assets` 目录下放入百度离线采集SDK的Android授权文件，文件名固定为 `idl-license.face-android`\nSDK 会校验 apk 签名，请使用申请授权相符的签名证书\n### iOS\n\n在 `Info.plist` 的 `dict` 标签内添加以下内容\n```xml\n\u003ckey\u003eNSCameraUsageDescription\u003c/key\u003e\n\u003cstring\u003e使用相机\u003c/string\u003e\n```\n在 iOS 项目的 `Runner` 目录下放入百度离线采集SDK的iOS授权文件，文件名固定为 `idl-license.face-ios`，并将文件加入资源\n![example](https://raw.githubusercontent.com/fluttercandies/flutter_bdface_collect/main/doc/QQ20210616-175934.jpg)\n\n## Usage\n\n### Init 初始化\n```dart \n    late var licenseId;\n    if (Platform.isAndroid) licenseId = \"demo-face-android\";\n    else if (Platform.isIOS) licenseId = \"demo-face-ios\";\n    print('开始初始化');\n    String? err = await FlutterBdfaceCollect.instance.init(licenseId);\n    print('初始化结果${err == null ? '成功' : '失败'}');\n```\n\n### Collect 采集\n```dart\n    FaceConfig config = FaceConfig(livenessTypes: Set.from(LivenessType.all.sublist(1, 4)));\n    CollectRresult res = await FlutterBdfaceCollect.instance.collect(config);\n    print('采集错误结果:${res.error.isNotEmpty} 内容：${res.error}');\n    print('采集原图imageCropBase64:${res.imageSrcBase64.isNotEmpty}');\n    print('采集抠图imageSrcBase64:${res.imageCropBase64.isNotEmpty}');\n```\n### UnInit 释放\n```dart\n    FlutterBdfaceCollect.instance.unInit();\n```\n\n## 常见问题\n### iOS\n### Android\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fflutter_bdface_collect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttercandies%2Fflutter_bdface_collect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fflutter_bdface_collect/lists"}