3DiVi Face SDK
3.24.1
|
Interface object for creating other interface objects. More...
Classes | |
class | Config |
Used to override configuration parameters at runtime. More... | |
struct | License |
Storing the license as a string variable. More... | |
class | LicenseState |
License status. More... | |
Public Member Functions | |
String | getVersion () |
Get version of face recognition library. Thread-safe. More... | |
void | forceOnlineLicenseUpdate () |
Force online license update. | |
Capturer | createCapturer (Config config) |
Creates a Capturer object. Type and features depend on the content of the configuration file. Thread-safe. More... | |
Capturer | createCapturer (string ini_file) |
Creates a Capturer object. Type and features depend on the content of the configuration file. Thread-safe. More... | |
AgeGenderEstimator | createAgeGenderEstimator (String ini_file) |
Creates a AgeGenderEstimator object. Thread-safe. More... | |
QualityEstimator | createQualityEstimator (String ini_file) |
Creates a QualityEstimator object. Thread-safe. More... | |
FaceQualityEstimator | createFaceQualityEstimator (String ini_file) |
Creates a FaceQualityEstimator object. Thread-safe. More... | |
LivenessEstimator | createLivenessEstimator () |
Creates a LivenessEstimator object. Thread-safe. More... | |
EmotionsEstimator | createEmotionsEstimator (String ini_file) |
Creates a EmotionsEstimator object. Thread-safe. More... | |
Recognizer | createRecognizer (String ini_file, bool processing, bool matching, bool processing_less_memory_consumption) |
Creates a Recognizer object. Thread-safe. More... | |
Recognizer | createRecognizer (Config recognizer_config, bool processing, bool matching, bool processing_less_memory_consumption) |
Creates a Recognizer object. Thread-safe. More... | |
VideoWorker | createVideoWorker (VideoWorker.Params prms) |
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 (Config video_worker_config, String recognizer_ini_file, int streams_count, int processing_threads_count, int matching_threads_count) |
VideoWorker | createVideoWorker (Config video_worker_config, Config recognizer_config, int streams_count, int processing_threads_count, int matching_threads_count) |
RawSample | loadRawSample (Stream 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 (Stream binary_stream, RawImage image, double space_translation_x=0, double space_translation_y=0, double space_scale=1) |
Loads a RawSample object that was saved with the RawSample.saveWithoutImage member function. If you transformed the image in some way, you can set 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 parameters of 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 (Stream binary_stream, byte[] image_data, double space_translation_x=0, double space_translation_y=0, double space_scale=1) |
CameraCalibrator | createCameraCalibrator () |
Creates a CameraCalibrator object. Thread-safe. More... | |
DepthLivenessEstimator | createDepthLivenessEstimator (Config config) |
Creates a DepthLivenessEstimator object. Thread-safe. More... | |
DepthLivenessEstimator | createDepthLivenessEstimator (String ini_file) |
Creates a DepthLivenessEstimator object. Thread-safe. More... | |
Liveness2DEstimator | createLiveness2DEstimator (Config config) |
Creates a Liveness2DEstimator object. Thread-safe. More... | |
FaceAttributesEstimator | createFaceAttributesEstimator (String ini_file) |
Creates an FaceAttributesEstimator object. Thread-safe. More... | |
Liveness2DEstimator | createLiveness2DEstimator (String ini_file) |
Creates a 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. | |
unsafe ProcessingBlock | CreateProcessingBlock (Dictionary< object, object > ctx) |
creates a processing block More... | |
unsafe Context | CreateContext (object ctx) |
creates a container-Context More... | |
unsafe Context | CreateContextFromImage (byte[] data) |
creates a container-Context from an encoded image More... | |
unsafe Context | CreateContextFromEncodedImage (byte[] data) |
creates a container-Context from an encoded image More... | |
unsafe Context | CreateContextFromFrame (byte[] data, int width, int height, Context.Format format=Context.Format.FORMAT_BGR, int baseAngle=0) |
creates a container-Context from an image More... | |
unsafe Context | CreateContextFromJsonFile (string path) |
creates a container-Context from a json file More... | |
Public Member Functions inherited from VDT.FaceRecognition.SDK.IDisposableObject | |
virtual void | Dispose () |
Release internal object. | |
Static Public Member Functions | |
static FacerecService | createService (String facerec_conf_dir, String license_dir) |
Initializes the facerec lib (can be called only once). More... | |
static FacerecService | createService (String facerec_conf_dir, FacerecService.License license) |
Initializes the facerec lib (can be called only once). More... | |
Additional Inherited Members | |
Properties inherited from VDT.FaceRecognition.SDK.IDisposableObject | |
bool | isDisposed [get] |
True if internal object already disposed. | |
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 |
|
inline |
creates a container-Context
|
inline |
creates a container-Context from an encoded image
[in] | data | - image data in vector |
|
inline |
creates a container-Context from an image
[in] | data | - image bytes |
[in] | width | - the width of the image in pixels |
[in] | height | - the height of the image in pixels |
[in] | format | - image format |
[in] | base_angle | - the type of angle the purpose of which the image is expanded |
|
inline |
creates a container-Context from an encoded image
[in] | data | - image data in vector |
|
inline |
creates a container-Context from a json file
[in] | path | - path to the json file |
|
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 a Liveness2DEstimator object. Thread-safe.
[in] | config | Сonfiguration file with optionally overridden parameters. |
|
inline |
Creates a Liveness2DEstimator object. Thread-safe.
[in] | ini_file | Name of the config file. |
|
inline |
Creates a LivenessEstimator object. Thread-safe.
|
inline |
creates a processing block
[in] | ctx | - Dictionary containing the configuration of the processing block |
|
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] | 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 an 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 (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 | You can transfer the license content as a string (see 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] | prms | Parameters of the VideoWorker constructor. |
|
inline |
[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 |
[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 |
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 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 parameters of 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 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 parameters of 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_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. |