3DiVi Face SDK  3.21.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
pbio::VideoWorker::DatabaseElement Struct Reference

Database element. If you have several face templates for one person, you should create one element for each template with the same person_id but different element_id. More...

#include <VideoWorker.h>

Public Attributes

uint64_t element_id
 Unique id of the element.
 
uint64_t person_id
 Unique id of the person.
 
Template::Ptr face_template
 Face template.
 
float distance_threshold
 Distance threshold for a MatchFound event. More...
 

Detailed Description

Database element. If you have several face templates for one person, you should create one element for each template with the same person_id but different element_id.

Member Data Documentation

float pbio::VideoWorker::DatabaseElement::distance_threshold

Distance threshold for a MatchFound event.

Setting a different recognition threshold for different persons may be useful in some cases. For example, if there is a particular criminal in the blacklist, who is more dangerous than the other criminals, and you want to increase the recognition probability for this very person, despite the higher probability of a false acceptance error.