-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from luisdemarchi/develop
Develop
- Loading branch information
Showing
448 changed files
with
66,559 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# ----------------------------------------------------------------- | ||
# .gitignore | ||
# Bare Minimum Git | ||
# http://ironco.de/bare-minimum-git/ | ||
# ver 20181206 | ||
# | ||
# From the root of your project run | ||
# curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore | ||
# to download this file | ||
# | ||
# This file is tailored for a general web project, it | ||
# is NOT optimized for a WordPress project. See | ||
# https://gist.github.com/salcode/b515f520d3f8207ecd04 | ||
# for a WordPress specific .gitignore | ||
# | ||
# This file specifies intentionally untracked files to ignore | ||
# http://git-scm.com/docs/gitignore | ||
# | ||
# NOTES: | ||
# The purpose of gitignore files is to ensure that certain files not | ||
# tracked by Git remain untracked. | ||
# | ||
# To ignore uncommitted changes in a file that is already tracked, | ||
# use `git update-index --assume-unchanged`. | ||
# | ||
# To stop tracking a file that is currently tracked, | ||
# use `git rm --cached` | ||
# | ||
# Change Log: | ||
# 20181206 remove trailing whitespaces | ||
# 20180714 unignore .phpcs.xml.dist | ||
# 20170502 unignore composer.lock | ||
# 20170502 ignore components loaded via Bower | ||
# 20150326 ignore jekyll build directory `/_site` | ||
# 20150324 Reorganized file to list ignores first and whitelisted last, | ||
# change WordPress .gitignore link to preferred gist, | ||
# add curl line for quick installation | ||
# ignore composer files (vendor directory and lock file) | ||
# 20140606 Add .editorconfig as a tracked file | ||
# 20140418 remove explicit inclusion | ||
# of readme.md (this is not an ignored file by default) | ||
# 20140407 Initially Published | ||
# | ||
# ----------------------------------------------------------------- | ||
|
||
# ignore all files starting with . or ~ | ||
.* | ||
~* | ||
|
||
.DS_Store | ||
|
||
# ignore node/grunt dependency directories | ||
node_modules/ | ||
package-lock.json | ||
/*/package-lock.json | ||
/*/node_modules/ | ||
|
||
# ignore composer vendor directory | ||
/vendor | ||
|
||
# ignore components loaded via Bower | ||
/bower_components | ||
|
||
# ignore jekyll build directory | ||
/_site | ||
|
||
# ignore OS generated files | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
# ignore Editor files | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.komodoproject | ||
|
||
# ignore log files and databases | ||
*.log | ||
*.sql | ||
*.sqlite | ||
|
||
# ignore compiled files | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
*.so | ||
|
||
# ignore packaged files | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.iso | ||
*.jar | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# ------------------------- | ||
# BEGIN Whitelisted Files | ||
# ------------------------- | ||
|
||
# track these files, if they exist | ||
!.gitignore | ||
!.editorconfig | ||
!.phpcs.xml.dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
For more information, please refer to <http://unlicense.org> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Cordova Face Detector 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. | ||
This plugin implementation of the method described in [2013 by Markuš et al](http://arxiv.org/abs/1305.4537). | ||
|
||
- 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cd src/android | ||
rm -Rf libs/ obj/ | ||
ndk-build | ||
cd ../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@echo off | ||
cd src\android | ||
rmdir libs obj /S /Q | ||
ndk-build.cmd | ||
cd ..\.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cd src/ios | ||
./ios_compile.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# FaceDetector | ||
|
||
This application is a basic example for detecting single face in real time by the device camera, using the FaceDetector plugin. | ||
App Language: HTML - JavaScript | ||
- iOS: Objective-C & C | ||
- Android: Java & C | ||
- Browser: JavaScript | ||
|
||
## Structure | ||
``` | ||
├── config.xml (Cordova Config) | ||
├── package.json (NPM Config) | ||
└── www (Build HTML) | ||
├── index.html - Contains JS example, embe | ||
└── facefinder - Recognition file | ||
``` | ||
|
||
### TODO | ||
- There is a memory leak in the iOS version; | ||
- Version for android was not developed; | ||
|
||
### Development | ||
Luís Antonio De Marchi | ||
[email protected] | ||
Brazil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<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"> | ||
<name>FaceDetector</name> | ||
<description> | ||
A sample Apache Cordova application for Face Detector. | ||
</description> | ||
<author email="[email protected]" href="http://luisdemarchi.com.br"> | ||
Luis De Marchi | ||
</author> | ||
<content src="index.html" /> | ||
<allow-navigation href="*" /> | ||
<allow-intent href="*" /> | ||
<access origin="*" /> | ||
<allow-intent href="http://*/*" /> | ||
<allow-intent href="https://*/*" /> | ||
<allow-intent href="tel:*" /> | ||
<allow-intent href="sms:*" /> | ||
<allow-intent href="mailto:*" /> | ||
<allow-intent href="geo:*" /> | ||
<preference name="websecurity" value="disable" /> | ||
<platform name="android"> | ||
<allow-intent href="market:*" /> | ||
<preference name="loadUrlTimeoutValue" value="700000" /> | ||
<preference name="android-minSdkVersion" value="19" /> | ||
<preference name="android-targetSdkVersion" value="26" /> | ||
</platform> | ||
<platform name="ios"> | ||
<allow-intent href="itms:*" /> | ||
<allow-intent href="itms-apps:*" /> | ||
</platform> | ||
<config-file overwrite="true" parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist"> | ||
<string>Allow the app to use your camera</string> | ||
</config-file> | ||
<platform name="electron"> | ||
<preference name="ElectronSettingsFilePath" value="res/electron/settings.json" /> | ||
</platform> | ||
<plugin name="cordova-plugin-whitelist" spec="1" /> | ||
</widget> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--> | ||
# Cordova Hooks | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "br.com.luisdemarchi.facedetector", | ||
"displayName": "FaceDetector", | ||
"version": "0.1.0", | ||
"description": "A sample Apache Cordova application example of FaceDetector.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"ecosystem:cordova" | ||
], | ||
"author": "Apache Cordova Team", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"com.virtuoworks.cordova-plugin-canvascamera": "git+https://github.com/VirtuoWorks/CanvasCameraPlugin.git", | ||
"cordova-browser": "^6.0.0", | ||
"cordova-ios": "^5.0.1", | ||
"cordova-plugin-broadcaster": "^3.1.1", | ||
"cordova-plugin-compat": "^1.2.0", | ||
"cordova-plugin-device": "^2.0.2", | ||
"cordova-plugin-facedetector": "file:../../plugins/cordova-plugin-facedetector" | ||
}, | ||
"devDependencies": { | ||
"cordova-plugin-whitelist": "^1.3.3" | ||
}, | ||
"cordova": { | ||
"plugins": { | ||
"cordova-plugin-whitelist": {}, | ||
"com.virtuoworks.cordova-plugin-canvascamera": { | ||
"CAMERA_USAGE_DESCRIPTION": "Display video preview" | ||
}, | ||
"cordova-plugin-device": {}, | ||
"cordova-plugin-facedetector": {} | ||
}, | ||
"platforms": [ | ||
"browser", | ||
"ios" | ||
] | ||
} | ||
} |
Oops, something went wrong.