3DiVi Face SDK
3.21.0
|
Interface object for creating other interface objects. More...
Classes | |
class | Config |
Used to override configuration parameters at runtime. More... | |
class | License |
Storing the license as a string variable. More... | |
class | LicenseState |
License status. More... | |
Public Member Functions | |
void | dispose () |
Release internal object. | |
boolean | isDisposed () |
Check if an object is released. More... | |
String | getVersion () |
Get version of face recognition library. Thread-safe. More... | |
void | forceOnlineLicenseUpdate () |
Force online license update. | |
Capturer | createCapturer (final Config config) |
Creates a Capturer object. Type and features depend on the content of the configuration file. Thread-safe. More... | |
AgeGenderEstimator | createAgeGenderEstimator (final String ini_file) |
Creates a AgeGenderEstimator object. Thread-safe. More... | |
QualityEstimator | createQualityEstimator (final String ini_file) |
Creates a QualityEstimator object. Thread-safe. More... | |
FaceQualityEstimator | createFaceQualityEstimator (final String ini_file) |
Creates a FaceQualityEstimator object. Thread-safe. More... | |
LivenessEstimator | createLivenessEstimator () |
Creates a LivenessEstimator object. Thread-safe. More... | |
EmotionsEstimator | createEmotionsEstimator (final String ini_file) |
Creates a EmotionsEstimator object. Thread-safe. More... | |
Recognizer | createRecognizer (final String ini_file, final boolean processing, final boolean matching, final boolean processing_less_memory_consumption) |
Creates a Recognizer object. Thread-safe. More... | |
Recognizer | createRecognizer (final Config recognizer_config, final boolean processing, final boolean matching, final boolean processing_less_memory_consumption) |
Creates a Recognizer object. Thread-safe. More... | |
VideoWorker | createVideoWorker (VideoWorker.Params params) |
Creates a VideoWorker object. Thread-safe. When VideoWorker is created with matching_thread=0 and processing_thread=0, then the standard Capturer license is used. Depending on the settings, VideoWorker uses either the VideoClient license (face tracking on video streams) or the VideoClientExt license (face tracking, template creation and matching with the database). More... | |
VideoWorker | createVideoWorker (final Config video_worker_config, final String recognizer_ini_file, final int streams_count, final int processing_threads_count, final int matching_threads_count) |
VideoWorker | createVideoWorker (final Config video_worker_config, final Config recognizer_config, final int streams_count, final int processing_threads_count, final int matching_threads_count) |
RawSample | loadRawSample (InputStream binary_stream) |
Loads a RawSample object that was saved with the RawSample.save member function. The format is platform-independent. Thread-safe. More... | |
RawSample | loadRawSampleWithoutImage (InputStream binary_stream, RawImage image) |
Loads a RawSample object that was saved with the RawSample.saveWithoutImage member function. If you transformed the image in some way, you can set the parameters of coordinate space transformation: (x, y) -> ( (x + space_translation_x) * space_scale, (y + space_translation_y) * space_scale ) that will be applied to the information about face position. Note that you must set the same transformation only once - either during serialization or during deserialization, otherwise transformation will be applied twice, which is wrong. The format is platform-independent. Thread-safe. More... | |
RawSample | loadRawSampleWithoutImage (InputStream binary_stream, RawImage image, double space_translation_x, double space_translation_y, double space_scale) |
Loads a RawSample object that was saved with the RawSample.saveWithoutImage member function. If you transformed the image in some way, you can set the parameters of coordinate space transformation: (x, y) -> ( (x + space_translation_x) * space_scale, (y + space_translation_y) * space_scale ) that will be applied to the information about face position. Note that you must set the same transformation only once - either during serialization or during deserialization, otherwise transformation will be applied twice, which is wrong. The format is platform-independent. Thread-safe. More... | |
RawSample | loadRawSampleWithoutImage (InputStream binary_stream, final byte[] encoded_image_data) |
RawSample | loadRawSampleWithoutImage (InputStream binary_stream, final byte[] encoded_image_data, double space_translation_x, double space_translation_y, double space_scale) |
CameraCalibrator | createCameraCalibrator () |
Creates a CameraCalibrator object. Thread-safe. More... | |
DepthLivenessEstimator | createDepthLivenessEstimator (final Config config) |
Creates a DepthLivenessEstimator object. Thread-safe. More... | |
DepthLivenessEstimator | createDepthLivenessEstimator (final String ini_file) |
Creates a DepthLivenessEstimator object. Thread-safe. More... | |
IRLivenessEstimator | createIRLivenessEstimator (final Config config) |
Creates an IRLivenessEstimator object. Thread-safe. More... | |
IRLivenessEstimator | createIRLivenessEstimator (final String ini_file) |
Creates an IRLivenessEstimator object. Thread-safe. More... | |
Liveness2DEstimator | createLiveness2DEstimator (final Config config) |
Creates an Liveness2DEstimator object. Thread-safe. More... | |
FaceAttributesEstimator | createFaceAttributesEstimator (final String ini_file) |
Creates an FaceAttributesEstimator object. Thread-safe. More... | |
Liveness2DEstimator | createLiveness2DEstimator (final String ini_file) |
Creates an Liveness2DEstimator object. Thread-safe. More... | |
LicenseState | getLicenseState () |
Get the license state. Thread-safe. More... | |
void | keepAlgorithmsCache () |
Enalbe keeping algorithms data in memory even if no owners left. This will speedup repeated algorithms initialization. Thread-safe. | |
void | freeAlgorithmsCache () |
Disable keeping algorithms data in memory. Thread-safe. | |
Static Public Member Functions | |
static FacerecService | createService (final String dll_path, final String facerec_conf_dir, String license_dir) |
Initializes the facerec lib (can be called only once). More... | |
static FacerecService | createService (final String dll_path, final String facerec_conf_dir, FacerecService.License license) |
Initializes the facerec lib with license content (can be called only once). More... | |
Interface object for creating other interface objects.
|
inline |
Creates a AgeGenderEstimator object. Thread-safe.
[in] | ini_file | Name of the config file. |
|
inline |
Creates a CameraCalibrator object. Thread-safe.
|
inline |
Creates a DepthLivenessEstimator object. Thread-safe.
[in] | config | Сonfiguration file with optionally overridden parameters. |
|
inline |
Creates a DepthLivenessEstimator object. Thread-safe.
[in] | ini_file | Name of the config file. |
|
inline |
Creates a EmotionsEstimator object. Thread-safe.
[in] | ini_file | Name of the config file. |
|
inline |
Creates an FaceAttributesEstimator object. Thread-safe.
[in] | ini_file | Name of the configuration file. |
|
inline |
Creates a FaceQualityEstimator object. Thread-safe.
[in] | ini_file | Name of the config file. |
|
inline |
Creates an IRLivenessEstimator object. Thread-safe.
[in] | config | Сonfiguration file with optionally overridden parameters. |
|
inline |
Creates an IRLivenessEstimator object. Thread-safe.
[in] | ini_file | Name of the config file. |
|
inline |
Creates an Liveness2DEstimator object. Thread-safe.
[in] | config | Сonfiguration file with optionally overridden parameters. |
|
inline |
Creates an Liveness2DEstimator object. Thread-safe.
[in] | ini_file | Name of the config file. |
|
inline |
Creates a LivenessEstimator object. Thread-safe.
|
inline |
Creates a QualityEstimator object. Thread-safe.
[in] | ini_file | Name of the config file. |
|
inline |
Creates a Recognizer object. Thread-safe.
[in] | ini_file | Name of the config file. |
[in] | processing | Flag to toggle the Recognizer.processing method in the created recognizer. |
[in] | matching | Flag to toggle the Recognizer.verifyMatch method in the created recognizer. |
[in] | processing_less_memory_consumption | Flag to toggle the Recognizer.processing member function optimizations that consume a lot of RAM when creating the recognizer (see the docs). |
|
inline |
Creates a Recognizer object. Thread-safe.
[in] | recognizer_config | The Recognizer configuration file with optionally overridden parameters. |
[in] | processing | Flag to toggle the Recognizer.processing method in the created recognizer. |
[in] | matching | Flag to toggle the Recognizer.verifyMatch method in the created recognizer. |
[in] | processing_less_memory_consumption | Flag to toggle the Recognizer.processing member function optimizations that consume a lot of RAM when creating the recognizer (see the docs). |
|
inlinestatic |
Initializes the facerec lib (can be called only once).
[in] | dll_path | An absolute or a relative path to libfacerec.so on Linux or facerec.dll on Windows. |
[in] | facerec_conf_dir | An absolute or a relative path to the directory with config files (the 'face_sdk/conf/facerec/' directory). |
[in] | license_dir | If you need to specify the directory containing the license file, then it's an absolute or a relative path to this directory, otherwise, it's an empty string. In case of empty string, a license file is searched first in the 'face_sdk/license/' directory. If it's not found, it's searched in the 'face_sdk/conf/facerec/' directory. |
|
inlinestatic |
Initializes the facerec lib with license content (can be called only once).
[in] | dll_path | An absolute or a relative path to libfacerec.so on Linux or facerec.dll on Windows. |
[in] | facerec_conf_dir | An absolute or a relative path to the directory with config files (the 'face_sdk/conf/facerec/' directory). |
[in] | license | Сontent of a license (see pbio::FacerecService::License) |
|
inline |
Creates a VideoWorker object. Thread-safe.
When VideoWorker is created with matching_thread=0 and processing_thread=0, then the standard Capturer license is used.
Depending on the settings, VideoWorker uses either the VideoClient license (face tracking on video streams) or the VideoClientExt license (face tracking, template creation and matching with the database).
[in] | params | Parameters of the VideoWorker constructor. |
|
inline |
Creates a VideoWorker object. Thread-safe.
When VideoWorker is created with matching_thread=0 and processing_thread=0, then the standard Capturer license is used.
Depending on the settings, VideoWorker uses either the VideoClient license (face tracking on video streams) or the VideoClientExt license (face tracking, template creation and matching with the database).
[in] | video_worker_config | The VideoWorker configuration file with optionally overridden parameters. |
[in] | recognizer_ini_file | Name of the config file for the Recognizer that will be used inside the VideoWorker. |
[in] | streams_count | Number of video streams. |
[in] | processing_threads_count | Number of threads for creating templates. |
[in] | matching_threads_count | Number of threads for matching templates with the database. |
|
inline |
Creates a VideoWorker object. Thread-safe.
When VideoWorker is created with matching_thread=0 and processing_thread=0, then the standard Capturer license is used.
Depending on the settings, VideoWorker uses either the VideoClient license (face tracking on video streams) or the VideoClientExt license (face tracking, template creation and matching with the database).
[in] | video_worker_config | The VideoWorker configuration file with optionally overridden parameters. |
[in] | recognizer_config | The Recognizer configuration file with optionally overridden parameters. |
[in] | streams_count | Number of video streams. |
[in] | processing_threads_count | Number of threads for creating templates. |
[in] | matching_threads_count | Number of threads for matching templates with the database. |
|
inline |
Get the license state. Thread-safe.
|
inline |
Get version of face recognition library. Thread-safe.
|
inline |
Check if an object is released.
|
inline |
Loads a RawSample object that was saved with the RawSample.save member function. The format is platform-independent. Thread-safe.
[in] | binary_stream | Input stream object. |
|
inline |
Loads a RawSample object that was saved with the RawSample.saveWithoutImage member function. If you transformed the image in some way, you can set the parameters of coordinate space transformation: (x, y) -> ( (x + space_translation_x) * space_scale, (y + space_translation_y) * space_scale ) that will be applied to the information about face position. Note that you must set the same transformation only once - either during serialization or during deserialization, otherwise transformation will be applied twice, which is wrong. The format is platform-independent. Thread-safe.
[in] | binary_stream | Input stream object. |
[in] | image | Image. |
|
inline |
Loads a RawSample object that was saved with the RawSample.saveWithoutImage member function. If you transformed the image in some way, you can set the parameters of coordinate space transformation: (x, y) -> ( (x + space_translation_x) * space_scale, (y + space_translation_y) * space_scale ) that will be applied to the information about face position. Note that you must set the same transformation only once - either during serialization or during deserialization, otherwise transformation will be applied twice, which is wrong. The format is platform-independent. Thread-safe.
[in] | binary_stream | Input stream object. |
[in] | image | Image. |
[in] | space_translation_x | Coordinate space transform parameter. |
[in] | space_translation_y | Coordinate space transform parameter. |
[in] | space_scale | Coordinate space transform parameter. |
|
inline |
Loads a RawSample object that was saved with the RawSample.saveWithoutImage member function. If you transformed the image in some way, you can set the parameters of coordinate space transformation: (x, y) -> ( (x + space_translation_x) * space_scale, (y + space_translation_y) * space_scale ) that will be applied to the information about face position. Note that you must set the same transformation only once - either during serialization or during deserialization, otherwise transformation will be applied twice, which is wrong. The format is platform-independent. Thread-safe.
[in] | binary_stream | Input stream object. |
[in] | encoded_image_data | An array of bytes of the encoded image (or a video frame) with 8 or 24 bits per pixel. Supported formats are JPEG, PNG, TIF, and BMP. |
|
inline |
Loads a RawSample object that was saved with the RawSample.saveWithoutImage member function. If you transformed the image in some way, you can set the parameters of coordinate space transformation: (x, y) -> ( (x + space_translation_x) * space_scale, (y + space_translation_y) * space_scale ) that will be applied to the information about face position. Note that you must set the same transformation only once - either during serialization or during deserialization, otherwise transformation will be applied twice, which is wrong. The format is platform-independent. Thread-safe.
[in] | binary_stream | Input stream object. |
[in] | encoded_image_data | An array of bytes of the encoded image with 8 or 24 bits per pixel. Supported formats are JPEG, PNG, TIF and BMP. |
[in] | space_translation_x | Coordinate space transform parameter. |
[in] | space_translation_y | Coordinate space transform parameter. |
[in] | space_scale | Coordinate space transform parameter. |