Skip to content

Commit 8356c15

Browse files
author
andyfaceplugin
committed
Face Recognition Ionic Cordova Initial Version
1 parent 1b201e4 commit 8356c15

146 files changed

Lines changed: 24509 additions & 0 deletions

File tree

Some content is hidden

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

FacePlugin/.DS_Store

6 KB
Binary file not shown.

FacePlugin/package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "FacePlugin",
3+
"version": "0.0.1",
4+
"description": "A face detection offline with a few lines of code. Was designed to run on old smartphones.",
5+
"cordova": {
6+
"id": "cordova-plugin-ttvface",
7+
"platforms": [
8+
"ios",
9+
"android",
10+
"browser"
11+
]
12+
}
13+
}
14+

FacePlugin/plugin.xml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<plugin id="com.ttv.face.plugin" version="0.0.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
3+
<name>FacePlugin</name>
4+
<js-module name="FacePlugin" src="www/FacePlugin.js">
5+
<clobbers target="FacePlugin" />
6+
</js-module>
7+
<platform name="android">
8+
<config-file parent="/*" target="res/xml/config.xml">
9+
<feature name="FacePlugin">
10+
<param name="android-package" value="com.ttv.face.plugin.FacePlugin" />
11+
</feature>
12+
<preference name="AndroidXEnabled" value="true" />
13+
</config-file>
14+
<config-file target="AndroidManifest.xml" parent="/manifest/application">
15+
<activity android:label="Camera Activity" android:name="com.ttv.facerecog.CameraActivity" android:theme="@style/Theme.AppCompat"></activity>
16+
</config-file>
17+
<!-- <config-file target="AndroidManifest.xml" parent="/*" mode="merge">
18+
<uses-permission android:name="android.permission.CAMERA" />
19+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
20+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
21+
</config-file> -->
22+
<config-file parent="/*" target="AndroidManifest.xml"></config-file>
23+
<source-file src="src/android/FacePlugin.java" target-dir="src/com/ttv/face/plugin" />
24+
<source-file src="src/android/CameraActivity.java" target-dir="src/com/ttv/facerecog" />
25+
<source-file src="src/android/FaceRectTransformer.java" target-dir="src/com/ttv/facerecog" />
26+
<source-file src="src/android/FaceRectView.java" target-dir="src/com/ttv/facerecog" />
27+
<source-file src="src/android/ImageRotator.java" target-dir="src/com/ttv/facerecog" />
28+
<source-file src="src/android/PermissionsDelegate.java" target-dir="src/com/ttv/facerecog" />
29+
<source-file src="src/android/activity_camera.xml" target-dir="res/layout"/>
30+
<source-file src="src/android/ic_refresh.xml" target-dir="res/drawable"/>
31+
<source-file src="src/android/build-extras.gradle" target-dir="."/>
32+
<framework src="src/android/aarintegration.gradle" custom="true" type="gradleReference"/>
33+
<resource-file src="src/android/facesdk.aar" target="libs/facesdk.aar"/>
34+
35+
<framework src="androidx.appcompat:appcompat:1.1.0" />
36+
<framework src="com.google.android.material:material:1.1.0-alpha05" />
37+
<framework src="androidx.constraintlayout:constraintlayout:2.1.2" />
38+
<framework src="androidx.camera:camera-core:1.0.0-beta12" />
39+
<framework src="androidx.camera:camera-camera2:1.0.0-beta12" />
40+
<framework src="androidx.camera:camera-lifecycle:1.0.0-beta12" />
41+
<framework src="androidx.camera:camera-view:1.0.0-alpha19" />
42+
</platform>
43+
44+
<platform name="ios">
45+
46+
<config-file target="config.xml" parent="/widget">
47+
<feature name="FacePlugin">
48+
<param name="ios-package" value="FacePlugin" />
49+
</feature>
50+
</config-file>
51+
52+
<header-file src="src/ios/FacePlugin.h" target-dir="FacePlugin"/>
53+
<source-file src="src/ios/FacePlugin.m" target-dir="FacePlugin"/>
54+
<header-file src="src/ios/FaceView.h" target-dir="FacePlugin"/>
55+
<source-file src="src/ios/FaceView.m" target-dir="FacePlugin"/>
56+
<header-file src="src/ios/VideoViewController.h" target-dir="FacePlugin"/>
57+
<source-file src="src/ios/VideoViewController.mm" target-dir="FacePlugin"/>
58+
59+
<source-file src="src/ios/facesdk.framework" target-dir="lib" framework="true"/>
60+
<framework src="src/ios/facesdk.framework" embed="true" custom="true"/>
61+
<header-file src="src/ios/facesdk.framework/Headers/facesdk.h" target-dir="FacePlugin"/>
62+
<header-file src="src/ios/facesdk.framework/Headers/facesdk_api.h" target-dir="FacePlugin"/>
63+
64+
<resource-file src="src/ios/ic_switch.png" />
65+
66+
67+
</platform>
68+
</plugin>

FacePlugin/src/.DS_Store

6 KB
Binary file not shown.

0 commit comments

Comments
 (0)