{"id":23599815,"url":"https://github.com/luisdemarchi/cordova-plugin-facedetection-lite","last_synced_at":"2025-08-30T09:35:43.350Z","repository":{"id":57208148,"uuid":"191828498","full_name":"luisdemarchi/cordova-plugin-facedetection-lite","owner":"luisdemarchi","description":"A face detection plugin tested on old and offline smartphone for hybrid applications in Cordova. Runs on iOS, Android and Browser.","archived":false,"fork":false,"pushed_at":"2019-10-30T14:20:28.000Z","size":8996,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-09T03:42:16.973Z","etag":null,"topics":["android","browser","cordova","cordova-plugin","detection","face-detection","facial-detection","image-processing","ios","mobile"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luisdemarchi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-13T20:25:55.000Z","updated_at":"2023-08-21T07:42:51.000Z","dependencies_parsed_at":"2022-09-08T20:42:13.622Z","dependency_job_id":null,"html_url":"https://github.com/luisdemarchi/cordova-plugin-facedetection-lite","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/luisdemarchi/cordova-plugin-facedetection-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisdemarchi%2Fcordova-plugin-facedetection-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisdemarchi%2Fcordova-plugin-facedetection-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisdemarchi%2Fcordova-plugin-facedetection-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisdemarchi%2Fcordova-plugin-facedetection-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luisdemarchi","download_url":"https://codeload.github.com/luisdemarchi/cordova-plugin-facedetection-lite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisdemarchi%2Fcordova-plugin-facedetection-lite/sbom","scorecard":{"id":603469,"data":{"date":"2025-08-11","repo":{"name":"github.com/luisdemarchi/cordova-plugin-facedetection-lite","commit":"c21e550d89340215ccea648488a221ec88eb935a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":0,"reason":"binaries present in source code","details":["Warn: binary detected: src/android/libs/arm64-v8a/libpicornt.so:1","Warn: binary detected: src/android/libs/armeabi-v7a/libpicornt.so:1","Warn: binary detected: src/android/libs/x86/libpicornt.so:1","Warn: binary detected: src/android/libs/x86_64/libpicornt.so:1","Warn: binary detected: src/android/obj/local/arm64-v8a/libpicornt.so:1","Warn: binary detected: src/android/obj/local/arm64-v8a/objs/picornt/FaceDetectionJni.o:1","Warn: binary detected: src/android/obj/local/arm64-v8a/objs/picornt/__/__/common/picornt/picornt.o:1","Warn: binary detected: src/android/obj/local/armeabi-v7a/libpicornt.so:1","Warn: binary detected: src/android/obj/local/armeabi-v7a/objs/picornt/FaceDetectionJni.o:1","Warn: binary detected: src/android/obj/local/armeabi-v7a/objs/picornt/__/__/common/picornt/picornt.o:1","Warn: binary detected: src/android/obj/local/x86/libpicornt.so:1","Warn: binary detected: src/android/obj/local/x86/objs/picornt/FaceDetectionJni.o:1","Warn: binary detected: src/android/obj/local/x86/objs/picornt/__/__/common/picornt/picornt.o:1","Warn: binary detected: src/android/obj/local/x86_64/libpicornt.so:1","Warn: binary detected: src/android/obj/local/x86_64/objs/picornt/FaceDetectionJni.o:1","Warn: binary detected: src/android/obj/local/x86_64/objs/picornt/__/__/common/picornt/picornt.o:1","Warn: binary detected: src/ios/libs/libpicornt.a:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: The Unlicense: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T01:00:51.604Z","repository_id":57208148,"created_at":"2025-08-21T01:00:51.604Z","updated_at":"2025-08-21T01:00:51.604Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272833294,"owners_count":25000870,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","browser","cordova","cordova-plugin","detection","face-detection","facial-detection","image-processing","ios","mobile"],"created_at":"2024-12-27T11:26:16.938Z","updated_at":"2025-08-30T09:35:43.329Z","avatar_url":"https://github.com/luisdemarchi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Cordova Plugin Face Detection - LITE\n=======================\n\nPlugin for facial detection in real-time and off-line, extremely lite. It is designed to run on old smartphones.\nThis plugin implemented the method described in [2013 by Markuš et al] (http://arxiv.org/abs/1305.4537).\n\nPS: For older smartphones, it is ideal that each frame reviewed has a maximum height and width of 60 pixels and the processing cycle runs every 100 milliseconds or more. In the sample project, this was implemented.\n\n\n# Installation\n\nThis plugin can be used on the iOS, Android, Electron and Browser platforms;\n```\ncordova plugins add cordova-plugin-facedetection-lite\n```\n\n# Methods\n\n### initFaceDetection(sizeFrameMemory, faceFinderPath, resultCallback)\n\n* `sizeFrameMemory` - Number of frames that will be used to reinforce the detection of all faces. Defaults to 5\n* `faceFinderPath` - Facial training file location, being allowed offline. Defaults to [cascades/facefinder](https://raw.githubusercontent.com/nenadmarkus/pico/c2e81f9d23cc11d1a612fd21e4f9de0921a5d0d9/rnt/cascades/facefinder)\n* `resultCallback` - Callback function\n\n\n##### Code:\n```javascript\nfacedetection.initFaceDetection(5, \"./facefinder\", function (result) {\n    /* Here you can create the loop to detect frames */\n});\n```\n\u003cinfo\u003e**Warning**: Until the current version, the parameters are being ignored on some platforms, being ixed default value in the code.\u003c/info\u003e\n\n### detections(rgba, width, height, minSizeFace, maxSizeFace, iouthreshold, resultCallback)\n\n* `rgba` - Image in byte array\n* `width` - Image width\n* `height` - Image height\n* `minSizeFace` - Minimum size of selected faces\n* `maxSizeFace` - Maximum size of selected faces\n* `resultCallback` - Callback function\n\n##### Code:\n```javascript\nfacedetection.detections(rgba, cameraWidth, cameraHeight, cameraWidth * 0.2, cameraWidth * 1.2, 0.1, function (dets) {\n    for (i = 0; i \u003c dets.length; ++i) {\n        var box = dets[i];\n\n        var canvasPreviewCtx = canvasPreview.getContext('2d');\n        canvasPreviewCtx.beginPath();\n        canvasPreviewCtx.arc(box[1], box[0], box[2] / 2, 0, 2 * Math.PI, false);\n        canvasPreviewCtx.lineWidth = 1;\n        canvasPreviewCtx.strokeStyle = 'red';\n        canvasPreviewCtx.stroke();\n    }\n});\n```\n\u003cinfo\u003e**Warning**: Until the current version, only the first 3 parameters are implemented and the rest of the parameters are being ignored on some of the platforms, being fixed default value in the code.\u003c/info\u003e\n\n\n# Sample App\n\n[cordova-sample-facedetection](https://github.com/luisdemarchi/cordova-sample-facedetection) for a complete working Cordova example for Android, iOS and Browser platforms.\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003ch3\u003eiOS / Android\u003c/h3\u003e\n\u003cimg src=\"https://github.com/luisdemarchi/cordova-plugin-facedetection-lite/raw/a3dd61fa8f7de022b165accaa12d788758698ba3/images/demo-ios.gif\"  height=\"300\"\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n\u003ch3\u003eBrowser\u003c/h3\u003e\n\u003cimg src=\"https://github.com/luisdemarchi/cordova-plugin-facedetection-lite/raw/a3dd61fa8f7de022b165accaa12d788758698ba3/images/demo-browser.gif\" height=\"300\"\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\n# Task List\n\n- [x] Basic structure of the plugin;\n- [x] Add PicoJS library to the Browser\n- [x] Compile Pico library in C for iOS\n- [x] Compile Pico library in C for Android\n- [ ] Process dynamic path to training file\n- [ ] Process dynamic parameters when calling each function\n\n\n# Development\n\nIf you intend to do some improvement in the project, follow some instructions, such as compiling library in the C language.\n\n## Recompiling libraries\n\nIf you modify the C source files, be sure to re-build the compiled libraries.\n\n#### Android\n\nYou can re-build the `libpicornt.so` binaries using the ndk-build script.\n\nTo do so:\n\n- Install Android NDK as [instructed here](https://developer.android.com/ndk/guides/index.html)\n- Add the NDK install path to your path environment variable\n    - By default it's installed under $ANDROID_SDK_HOME/ndk-bundle\n    - e.g. `export PATH=$PATH;$ANDROID_SDK_HOME/ndk-bundle`\n- Set the ANDROID_NDK_HOME environment variable to your NDK install path\n    - e.g. `export ANDROID_NDK_HOME=$ANDROID_SDK_HOME/ndk-bundle`\n- Open terminal in plugin root folder\n- Run `./compile-android` (`compile-android.cmd` on Windows)\n    \n#### iOS\n\nIf you modify the C source code in `common/picornt/` you'll need to rebuild the static library and headers in `src/ios/libs`.\n\n- Open terminal in plugin root folder\n- Run `./compile-ios`\n\n\n# Credits\n\nCreated by Luís De Marchi [@luisdemarchi](https://github.com/luisdemarchi) - [Linkedin](https://www.linkedin.com/in/luis5/)\n\n#### Libraries used:\n\n  - Mobile (Language C) : [nenadmarkus/pico](https://github.com/nenadmarkus/pico)\n  - Browser (Language JS): [tehnokv/picojs](https://github.com/tehnokv/picojs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisdemarchi%2Fcordova-plugin-facedetection-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisdemarchi%2Fcordova-plugin-facedetection-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisdemarchi%2Fcordova-plugin-facedetection-lite/lists"}