Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-facedetection-lite

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-facedetection-lite - npm Package Compare versions

Comparing version 0.1.1 to 0.3.0

24

package.json
{
"name": "cordova-plugin-facedetection-lite",
"version": "0.1.1",
"description": "A face detection library in 200 lines of JavaScript for Browser and C for native mobile.",
"version": "0.3.0",
"description": "A face detection offline with a few lines of code. Was designed to run on old smartphones.",
"cordova": {

@@ -15,15 +15,23 @@ "id": "cordova-plugin-facedetection-lite",

"type": "git",
"url": "git+ssh://git@gitlab.com:employer/cordova-plugin-facedetection-lite.git"
"url": "https://github.com/luisdemarchi/cordova-plugin-facedetection-lite.git"
},
"issue": "https://github.com/luisdemarchi/cordova-plugin-facedetection-lite/issues",
"keywords": [
"face",
"detection",
"reconhecer",
"ecosystem:cordova",
"phonegap",
"cordova-ios",
"cordova-android",
"cordova-browser"
"cordova-browser",
"facedetection",
"face",
"detection",
"detecção",
"lite"
],
"author": "Luís De Marchi",
"author":{
"name": "Luís De Marchi",
"email": "luis@luisdemarchi.com.br",
"url": "http://www.luisdemarchi.com.br"
},
"license": "unlicense"
}

@@ -1,10 +0,64 @@

# Cordova Face Detection plugin for Android, iOS and Browser v0.1.0
This plug-in makes detection of faces offline with few lines of code, without the need to use TensorFlow, which is extremely heavy for both Browser and applications.
# Cordova Plugin Face Detection - LITE
This plug-in makes facial detection offline with a few lines of code, without the need to use TensorFlow. Was designed to run on old smartphones.
This plugin implementation of the method described in [2013 by Markuš et al](http://arxiv.org/abs/1305.4537).
#### Old devices tested:
- Moto E - Android 5.1
- Moto J5 - Android 6.0
- iPhone 6 - iOS 11
- iPhone 6s - iOS 12
# Installation
TODO
# Methods
TODO
# Sample App
TODO
<table>
<tr>
<td>
<h3>iOS</h3>
<img src="https://github.com/luisdemarchi/example-cordova-facedetection/raw/7bb36c3463826f0237705dac6a4c71f2a50f1fd6/images/demo-ios.gif" height="300">
</td>
<td>
<h3>Browser</h3>
<img src="https://github.com/luisdemarchi/example-cordova-facedetection/raw/7bb36c3463826f0237705dac6a4c71f2a50f1fd6/images/demo-browser.gif" height="300">
</td>
</tr>
</table>
# Recompiling libraries
If you modify the C source files, be sure to re-build the compiled libraries.
## Android
You can re-build the `libpicornt.so` binaries using the ndk-build script.
To do so:
- Install Android NDK as [instructed here](https://developer.android.com/ndk/guides/index.html)
- Add the NDK install path to your path environment variable
- By default it's installed under $ANDROID_SDK_HOME/ndk-bundle
- e.g. `export PATH=$PATH;$ANDROID_SDK_HOME/ndk-bundle`
- Set the ANDROID_NDK_HOME environment variable to your NDK install path
- e.g. `export ANDROID_NDK_HOME=$ANDROID_SDK_HOME/ndk-bundle`
- Open terminal in plugin root folder
- Run `./compile-android` (`compile-android.cmd` on Windows)
## iOS
If you modify the C source code in `common/picornt/` you'll need to rebuild the static library and headers in `src/ios/libs`.
- Open terminal in plugin root folder
- Run `./compile-ios`
# Credits
Created by Luís De Marchi [@luisdemarchi](https://github.com/luisdemarchi) - [Linkedin](https://www.linkedin.com/in/luis5/)
#### Libraries used:
- Mobile (Language C) : [nenadmarkus/pico](https://github.com/nenadmarkus/pico)
- Browser (Language JS): [tehnokv/picojs](https://github.com/tehnokv/picojs)
### TODO / BUG
- There is a memory leak in the iOS version;
- Version for android was not developed;
- Browser (Language JS): [tehnokv/picojs](https://github.com/tehnokv/picojs)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc