Skip to content

Commit

Permalink
Face SDK v3.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-alabugin committed Feb 29, 2024
1 parent 4a571ce commit 45a64c5
Show file tree
Hide file tree
Showing 67 changed files with 1,831 additions and 2,097 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<a href="https://face.3divi.com"><img src="https://download.3divi.com/facesdk/img/3divi_logo.png" width="400" height="100" title="3DiVi Logo" alt="Logo"></a>
<a href="https://3divi.ai/products/software/face-sdk?utm_source=git&utm_medium=a&utm_campaign=b"><img src="https://download.3divi.com/facesdk/img/3divi_logo.png" width="400" height="100" title="3DiVi Logo" alt="Logo"></a>
<br/>
<a href="https://docs.3divi.ai/face_sdk/getting_started"><img src="https://download.3divi.com/facesdk/img/get_started_button.png" title="3DiVi Getting Started" alt="Getting Started"></a>
<a href="https://docs.3divi.ai/face_sdk/overview"><img src="https://download.3divi.com/facesdk/img/doc_button.png" title="3DiVi Documentation" alt="Documentation"></a>
Expand Down
23 changes: 23 additions & 0 deletions conf/facerec/common_capturer_pb_uld_fda.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<opencv_storage>

<capturer_impl_name>fld_capturer</capturer_impl_name>

<detector_type>pb_fd</detector_type>
<modification>uld</modification>

<min_size>150</min_size>
<num_threads>1</num_threads>

<iou_threshold>0.2</iou_threshold>
<coarse_confidence_threshold>0.3</coarse_confidence_threshold>
<confidence_threshold>0.7</confidence_threshold>

<capturer_type>frontal</capturer_type>
<fitter_type>fda</fitter_type>
<fda_file>share/fda/fda0017.3500.enc</fda_file>

<iris_enabled>0</iris_enabled>
<iris_config_filepath>conf/facerec/iris_fitter.xml</iris_config_filepath>

</opencv_storage>
7 changes: 5 additions & 2 deletions conf/facerec/common_capturer_ssyv_fda_v2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

<capturer_impl_name>fld_capturer</capturer_impl_name>

<detector_type>ssyv</detector_type>

<detector_type>pb_fd</detector_type>
<modification>ssyv</modification>
<version>2</version>

<confidence_threshold>0.4</confidence_threshold>
Expand All @@ -14,4 +14,7 @@
<fitter_type>fda</fitter_type>
<fda_file>share/fda/fda0017.3500.enc</fda_file>

<iris_enabled>0</iris_enabled>
<iris_config_filepath>conf/facerec/iris_fitter.xml</iris_config_filepath>

</opencv_storage>
20 changes: 20 additions & 0 deletions conf/facerec/common_capturer_ssyv_fda_v3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<opencv_storage>

<capturer_impl_name>fld_capturer</capturer_impl_name>

<detector_type>pb_fd</detector_type>
<modification>ssyv</modification>
<version>3</version>

<confidence_threshold>0.4</confidence_threshold>
<iou_threshold>0.45</iou_threshold>

<capturer_type>frontal</capturer_type>
<fitter_type>fda</fitter_type>
<fda_file>share/fda/fda0017.3500.enc</fda_file>

<iris_enabled>0</iris_enabled>
<iris_config_filepath>conf/facerec/iris_fitter.xml</iris_config_filepath>

</opencv_storage>
9 changes: 6 additions & 3 deletions conf/facerec/common_capturer_ssyv_fda_v5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

<capturer_impl_name>fld_capturer</capturer_impl_name>

<detector_type>ssyv</detector_type>

<version>3</version>
<detector_type>pb_fd</detector_type>
<modification>ssyv</modification>
<version>4</version>

<confidence_threshold>0.4</confidence_threshold>
<iou_threshold>0.45</iou_threshold>
Expand All @@ -14,4 +14,7 @@
<fitter_type>fda</fitter_type>
<fda_file>share/fda/fda0017.3500.enc</fda_file>

<iris_enabled>0</iris_enabled>
<iris_config_filepath>conf/facerec/iris_fitter.xml</iris_config_filepath>

</opencv_storage>
6 changes: 3 additions & 3 deletions conf/facerec/safety_city_q1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

<capturer_impl_name>fld_capturer</capturer_impl_name>

