Recognizer class Null safety
Interface object for creating and matching templates.
Constructors
-
Recognizer(DynamicLibrary dll_handle, Pointer<
Void> impl)
Properties
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
createIndex(
List< Template> templates, int search_threads_count, int reserve_queries_count) → TemplateIndex -
Create the TemplatesIndex for quick search.
The total size of all indexes is limited by the license.
templates
- Vector of templates for creating an index.
search_threads_count
- Count of threads that will be used while searching in this index.
reserve_queries_count
- Integer passed to TemplatesIndex::reserveSearchMemory, which is called with the created index.
return
- Created index. -
dispose(
) → void -
Removing an object from memory. Must be called manually.
inherited
-
getRocCurvePointByDistance(
double distance_threshold) → MatchResult -
getRocCurvePointByFar(
double far_threshold) → MatchResult -
getRocCurvePointByFrr(
double frr_threshold) → MatchResult -
getRocCurvePointByScore(
double score_threshold) → MatchResult -
loadTemplate(
Uint8List binary_stream) → Template -
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.
binary_stream
- Input stream object. The file stream (std::ifstream) must be opened with the std::ios_base::binary flag.
return
- Loaded template. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
processing(
RawSample sample) → Template -
Create a template from detected face
sample
(from Capturer of VideoWorker). -
search(
List< Template> queries_templates, TemplateIndex templates_index, int k, {SearchAccelerationType acceleration = SearchAccelerationType.SEARCH_ACCELERATION_1}) → List<List< SearchResult> > -
Search for the k nearest Templates in the TemplatesIndex.
The search time depends on k and the size of the TemplatesIndex.
queries_templates
- The Template query.
templates_index
- TemplatesIndex for search.
k
- Count of the nearest templates for search.
acceleration
- Acceleration type.
return
- Vector with min(k, templates_index.size()) elements in ascending order of distance to the query_template. -
singleSearch(
Template template, TemplateIndex templatesIndex, int k, {SearchAccelerationType acceleration = SearchAccelerationType.SEARCH_ACCELERATION_1}) → List< SearchResult> -
toString(
) → String -
A string representation of this object.
inherited
-
verifyMatch(
Template template1, Template template2) → MatchResult -
Compare two templates (
template1
,template2
).
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 compared.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited