SmartFace Embedded Toolkit  4.2.1
Loading...
Searching...
No Matches
sfe_tattoo.h
Go to the documentation of this file.
1
8#pragma once
9
10#include "sfe_core.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16// TATTOO TEMPLATE EXTRACTION AND MATCHING
17
19#define SFE_TATTOO_TEMPLATE_SIZE 522
20
22typedef struct SFETattooTemplate {
25
29 uint32_t version;
31
39 const SFEDetection *detection,
40 SFETattooTemplate *out_tattoo_template);
41
48 const SFETattooTemplate *template2,
49 float *out_matching_score);
50
57 SFETattooTemplateVersion *out_tattoo_template_version);
58
73sfeTattooTemplateIdentify(const SFETattooTemplate *probe_tattoo_template,
74 const SFETattooTemplate *templates_gallery,
75 size_t gallery_size, float matching_score_threshold,
77 size_t *in_out_candidates_count, size_t thread_count);
78
97 const SFETattooTemplate *templates_gallery,
98 const SFEEntity *entities_gallery,
99 size_t gallery_size,
100 float matching_score_threshold,
101 SFEEntityIdentificationCandidate *out_candidates,
102 size_t *in_out_candidates_count,
103 size_t thread_count);
104
112 uint8_t *bytes,
113 size_t *size);
114
121 size_t size,
122 SFETattooTemplate *out_tattoo_template);
123
124#ifdef __cplusplus
125} // extern "C"
126#endif
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.
Definition sfe_core.h:102
void * SFEError
Error type used to hold optional error message.
Definition sfe_core.h:97
SFEError sfeTattooTemplateExport(const SFETattooTemplate *tattoo_template, uint8_t *bytes, size_t *size)
Export tattoo template to bytes that can be shared between Innovatrics components....
SFEError sfeTattooTemplateVersion(const SFETattooTemplate *tattoo_template, SFETattooTemplateVersion *out_tattoo_template_version)
Get tattoo template version.
SFEError sfeTattooTemplateExtract(SFESolver solver, SFEImageView image, const SFEDetection *detection, SFETattooTemplate *out_tattoo_template)
Extract template from source image and given tattoo detection.
SFEError sfeTattooTemplateIdentify(const SFETattooTemplate *probe_tattoo_template, const SFETattooTemplate *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...
SFEError sfeTattooTemplateImport(const uint8_t *bytes, size_t size, SFETattooTemplate *out_tattoo_template)
Import tattoo template from bytes that can be shared between Innovatrics components.
SFEError sfeTattooTemplateMatch(const SFETattooTemplate *template1, const SFETattooTemplate *template2, float *out_matching_score)
Match two tattoo templates.
SFEError sfeTattooEntityIdentify(const SFETattooTemplate *probe_tattoo_template, const SFETattooTemplate *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...
#define SFE_TATTOO_TEMPLATE_SIZE
Tattoo template size in bytes.
Definition sfe_tattoo.h:19
Core detection - tagged union containing all detection types.
Entity type, used to group templates for entity identification. This type is compatible with uuid_v4 ...
Definition sfe_core.h:114
Candidate for identification by entity.
Definition sfe_core.h:127
Raw owned raster image representation, HWC|BGR order.
Definition sfe_core.h:70
Tattoo template struct.
Definition sfe_tattoo.h:22
uint8_t data[SFE_TATTOO_TEMPLATE_SIZE]
Definition sfe_tattoo.h:23
Tattoo template version struct.
Definition sfe_tattoo.h:27
uint32_t version
Version.
Definition sfe_tattoo.h:29
Candidate for identification by template.
Definition sfe_core.h:119