Procedure to find a face. More...
#include <tools/nfdc/face-helpers.hpp>
Public Types | |
enum class | Code { OK = 0 , ERROR = 1 , NOT_FOUND = 3 , CANONIZE_ERROR = 4 , AMBIGUOUS = 5 , NOT_STARTED = -1 , IN_PROGRESS = -2 } |
enum class | DisambiguationStyle { LOCAL_URI = 1 } |
Public Member Functions | |
FindFace (ExecuteContext &ctx) | |
Code | execute (const FaceQueryFilter &filter, bool allowMulti=false) |
Find face by FaceQueryFilter. More... | |
Code | execute (const FaceUri &faceUri, bool allowMulti=false) |
Find face by FaceUri. More... | |
Code | execute (const std::any &faceIdOrUri, bool allowMulti=false) |
Find face by FaceId or FaceUri. More... | |
Code | execute (uint64_t faceId) |
Find face by FaceId. More... | |
const std::string & | getErrorReason () const |
uint64_t | getFaceId () const |
std::set< uint64_t > | getFaceIds () const |
const FaceStatus & | getFaceStatus () const |
const std::vector< FaceStatus > & | getResults () const |
void | printDisambiguation (std::ostream &os, DisambiguationStyle style) const |
Print results for disambiguation. More... | |
Procedure to find a face.
Definition at line 47 of file face-helpers.hpp.
|
strong |
Definition at line 50 of file face-helpers.hpp.
|
strong |
Enumerator | |
---|---|
LOCAL_URI | print FaceId and LocalUri |
Definition at line 60 of file face-helpers.hpp.
|
explicit |
Definition at line 36 of file face-helpers.cpp.
FindFace::Code nfd::tools::nfdc::FindFace::execute | ( | const FaceQueryFilter & | filter, |
bool | allowMulti = false |
||
) |
Find face by FaceQueryFilter.
Definition at line 70 of file face-helpers.cpp.
FindFace::Code nfd::tools::nfdc::FindFace::execute | ( | const FaceUri & | faceUri, |
bool | allowMulti = false |
||
) |
Find face by FaceUri.
Definition at line 42 of file face-helpers.cpp.
FindFace::Code nfd::tools::nfdc::FindFace::execute | ( | const std::any & | faceIdOrUri, |
bool | allowMulti = false |
||
) |
Find face by FaceId or FaceUri.
faceIdOrUri | either a FaceId (uint64_t) or a FaceUri |
allowMulti | effective only if faceIdOrUri contains a FaceUri |
std::bad_any_cast | faceIdOrUri is neither uint64_t nor FaceUri |
Definition at line 58 of file face-helpers.cpp.
FindFace::Code nfd::tools::nfdc::FindFace::execute | ( | uint64_t | faceId | ) |
Find face by FaceId.
Definition at line 50 of file face-helpers.cpp.
|
inline |
Definition at line 120 of file face-helpers.hpp.
|
inline |
Definition at line 114 of file face-helpers.hpp.
std::set< uint64_t > nfd::tools::nfdc::FindFace::getFaceIds | ( | ) | const |
Definition at line 151 of file face-helpers.cpp.
const FaceStatus & nfd::tools::nfdc::FindFace::getFaceStatus | ( | ) | const |
Definition at line 161 of file face-helpers.cpp.
|
inline |
Definition at line 97 of file face-helpers.hpp.
void nfd::tools::nfdc::FindFace::printDisambiguation | ( | std::ostream & | os, |
DisambiguationStyle | style | ||
) | const |
Print results for disambiguation.
Definition at line 168 of file face-helpers.cpp.