SelphID Cpp SDK API
Loading...
Searching...
No Matches
SelphIDIdentifier.h
1#ifndef SELPHIDIDENTIPHIER_H_
2#define SELPHIDIDENTIPHIER_H_
3
4#include "FPhiDefines.hpp"
5#include "SelphIDFacialGalleryInfo.h"
6#include "SelphIDIdentifierResult.h"
7#include "SelphIDIdentifierOptions.h"
8#include "SelphIDException.h"
9#include "SelphIDFacialExtractionResult.h"
10
11namespace FPhiSelphID {
17 public:
22 DLL_PUBLIC SelphIDIdentifier();
23
28 DLL_PUBLIC ~SelphIDIdentifier();
29
37 DLL_PUBLIC bool CreateGallery(const std::string &galleryID);
38
47 DLL_PUBLIC bool CreateGalleryWithPath(const std::string &galleryID, const std::string &galleryFilePath);
48
56 DLL_PUBLIC bool ClearGallery(const std::string &galleryID);
57
63 DLL_PUBLIC bool ClearAllGalleries();
64
70 DLL_PUBLIC std::vector<std::string> GetAllGalleries() const;
71
81 DLL_PUBLIC int EnrollWithExtractionResult(const std::string &galleryID, const std::string &templateID,
82 const SelphIDFacialExtractionResult &extractionResult);
83
93 DLL_PUBLIC int EnrollWithFacialTemplate(const std::string &galleryID, const std::string &templateID,
94 const std::vector<unsigned char> &facialTemplateBuffer);
95
105 DLL_PUBLIC SelphIDIdentifierResult
106 IdentifyWithExtractionResult(const std::string &galleryID, const SelphIDFacialExtractionResult &extractionResult,
107 const SelphIDIdentifierOptions &identifierOptions);
108
118 DLL_PUBLIC SelphIDIdentifierResult
119 IdentifyWithFacialTemplate(const std::string &galleryID, const std::vector<unsigned char> &facialTemplateBuffer,
120 const SelphIDIdentifierOptions &identifierOptions);
121
129 DLL_PUBLIC SelphIDFacialGalleryInfo GetGalleryInfo(const std::string &galleryID) const;
130
138 DLL_PUBLIC bool RemoveWithGalleryIndex(const std::string &galleryID, int index);
139};
140} // namespace FPhiSelphID
141
142#endif
SelphID Facial Extraction Result.
Definition SelphIDFacialExtractionResult.h:14
SelphID Identifier.
Definition SelphIDIdentifier.h:16
DLL_PUBLIC SelphIDIdentifier()
Creates a new instance of SelphIDIdentifier.
DLL_PUBLIC SelphIDFacialGalleryInfo GetGalleryInfo(const std::string &galleryID) const
Gets gallery info.
DLL_PUBLIC bool ClearAllGalleries()
Clear all galleries for identification.
DLL_PUBLIC bool ClearGallery(const std::string &galleryID)
Clears gallery for identification.
DLL_PUBLIC bool CreateGalleryWithPath(const std::string &galleryID, const std::string &galleryFilePath)
Creates a on-disk gallery for identification.
DLL_PUBLIC SelphIDIdentifierResult IdentifyWithExtractionResult(const std::string &galleryID, const SelphIDFacialExtractionResult &extractionResult, const SelphIDIdentifierOptions &identifierOptions)
Identifies a facial template from extraction result against a gallery.
DLL_PUBLIC std::vector< std::string > GetAllGalleries() const
Get the name of all Galleries.
DLL_PUBLIC bool CreateGallery(const std::string &galleryID)
Creates a in-memory gallery for identification.
DLL_PUBLIC ~SelphIDIdentifier()
SelphIDVerifier destructor.
DLL_PUBLIC SelphIDIdentifierResult IdentifyWithFacialTemplate(const std::string &galleryID, const std::vector< unsigned char > &facialTemplateBuffer, const SelphIDIdentifierOptions &identifierOptions)
Identifies a facial template against the gallery.
DLL_PUBLIC int EnrollWithFacialTemplate(const std::string &galleryID, const std::string &templateID, const std::vector< unsigned char > &facialTemplateBuffer)
Enrolls a new facial template in a gallery.
DLL_PUBLIC bool RemoveWithGalleryIndex(const std::string &galleryID, int index)
Removes facial template from gallery with its facial template index.
DLL_PUBLIC int EnrollWithExtractionResult(const std::string &galleryID, const std::string &templateID, const SelphIDFacialExtractionResult &extractionResult)
Enrolls a new facial template from extraction result in a gallery.
SelphID Identifier Options.
Definition SelphIDIdentifierOptions.h:14
SelphID Identifier Result.
Definition SelphIDIdentifierResult.h:14