Skip to content

Commit 313e41a

Browse files
authored
Merge pull request #1 from luisdemarchi/develop
Develop
2 parents 195450a + 7a5e789 commit 313e41a

File tree

448 files changed

+66559
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

448 files changed

+66559
-0
lines changed

.DS_Store

8 KB
Binary file not shown.

.gitignore

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# -----------------------------------------------------------------
2+
# .gitignore
3+
# Bare Minimum Git
4+
# http://ironco.de/bare-minimum-git/
5+
# ver 20181206
6+
#
7+
# From the root of your project run
8+
# curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore
9+
# to download this file
10+
#
11+
# This file is tailored for a general web project, it
12+
# is NOT optimized for a WordPress project. See
13+
# https://gist.github.com/salcode/b515f520d3f8207ecd04
14+
# for a WordPress specific .gitignore
15+
#
16+
# This file specifies intentionally untracked files to ignore
17+
# http://git-scm.com/docs/gitignore
18+
#
19+
# NOTES:
20+
# The purpose of gitignore files is to ensure that certain files not
21+
# tracked by Git remain untracked.
22+
#
23+
# To ignore uncommitted changes in a file that is already tracked,
24+
# use `git update-index --assume-unchanged`.
25+
#
26+
# To stop tracking a file that is currently tracked,
27+
# use `git rm --cached`
28+
#
29+
# Change Log:
30+
# 20181206 remove trailing whitespaces
31+
# 20180714 unignore .phpcs.xml.dist
32+
# 20170502 unignore composer.lock
33+
# 20170502 ignore components loaded via Bower
34+
# 20150326 ignore jekyll build directory `/_site`
35+
# 20150324 Reorganized file to list ignores first and whitelisted last,
36+
# change WordPress .gitignore link to preferred gist,
37+
# add curl line for quick installation
38+
# ignore composer files (vendor directory and lock file)
39+
# 20140606 Add .editorconfig as a tracked file
40+
# 20140418 remove explicit inclusion
41+
# of readme.md (this is not an ignored file by default)
42+
# 20140407 Initially Published
43+
#
44+
# -----------------------------------------------------------------
45+
46+
# ignore all files starting with . or ~
47+
.*
48+
~*
49+
50+
.DS_Store
51+
52+
# ignore node/grunt dependency directories
53+
node_modules/
54+
package-lock.json
55+
/*/package-lock.json
56+
/*/node_modules/
57+
58+
# ignore composer vendor directory
59+
/vendor
60+
61+
# ignore components loaded via Bower
62+
/bower_components
63+
64+
# ignore jekyll build directory
65+
/_site
66+
67+
# ignore OS generated files
68+
ehthumbs.db
69+
Thumbs.db
70+
71+
# ignore Editor files
72+
*.sublime-project
73+
*.sublime-workspace
74+
*.komodoproject
75+
76+
# ignore log files and databases
77+
*.log
78+
*.sql
79+
*.sqlite
80+
81+
# ignore compiled files
82+
*.com
83+
*.class
84+
*.dll
85+
*.exe
86+
*.o
87+
*.so
88+
89+
# ignore packaged files
90+
*.7z
91+
*.dmg
92+
*.gz
93+
*.iso
94+
*.jar
95+
*.rar
96+
*.tar
97+
*.zip
98+
99+
# -------------------------
100+
# BEGIN Whitelisted Files
101+
# -------------------------
102+
103+
# track these files, if they exist
104+
!.gitignore
105+
!.editorconfig
106+
!.phpcs.xml.dist

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org>

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Cordova Face Detector plugin for Android, iOS and Browser v0.1.0
2+
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.
3+
This plugin implementation of the method described in [2013 by Markuš et al](http://arxiv.org/abs/1305.4537).
4+
5+
- Mobile (Language C) : [nenadmarkus/pico](https://github.com/nenadmarkus/pico)
6+
- Browser (Language JS): [tehnokv/picojs](https://github.com/tehnokv/picojs)
7+
8+
### TODO / BUG
9+
- There is a memory leak in the iOS version;
10+
- Version for android was not developed;

compile-android

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cd src/android
2+
rm -Rf libs/ obj/
3+
ndk-build
4+
cd ../..

compile-android.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
cd src\android
3+
rmdir libs obj /S /Q
4+
ndk-build.cmd
5+
cd ..\..

compile-ios

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cd src/ios
2+
./ios_compile.sh

example/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# FaceDetector
2+
3+
This application is a basic example for detecting single face in real time by the device camera, using the FaceDetector plugin.
4+
App Language: HTML - JavaScript
5+
- iOS: Objective-C & C
6+
- Android: Java & C
7+
- Browser: JavaScript
8+
9+
## Structure
10+
```
11+
├── config.xml (Cordova Config)
12+
├── package.json (NPM Config)
13+
└── www (Build HTML)
14+
├── index.html - Contains JS example, embe
15+
└── facefinder - Recognition file
16+
17+
```
18+
19+
### TODO
20+
- There is a memory leak in the iOS version;
21+
- Version for android was not developed;
22+
23+
### Development
24+
Luís Antonio De Marchi
25+
26+
Brazil

example/config.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="br.com.employer.1" version="0.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>FaceDetector</name>
4+
<description>
5+
A sample Apache Cordova application for Face Detector.
6+
</description>
7+
<author email="[email protected]" href="http://luisdemarchi.com.br">
8+
Luis De Marchi
9+
</author>
10+
<content src="index.html" />
11+
<allow-navigation href="*" />
12+
<allow-intent href="*" />
13+
<access origin="*" />
14+
<allow-intent href="http://*/*" />
15+
<allow-intent href="https://*/*" />
16+
<allow-intent href="tel:*" />
17+
<allow-intent href="sms:*" />
18+
<allow-intent href="mailto:*" />
19+
<allow-intent href="geo:*" />
20+
<preference name="websecurity" value="disable" />
21+
<platform name="android">
22+
<allow-intent href="market:*" />
23+
<preference name="loadUrlTimeoutValue" value="700000" />
24+
<preference name="android-minSdkVersion" value="19" />
25+
<preference name="android-targetSdkVersion" value="26" />
26+
</platform>
27+
<platform name="ios">
28+
<allow-intent href="itms:*" />
29+
<allow-intent href="itms-apps:*" />
30+
</platform>
31+
<config-file overwrite="true" parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
32+
<string>Allow the app to use your camera</string>
33+
</config-file>
34+
<platform name="electron">
35+
<preference name="ElectronSettingsFilePath" value="res/electron/settings.json" />
36+
</platform>
37+
<plugin name="cordova-plugin-whitelist" spec="1" />
38+
</widget>

example/hooks/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
-->
21+
# Cordova Hooks
22+
23+
Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide.

example/package.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "br.com.luisdemarchi.facedetector",
3+
"displayName": "FaceDetector",
4+
"version": "0.1.0",
5+
"description": "A sample Apache Cordova application example of FaceDetector.",
6+
"main": "index.js",
7+
"scripts": {
8+
"test": "echo \"Error: no test specified\" && exit 1"
9+
},
10+
"keywords": [
11+
"ecosystem:cordova"
12+
],
13+
"author": "Apache Cordova Team",
14+
"license": "Apache-2.0",
15+
"dependencies": {
16+
"com.virtuoworks.cordova-plugin-canvascamera": "git+https://github.com/VirtuoWorks/CanvasCameraPlugin.git",
17+
"cordova-browser": "^6.0.0",
18+
"cordova-ios": "^5.0.1",
19+
"cordova-plugin-broadcaster": "^3.1.1",
20+
"cordova-plugin-compat": "^1.2.0",
21+
"cordova-plugin-device": "^2.0.2",
22+
"cordova-plugin-facedetector": "file:../../plugins/cordova-plugin-facedetector"
23+
},
24+
"devDependencies": {
25+
"cordova-plugin-whitelist": "^1.3.3"
26+
},
27+
"cordova": {
28+
"plugins": {
29+
"cordova-plugin-whitelist": {},
30+
"com.virtuoworks.cordova-plugin-canvascamera": {
31+
"CAMERA_USAGE_DESCRIPTION": "Display video preview"
32+
},
33+
"cordova-plugin-device": {},
34+
"cordova-plugin-facedetector": {}
35+
},
36+
"platforms": [
37+
"browser",
38+
"ios"
39+
]
40+
}
41+
}

0 commit comments

Comments
 (0)