3DiVi Face SDK
3.24.2
|
Interface object for creating and matching templates. More...
Classes | |
class | MatchResult |
Result of template matching. More... | |
class | SearchResult |
Result of searching the Template query in the TemplatesIndex. More... | |
Public Types | |
enum | SearchAccelerationType { SearchAccelerationType.NO_SEARCH_ACCELERATION = 0, SearchAccelerationType.SEARCH_ACCELERATION_1 = 1 } |
Types of search acceleration. More... | |
Public Member Functions | |
String | getMethodName () |
Get a method name. Thread-safe. More... | |
MatchResult | getROCCurvePointByDistanceThreshold (double distance_threshold) |
Get a point on the ROC curve with a given distance threshold. Thread-safe. More... | |
MatchResult | getROCCurvePointByFAR (double desired_far) |
Get a point on the ROC curve with a given false acceptance rate (FAR). Thread-safe. More... | |
MatchResult | getROCCurvePointByFRR (double desired_frr) |
Get a point on the ROC curve with a given false rejection rate (FRR). Thread-safe. More... | |
MatchResult | getROCCurvePointByScoreThreshold (double score_threshold) |
Get a point on the ROC curve with a given similarity score threshold. Thread-safe. More... | |
Template | processing (RawSample sample) |
Create a template. More... | |
Template | loadTemplate (Stream binary_stream) |
Load the template. The format is platform-independent. Only the templates that were created with the same method (i.e. with the same ini_file) can be loaded. More... | |
MatchResult | verifyMatch (Template template1, Template template2) |
Compare two templates. The order of templates does not matter. Only the templates that were created with the same method (i.e. with the same ini_file) can be loaded. More... | |
TemplatesIndex | createIndex (List< Template > templates, int search_threads_count, int reserve_queries_count=0) |
Create the TemplatesIndex for quick search. The total size of all indexes is limited by the license. More... | |
List< SearchResult > | search (Template query_template, TemplatesIndex templates_index, int k, SearchAccelerationType acceleration) |
Search for the k nearest Templates in the TemplatesIndex. The search time depends on k and the size of the TemplatesIndex. More... | |
List< List< SearchResult > > | search (List< Template > queries_templates, TemplatesIndex templates_index, long k, SearchAccelerationType acceleration) |
Search for the k nearest Templates in the TemplatesIndex. The search time depends on k and the size of the TemplatesIndex. More... | |
List< int > | chooseRepresentativeTemplatesSet (int set_size, List< Template > templates, List< int > inviolable_templates_indexes=null) |
Choose templates set that best represent original templates. More... | |
Public Member Functions inherited from VDT.FaceRecognition.SDK.IDisposableObject | |
virtual void | Dispose () |
Release internal object. | |
Additional Inherited Members | |
Properties inherited from VDT.FaceRecognition.SDK.IDisposableObject | |
bool | isDisposed [get] |
True if internal object already disposed. | |
Interface object for creating and matching templates.
Types of search acceleration.
Enumerator | |
---|---|
NO_SEARCH_ACCELERATION |
No acceleration, a standard line search. The result is identical to N calls of Recognizer.verifyMatch. |
SEARCH_ACCELERATION_1 |
Heuristically accelerated linear search. Heuristics reduces TAR (true acceptance rate) on the 1:N test by no more than 0.1%. |
|
inline |
Choose templates set that best represent original templates.
[in] | set_size | Required set size. |
[in] | templates | Original templates. |
[in] | inviolable_templates_indexes | Indexes of templates, required to be included in the result set. Can be null. |
|
inline |
Create the TemplatesIndex for quick search. The total size of all indexes is limited by the license.
[in] | templates | List of templates for creating an index. |
[in] | search_threads_count | Count of threads that will be used while searching in this index. |
[in] | reserve_queries_count | Integer passed to TemplatesIndex::reserveSearchMemory, which is called with the created index. |
|
inline |
Get a method name. Thread-safe.
|
inline |
Get a point on the ROC curve with a given distance threshold. Thread-safe.
|
inline |
Get a point on the ROC curve with a given false acceptance rate (FAR). Thread-safe.
|
inline |
Get a point on the ROC curve with a given false rejection rate (FRR). Thread-safe.
|
inline |
Get a point on the ROC curve with a given similarity score threshold. Thread-safe.
|
inline |
Load the template. The format is platform-independent. Only the templates that were created with the same method (i.e. with the same ini_file) can be loaded.
[in] | binary_stream | Input stream object. |
Create a template.
[in] | sample | Face sample. At the moment, all methods can only be used with frontal samples. |
|
inline |
Search for the k nearest Templates in the TemplatesIndex. The search time depends on k and the size of the TemplatesIndex.
[in] | query_template | The Template query. |
[in] | templates_index | TemplatesIndex for search. |
[in] | k | Count of the nearest templates for search. |
[in] | acceleration | Acceleration type. |
|
inline |
Search for the k nearest Templates in the TemplatesIndex. The search time depends on k and the size of the TemplatesIndex.
[in] | queries_templates | Vector of queries. |
[in] | templates_index | TemplatesIndex for search. |
[in] | k | Count of the nearest templates for search. |
[in] | acceleration | Acceleration type. |
|
inline |
Compare two templates. The order of templates does not matter. Only the templates that were created with the same method (i.e. with the same ini_file) can be loaded.
[in] | template1 | Template created by the same method. |
[in] | template2 | Template created by the same method. |