-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
99 changed files
with
4,495 additions
and
454 deletions.
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
conf/facerec/video_worker_fdatracker_pb_blf_fda_front.xml
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,103 @@ | ||
<?xml version="1.0"?> | ||
<opencv_storage> | ||
|
||
<video_worker_impl_name>libface_video_worker</video_worker_impl_name> | ||
|
||
<tracker_type>fdatracker</tracker_type> | ||
|
||
<fda_file>share/fda/fda0017.3500.enc</fda_file> | ||
|
||
<fda_max_bad_count_wait>5</fda_max_bad_count_wait> | ||
<fda_max_weak_count_wait>30</fda_max_weak_count_wait> | ||
<fda_good_threshold>0.7</fda_good_threshold> | ||
<fda_continue_tracking_threshold>0.2</fda_continue_tracking_threshold> | ||
<!--<base_angle>0</base_angle>--> | ||
|
||
<iris_enabled>0</iris_enabled> | ||
<iris_config_filepath>conf/facerec/iris_fitter.xml</iris_config_filepath> | ||
|
||
<min_detection_period>0.1</min_detection_period> | ||
<max_detection_period>0</max_detection_period> | ||
<move_detection_threshold>8</move_detection_threshold> | ||
<max_processed_width>640</max_processed_width> | ||
<max_processed_height>640</max_processed_height> | ||
|
||
|
||
<detector_sub_type>pb_fd</detector_sub_type> | ||
<modification>blf_front</modification> | ||
<version>1</version> | ||
<num_threads>1</num_threads> | ||
|
||
<iou_threshold>0.45</iou_threshold> | ||
<confidence_threshold>0.4</confidence_threshold> | ||
|
||
<use_cuda>0</use_cuda> | ||
<gpu_index>0</gpu_index> | ||
<use_advanced_multithreading>0</use_advanced_multithreading> | ||
|
||
<depth_data_flag>0</depth_data_flag> | ||
<depth_liveness_config>conf/facerec/depth_liveness_estimator_cnn.xml</depth_liveness_config> | ||
<timestamp_distance_threshold_in_microsecs>5000</timestamp_distance_threshold_in_microsecs> | ||
<max_frames_number_to_synch_depth>150</max_frames_number_to_synch_depth> | ||
<max_frames_queue_size>3</max_frames_queue_size> | ||
|
||
<face_quality_model>share/face_quality/fda_fqm.bin</face_quality_model> | ||
|
||
<consecutive_match_count_for_match_found_callback>2</consecutive_match_count_for_match_found_callback> | ||
|
||
<recognition_yaw_min_threshold> -40 </recognition_yaw_min_threshold> | ||
<recognition_yaw_max_threshold> 40 </recognition_yaw_max_threshold> | ||
|
||
<recognition_pitch_min_threshold> -40 </recognition_pitch_min_threshold> | ||
<recognition_pitch_max_threshold> 40 </recognition_pitch_max_threshold> | ||
|
||
<consequent_detector_rejection_count_remove_limit>5</consequent_detector_rejection_count_remove_limit> | ||
|
||
<max_detector_confirm_wait_time>3</max_detector_confirm_wait_time> | ||
|
||
<max_frame_delay_store>10</max_frame_delay_store> | ||
|
||
<good_light_dark_threshold>32</good_light_dark_threshold> | ||
<good_light_range_threshold>32</good_light_range_threshold> | ||
<good_blur_threshold>0.20</good_blur_threshold> | ||
|
||
<single_match_mode>0</single_match_mode> | ||
|
||
<delayed_samples_in_tracking_callback>0</delayed_samples_in_tracking_callback> | ||
|
||
<weak_tracks_in_tracking_callback>0</weak_tracks_in_tracking_callback> | ||
|
||
<search_k>1</search_k> | ||
|
||
|
||
<matching_queue_size_limit>10000</matching_queue_size_limit> | ||
<processing_queue_size_limit>1000</processing_queue_size_limit> | ||
|
||
<recognizer_processing_less_memory_consumption>0</recognizer_processing_less_memory_consumption> | ||
|
||
<not_found_match_found_callback>0</not_found_match_found_callback> | ||
|
||
<store_original_frame_in_raw_sample>0</store_original_frame_in_raw_sample> | ||
|
||
|
||
|
||
<squeeze_match_found_callback_groups>0</squeeze_match_found_callback_groups> | ||
|
||
<debug_log_enabled>0</debug_log_enabled> | ||
|
||
<downscale_rawsamples_to_preferred_size>1</downscale_rawsamples_to_preferred_size> | ||
|
||
<min_template_generation_face_size>-1</min_template_generation_face_size> | ||
<min_tracking_face_size>-1</min_tracking_face_size> | ||
<max_tracking_face_size>-1</max_tracking_face_size> | ||
|
||
<need_stable_results>0</need_stable_results> | ||
|
||
|
||
<age_gender_estimator_config>conf/facerec/age_gender_estimator.xml</age_gender_estimator_config> | ||
<emotions_estimator_config>conf/facerec/emotions_estimator.xml</emotions_estimator_config> | ||
|
||
<enable_active_liveness>0</enable_active_liveness> | ||
<active_liveness_estimator_config>conf/facerec/active_liveness_estimator.xml</active_liveness_estimator_config> | ||
|
||
</opencv_storage> |
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
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
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
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
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,55 @@ | ||
def localProperties = new Properties() | ||
def localPropertiesFile = rootProject.file('local.properties') | ||
if (localPropertiesFile.exists()) { | ||
localPropertiesFile.withReader('UTF-8') { reader -> | ||
localProperties.load(reader) | ||
} | ||
} | ||
|
||
def flutterRoot = localProperties.getProperty('flutter.sdk') | ||
if (flutterRoot == null) { | ||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") | ||
} | ||
|
||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode') | ||
if (flutterVersionCode == null) { | ||
flutterVersionCode = '1' | ||
} | ||
|
||
def flutterVersionName = localProperties.getProperty('flutter.versionName') | ||
if (flutterVersionName == null) { | ||
flutterVersionName = '1.0' | ||
} | ||
|
||
apply plugin: 'com.android.application' | ||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" | ||
|
||
android { | ||
compileSdkVersion 34 | ||
|
||
defaultConfig { | ||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | ||
applicationId "com.example.face_sdk_3divi_isolates_demo" | ||
minSdkVersion 21 | ||
targetSdkVersion 30 | ||
versionCode flutterVersionCode.toInteger() | ||
versionName flutterVersionName | ||
} | ||
|
||
buildTypes { | ||
release { | ||
// TODO: Add your own signing config for the release build. | ||
// Signing with the debug keys for now, so `flutter run --release` works. | ||
signingConfig signingConfigs.debug | ||
} | ||
} | ||
sourceSets { | ||
main { | ||
jniLibs.srcDirs = ["${projectDir}/../../assets/lib"] | ||
} | ||
} | ||
} | ||
|
||
flutter { | ||
source '../..' | ||
} |
7 changes: 7 additions & 0 deletions
7
examples/flutter/isolates_demo/android/app/src/debug/AndroidManifest.xml
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,7 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.example.face_sdk_3divi_isolates_demo"> | ||
<!-- Flutter needs it to communicate with the running application | ||
to allow setting breakpoints, to provide hot reload, etc. | ||
--> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
</manifest> |
41 changes: 41 additions & 0 deletions
41
examples/flutter/isolates_demo/android/app/src/main/AndroidManifest.xml
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 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.example.face_sdk_3divi_isolates_demo"> | ||
<application | ||
android:label="face_sdk_3divi_isolates_demo" | ||
android:icon="@mipmap/ic_launcher"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:launchMode="singleTop" | ||
android:theme="@style/LaunchTheme" | ||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" | ||
android:hardwareAccelerated="true" | ||
android:windowSoftInputMode="adjustResize"> | ||
<!-- Specifies an Android theme to apply to this Activity as soon as | ||
the Android process has started. This theme is visible to the user | ||
while the Flutter UI initializes. After that, this theme continues | ||
to determine the Window background behind the Flutter UI. --> | ||
<meta-data | ||
android:name="io.flutter.embedding.android.NormalTheme" | ||
android:resource="@style/NormalTheme" | ||
/> | ||
<!-- Displays an Android View that continues showing the launch screen | ||
Drawable until Flutter paints its first frame, then this splash | ||
screen fades out. A splash screen is useful to avoid any visual | ||
gap between the end of Android's launch screen and the painting of | ||
Flutter's first frame. --> | ||
<meta-data | ||
android:name="io.flutter.embedding.android.SplashScreenDrawable" | ||
android:resource="@drawable/launch_background" | ||
/> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN"/> | ||
<category android:name="android.intent.category.LAUNCHER"/> | ||
</intent-filter> | ||
</activity> | ||
<!-- Don't delete the meta-data below. | ||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> | ||
<meta-data | ||
android:name="flutterEmbedding" | ||
android:value="2" /> | ||
</application> | ||
</manifest> |
36 changes: 36 additions & 0 deletions
36
...lates_demo/android/app/src/main/java/com/example/face_sdk_isolates_demo/MainActivity.java
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,36 @@ | ||
package com.example.face_sdk_3divi_isolates_demo; | ||
import android.content.pm.ApplicationInfo; | ||
import androidx.annotation.NonNull; | ||
import io.flutter.embedding.android.FlutterActivity; | ||
import io.flutter.embedding.engine.FlutterEngine; | ||
import io.flutter.embedding.engine.loader.FlutterLoader; | ||
import io.flutter.plugin.common.MethodChannel; | ||
import io.flutter.FlutterInjector; | ||
|
||
public class MainActivity extends FlutterActivity { | ||
static{ | ||
System.loadLibrary("facerec"); | ||
} | ||
|
||
private static final String CHANNEL = "samples.flutter.dev/facesdk"; | ||
|
||
private String _getNativeLibDir() { | ||
return getApplicationInfo().nativeLibraryDir; | ||
} | ||
|
||
@Override | ||
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { | ||
super.configureFlutterEngine(flutterEngine); | ||
new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), CHANNEL) | ||
.setMethodCallHandler( | ||
(call, result) -> { | ||
if (call.method.equals("getNativeLibDir")) { | ||
String nativeLibDir = _getNativeLibDir(); | ||
result.success(nativeLibDir); | ||
} else { | ||
result.notImplemented(); | ||
} | ||
} | ||
); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
examples/flutter/isolates_demo/android/app/src/main/res/drawable-v21/launch_background.xml
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,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Modify this file to customize your launch splash screen --> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="?android:colorBackground" /> | ||
|
||
<!-- You can insert your own image assets here --> | ||
<!-- <item> | ||
<bitmap | ||
android:gravity="center" | ||
android:src="@mipmap/launch_image" /> | ||
</item> --> | ||
</layer-list> |
12 changes: 12 additions & 0 deletions
12
examples/flutter/isolates_demo/android/app/src/main/res/drawable/launch_background.xml
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,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Modify this file to customize your launch splash screen --> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@android:color/white" /> | ||
|
||
<!-- You can insert your own image assets here --> | ||
<!-- <item> | ||
<bitmap | ||
android:gravity="center" | ||
android:src="@mipmap/launch_image" /> | ||
</item> --> | ||
</layer-list> |
Binary file added
BIN
+544 Bytes
...ples/flutter/isolates_demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+442 Bytes
...ples/flutter/isolates_demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+721 Bytes
...les/flutter/isolates_demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.01 KB
...es/flutter/isolates_demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.41 KB
...s/flutter/isolates_demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions
18
examples/flutter/isolates_demo/android/app/src/main/res/values-night/styles.xml
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,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on --> | ||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar"> | ||
<!-- Show a splash screen on the activity. Automatically removed when | ||
Flutter draws its first frame --> | ||
<item name="android:windowBackground">@drawable/launch_background</item> | ||
</style> | ||
<!-- Theme applied to the Android Window as soon as the process has started. | ||
This theme determines the color of the Android Window while your | ||
Flutter UI initializes, as well as behind your Flutter UI while its | ||
running. | ||
This Theme is only used starting with V2 of Flutter's Android embedding. --> | ||
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar"> | ||
<item name="android:windowBackground">?android:colorBackground</item> | ||
</style> | ||
</resources> |
18 changes: 18 additions & 0 deletions
18
examples/flutter/isolates_demo/android/app/src/main/res/values/styles.xml
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,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off --> | ||
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar"> | ||
<!-- Show a splash screen on the activity. Automatically removed when | ||
Flutter draws its first frame --> | ||
<item name="android:windowBackground">@drawable/launch_background</item> | ||
</style> | ||
<!-- Theme applied to the Android Window as soon as the process has started. | ||
This theme determines the color of the Android Window while your | ||
Flutter UI initializes, as well as behind your Flutter UI while its | ||
running. | ||
This Theme is only used starting with V2 of Flutter's Android embedding. --> | ||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar"> | ||
<item name="android:windowBackground">?android:colorBackground</item> | ||
</style> | ||
</resources> |
7 changes: 7 additions & 0 deletions
7
examples/flutter/isolates_demo/android/app/src/profile/AndroidManifest.xml
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,7 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.example.face_sdk_3divi_isolates_demo"> | ||
<!-- Flutter needs it to communicate with the running application | ||
to allow setting breakpoints, to provide hot reload, etc. | ||
--> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
</manifest> |
Oops, something went wrong.