<detector_type>ssyv</detector_type>

<version>3</version>
<detector_type>pb_fd</detector_type>
<modification>ssyv</modification>
<version>4</version>

<confidence_threshold>0.4</confidence_threshold>
<iou_threshold>0.45</iou_threshold>
Expand Down
32 changes: 6 additions & 26 deletions conf/facerec/safety_city_q2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,16 @@
<opencv_storage>

<capturer_impl_name>fld_capturer</capturer_impl_name>
<capturer_type>frontal</capturer_type>

<detector_type>uld</detector_type>
<min_size>50</min_size>
<max_size>10000</max_size>
<num_threads>1</num_threads>

<uld1_id>uld-part1</uld1_id>
<uld_part1_filepath>share/facedetectors/uld/uld_part1.enc</uld_part1_filepath>
<uld2_id>uld-part2</uld2_id>
<uld_part2_filepath>share/facedetectors/uld/uld_part2.enc</uld_part2_filepath>
<uld3_id>uld-part3</uld3_id>
<uld_part3_filepath>share/facedetectors/uld/uld_part3.enc</uld_part3_filepath>
<detector_type>pb_fd</detector_type>
<modification>ssyv</modification>
<version>3</version>

<coarse_score_threshold>0.3</coarse_score_threshold>
<nms_iou_threshold>0.2</nms_iou_threshold>
<score_threshold>0.6</score_threshold>
<mask_score_threshold>1.0</mask_score_threshold>

<use_cuda>0</use_cuda>
<gpu_index>0</gpu_index>
<use_advanced_multithreading>0</use_advanced_multithreading>
<confidence_threshold>0.4</confidence_threshold>
<iou_threshold>0.45</iou_threshold>

<capturer_type>frontal</capturer_type>
<fitter_type>fda</fitter_type>
<fda_file>share/fda/fda0017.3500.enc</fda_file>

<iris_enabled>0</iris_enabled>
<iris_config_filepath>conf/facerec/iris_fitter.xml</iris_config_filepath>


<downscale_rawsamples_to_preferred_size>1</downscale_rawsamples_to_preferred_size>

</opencv_storage>
37 changes: 37 additions & 0 deletions conf/facerec/safety_city_q3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<opencv_storage>

<capturer_impl_name>fld_capturer</capturer_impl_name>
<capturer_type>frontal</capturer_type>

<detector_type>uld</detector_type>
<min_size>50</min_size>
<max_size>10000</max_size>
<num_threads>1</num_threads>

<uld1_id>uld-part1</uld1_id>
<uld_part1_filepath>share/facedetectors/uld/uld_part1.enc</uld_part1_filepath>
<uld2_id>uld-part2</uld2_id>
<uld_part2_filepath>share/facedetectors/uld/uld_part2.enc</uld_part2_filepath>
<uld3_id>uld-part3</uld3_id>
<uld_part3_filepath>share/facedetectors/uld/uld_part3.enc</uld_part3_filepath>

<coarse_score_threshold>0.3</coarse_score_threshold>
<nms_iou_threshold>0.2</nms_iou_threshold>
<score_threshold>0.6</score_threshold>
<mask_score_threshold>1.0</mask_score_threshold>

<use_cuda>0</use_cuda>
<gpu_index>0</gpu_index>
<use_advanced_multithreading>0</use_advanced_multithreading>

<fitter_type>fda</fitter_type>
<fda_file>share/fda/fda0017.3500.enc</fda_file>

<iris_enabled>0</iris_enabled>
<iris_config_filepath>conf/facerec/iris_fitter.xml</iris_config_filepath>


<downscale_rawsamples_to_preferred_size>1</downscale_rawsamples_to_preferred_size>

</opencv_storage>
106 changes: 106 additions & 0 deletions conf/facerec/video_worker_fdatracker_pb_uld_fda.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<?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>uld</modification>
<min_size>150</min_size>
<num_threads>1</num_threads>

<iou_threshold>0.2</iou_threshold>
<coarse_confidence_threshold>0.3</coarse_confidence_threshold>
<confidence_threshold>0.7</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>
105 changes: 105 additions & 0 deletions conf/facerec/video_worker_fdatracker_ssyv_fda_v2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<?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>ssyv</modification>
<version>2</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>
Loading

0 comments on commit 45a64c5

Please sign in to comment.