Skip to content

Commit

Permalink
Face SDK v3.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nk2033 committed May 16, 2024
1 parent 9bea2ee commit 6c29be7
Show file tree
Hide file tree
Showing 99 changed files with 4,495 additions and 454 deletions.
103 changes: 103 additions & 0 deletions conf/facerec/video_worker_fdatracker_pb_blf_fda_front.xml
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>
17 changes: 7 additions & 10 deletions examples/android/android-vrdemo-license.lic
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@
<version>3.4.0.0</version>
<max_sdk_version>4.0.0</max_sdk_version>
<VideoClientExt>1</VideoClientExt>
<processor8v7>2</processor8v7>
<processor6v7>2</processor6v7>
<processor9v30mask>2</processor9v30mask>
<processor12v30>2</processor12v30>
<matcher8v7>1</matcher8v7>
<matcher6v7>1</matcher6v7>
<matcher9v30mask>1</matcher9v30mask>
<processor12v50>2</processor12v50>
<processor12v100>2</processor12v100>
<matcher12v30>1</matcher12v30>
<templatesindex8v7>100</templatesindex8v7>
<templatesindex6v7>100</templatesindex6v7>
<templatesindex9v30mask>100</templatesindex9v30mask>
<matcher12v50>1</matcher12v50>
<matcher12v100>1</matcher12v100>
<templatesindex12v30>100</templatesindex12v30>
<templatesindex12v50>100</templatesindex12v50>
<templatesindex12v100>100</templatesindex12v100>
<quality_estimator>1</quality_estimator>
<face_quality_estimator>1</face_quality_estimator>
<capturer1>1</capturer1>
Expand All @@ -33,5 +30,5 @@
<Reg>0</Reg>
<android_app_id>62afa60849efabf4f39e8e81d765431a2c6fa6d244ea86caf278c2b4d6984d23-com.vdt.face_recognition.video_recognition_demo</android_app_id>
<Hardware>0f77c6ae59a1db75969fadef1937c151cb5a4c98db81735cb64cf3626109610d</Hardware>
<Signature>&#10;-----BEGIN SIGNATURE-----&#10;V3vHPlvJiPBr4l6QbuK4QO52zkGWXRJMmsu5OtpoeCvvb4QoncudoeINjqq65FSe&#10;zRHZpiuLx3Pwc9I6irgiNvQXZjlAkbMQ7Bqhhvoal7KyNehJnw1ZXriAY+JNuFyZ&#10;xlU5Ec95e7AF3FGtzftUWQlyhDxiQBbAOKNQtKrxdBDYzc67jTzmKtjWtNp6W3cB&#10;aa2/9epJui4mXXQihCbtWRltMUYOfA08Z6gZRa3WbZdmnWfo4fxOHyMgIkWz+RWN&#10;wks2e6QZ4q3jX4L7V+Wvqd+RscfcfukIP91dJdbhDZKsoMnZN7V0K4ciJwbYmNv4&#10;R45FLZ1lE8iTPzVQbK7i8A==&#10;-----END SIGNATURE-----&#10;</Signature>
<Signature>&#10;-----BEGIN SIGNATURE-----&#10;OSG8eAdzeujyeY+4zFmnX4d2xTGjXCyW8VnY35vV/b3qPlqA/0pscL/k6FLMt9QL&#10;nIz2RLCV4XeoYSpVtcodUnRbqMp0/NnFl28l26dFxoEb+8z3G21cxaxHGDTOceN8&#10;jaFOxMzPgzgmuYojuiKKSrScWNavsxojNNabKCYcLhavOJ+1NeAPF2LxSORcy2BU&#10;D+y+WycBC/fmTw67H12ntnu4qXyMLqc0PEObU+x514P7IRR1rPe2TjNMegDWzXbt&#10;aXGHrc1efTF8k4cdrd++Mf4p+e6fBVs+XGLhBAIIClJOG1JLly0wssmrB2CZZT3W&#10;tIvrHcfymsjFwwi3da6VKQ==&#10;-----END SIGNATURE-----&#10;</Signature>
</License>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
android:id="@+id/aboutText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Video recognition with depth and IR liveness demo for Telpo (v 0.2)\n\nFace SDK version 3.21.0\n"
android:text="Video recognition with depth and IR liveness demo for Telpo (v 0.2)\n\nFace SDK version 3.22.0\n"
android:layout_below="@+id/aboutLogo"
/>

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/test_sdk/scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cycler==0.10.0
kiwisolver==1.0.1
matplotlib==2.2.0
numpy==1.14.2
numpy==1.26.0
pandas==0.22.0
pyparsing==2.2.0
python-dateutil==2.7.0
Expand Down
4 changes: 2 additions & 2 deletions examples/csharp/processing_block_demo/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Run

Windows:
set PATH=%PATH%;..\..\..\bin
dotnet publish\csharp_processing_block_demo.dll --sdk_path=../../../ --unit_type=face --modification uld --min_size 50
dotnet publish\csharp_processing_block_demo.dll --sdk_path=../../../ --unit_type=face --modification uld


Linux:
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../../../lib:/path/to/opencvsharp/native/libs dotnet publish/csharp_processing_block_demo.dll --sdk_path=../../../ --unit_type=face --modification uld --min_size 50
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../../../lib:/path/to/opencvsharp/native/libs dotnet publish/csharp_processing_block_demo.dll --sdk_path=../../../ --unit_type=face --modification uld
55 changes: 55 additions & 0 deletions examples/flutter/isolates_demo/android/app/build.gradle
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 '../..'
}
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>
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>
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();
}
}
);
}
}
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>
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>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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>
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>
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>
Loading

0 comments on commit 6c29be7

Please sign in to comment.