19#define SFE_PALM_TEMPLATE_SIZE 522
92 float *out_matching_score);
118 size_t gallery_size,
float matching_score_threshold,
120 size_t *in_out_candidates_count,
size_t thread_count);
143 float matching_score_threshold,
145 size_t *in_out_candidates_count,
146 size_t thread_count);
156 float *out_liveness_score);
std::optional< std::string > solver
File containing API of sfe_core library as part of SFE Toolkit.
void * SFESolver
Solver provides an abstract interface over inference models and engines.
void * SFEError
Error type used to hold optional error message.
SFEError sfePalmLandmarks(SFESolver solver, SFEImageView image, const SFEDetection *detection, SFEPalmLandmarks *out_landmarks)
Calculate palm landmarks from given source image and palm detection.
SFEError sfePalmTemplateMatch(const SFEPalmTemplate *template1, const SFEPalmTemplate *template2, float *out_matching_score)
Match two palm templates.
SFEError sfePalmAttributes(SFESolver solver, SFEImageView image, const SFEPalmLandmarks *landmarks, SFEPalmAttributes *out_attributes)
Calculate palm image quality attributes from given source image and palm detection.
SFEError sfePalmEntityIdentify(const SFEPalmTemplate *probe_palm_template, const SFEPalmTemplate *templates_gallery, const SFEEntity *entities_gallery, size_t gallery_size, float matching_score_threshold, SFEEntityIdentificationCandidate *out_candidates, size_t *in_out_candidates_count, size_t thread_count)
Get an ordered array of SFEEntityIdentificationCandidate from probe's template best matches with temp...
SFEError sfePalmLivenessPassive(SFESolver solver, SFEImageView image, const SFEDetection *detection, float *out_liveness_score)
Passive liveness score calculation.
SFEError sfePalmTemplateExtract(SFESolver solver, SFEImageView image, const SFEPalmLandmarks *landmarks, SFEPalmTemplate *out_palm_template)
Extract template from source image and given palm attributes.
SFEError sfePalmTemplateIdentify(const SFEPalmTemplate *probe_palm_template, const SFEPalmTemplate *templates_gallery, size_t gallery_size, float matching_score_threshold, SFETemplateIdentificationCandidate *out_candidates, size_t *in_out_candidates_count, size_t thread_count)
Get an ordered array of SFETemplateIdentificationCandidate from probe's template best matches with te...
#define SFE_PALM_TEMPLATE_SIZE
Palm template size in bytes.
SFEError sfePalmTemplateVersion(const SFEPalmTemplate *palm_template, SFEPalmTemplateVersion *out_palm_template_version)
Get palm template version.
Core detection - tagged union containing all detection types.
Entity type, used to group templates for entity identification. This type is compatible with uuid_v4 ...
Candidate for identification by entity.
Raw owned raster image representation, HWC|BGR order.
float quality
Range <0, 1>. The recommended threshold for further palm processing is 0.6.
Palm landmarks (keypoints, hand position, orientation, confidence)
uint8_t data[SFE_PALM_TEMPLATE_SIZE]
Palm template version struct.
uint8_t patch
Patch template version.
uint8_t minor
Minor template version.
uint8_t major
Major template version.
Candidate for identification by template.