![]() |
SmartFace Embedded Toolkit
4.2.1
|
File containing API of sfe_tattoo library as part of SFE Toolkit. More...
#include "sfe_core.h"Go to the source code of this file.
Data Structures | |
| struct | SFETattooTemplate |
| Tattoo template struct. More... | |
| struct | SFETattooTemplateVersion |
| Tattoo template version struct. More... | |
Macros | |
| #define | SFE_TATTOO_TEMPLATE_SIZE 522 |
| Tattoo template size in bytes. | |
Typedefs | |
| typedef struct SFETattooTemplate | SFETattooTemplate |
| Tattoo template struct. | |
| typedef struct SFETattooTemplateVersion | SFETattooTemplateVersion |
| Tattoo template version struct. | |
Functions | |
| SFEError | sfeTattooTemplateExtract (SFESolver solver, SFEImageView image, const SFEDetection *detection, SFETattooTemplate *out_tattoo_template) |
| Extract template from source image and given tattoo detection. | |
| SFEError | sfeTattooTemplateMatch (const SFETattooTemplate *template1, const SFETattooTemplate *template2, float *out_matching_score) |
| Match two tattoo templates. | |
| SFEError | sfeTattooTemplateVersion (const SFETattooTemplate *tattoo_template, SFETattooTemplateVersion *out_tattoo_template_version) |
| Get tattoo template version. | |
| 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 templates in the gallery. | |
| 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 templates in the gallery. Entity is then used to group the results by entity using the best score of any template associated with the entity. | |
| SFEError | sfeTattooTemplateExport (const SFETattooTemplate *tattoo_template, uint8_t *bytes, size_t *size) |
| Export tattoo template to bytes that can be shared between Innovatrics components. This is version v1 of the template format. | |
| 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. | |
File containing API of sfe_tattoo library as part of SFE Toolkit.
Definition in file sfe_tattoo.h.
| #define SFE_TATTOO_TEMPLATE_SIZE 522 |
Tattoo template size in bytes.
Definition at line 19 of file sfe_tattoo.h.
| typedef struct SFETattooTemplate SFETattooTemplate |
Tattoo template struct.
| typedef struct SFETattooTemplateVersion SFETattooTemplateVersion |
Tattoo template version struct.
| 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 templates in the gallery. Entity is then used to group the results by entity using the best score of any template associated with the entity.
| [in] | probe_tattoo_template | probe template |
| [in] | templates_gallery | pointer to an array of SFETattooTemplate |
| [in] | entities_gallery | pointer to an array of SFEEntity that corresponds with templates_gallery |
| [in] | gallery_size | number of templates in gallery |
| [in] | matching_score_threshold | threshold for matching - range <0,1> |
| [out] | out_candidates | Pointer to an ordered array of candidates |
| [in,out] | in_out_candidates_count | IN: Expected number of candidates OUT: Number of found candidates with matching score above the matching score threshold |
| [in] | thread_count | Number of threads to use in the identification - 0: use all available cores, 1: use single thread, N: use N number of threads |
| SFEError sfeTattooTemplateExport | ( | const SFETattooTemplate * | tattoo_template, |
| uint8_t * | bytes, | ||
| size_t * | size | ||
| ) |
Export tattoo template to bytes that can be shared between Innovatrics components. This is version v1 of the template format.
| [in] | tattoo_template | tattoo template to export |
| [in,out] | bytes | bytes to export the tattoo template to |
| [in,out] | size | size of the exported bytes |
| SFEError sfeTattooTemplateExtract | ( | SFESolver | solver, |
| SFEImageView | image, | ||
| const SFEDetection * | detection, | ||
| SFETattooTemplate * | out_tattoo_template | ||
| ) |
Extract template from source image and given tattoo detection.
| [in] | solver | tattoo extraction solver |
| [in] | image | source image |
| [in] | detection | core detection containing the detected tattoo |
| [out] | out_tattoo_template | extracted tattoo template |
| 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 templates in the gallery.
| [in] | probe_tattoo_template | probe template |
| [in] | templates_gallery | pointer to an array of SFETattooTemplate |
| [in] | gallery_size | number of templates in the gallery |
| [in] | matching_score_threshold | threshold for matching - range <0,1> |
| [out] | out_candidates | Pointer to an ordered array of candidates |
| [in,out] | in_out_candidates_count | IN: Expected number of candidates OUT: Number of found candidates with matching score above the matching score threshold |
| [in] | thread_count | Number of threads to use in the identification - 0: use all available cores, 1: use single thread, N: use N number of threads |
| 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.
| [in] | bytes | bytes to import the tattoo template from |
| [in] | size | size of the imported bytes |
| [out] | out_tattoo_template | imported tattoo template |
| SFEError sfeTattooTemplateMatch | ( | const SFETattooTemplate * | template1, |
| const SFETattooTemplate * | template2, | ||
| float * | out_matching_score | ||
| ) |
Match two tattoo templates.
| [in] | template1 | first template to match |
| [in] | template2 | second template to match |
| [out] | out_matching_score | matching score - range <0,1> |
| SFEError sfeTattooTemplateVersion | ( | const SFETattooTemplate * | tattoo_template, |
| SFETattooTemplateVersion * | out_tattoo_template_version | ||
| ) |
Get tattoo template version.
| [in] | tattoo_template | source tattoo template |
| [out] | out_tattoo_template_version | tattoo template version struct |