procedure to find a face More...
#include <tools/nfdc/find-face.hpp>
Public Types | |
enum | Code { Code::OK = 0, Code::ERROR = 1, Code::NOT_FOUND = 3, Code::CANONIZE_ERROR = 4, Code::AMBIGUOUS = 5, Code::NOT_STARTED = -1, Code::IN_PROGRESS = -2 } |
enum | DisambiguationStyle { DisambiguationStyle::LOCAL_URI = 1 } |
Public Member Functions | |
FindFace (ExecuteContext &ctx) | |
Code | execute (const FaceUri &faceUri, bool allowMulti=false) |
find face by FaceUri More... | |
Code | execute (uint64_t faceId) |
find face by FaceId More... | |
Code | execute (const boost::any &faceIdOrUri, bool allowMulti=false) |
find face by FaceId or FaceUri More... | |
Code | execute (const FaceQueryFilter &filter, bool allowMulti=false) |
find face by FaceQueryFilter 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 40 of file find-face.hpp.
|
strong |
Definition at line 43 of file find-face.hpp.
|
strong |
Enumerator | |
---|---|
LOCAL_URI |
print FaceId and LocalUri |
Definition at line 53 of file find-face.hpp.
|
explicit |
Definition at line 36 of file find-face.cpp.
FindFace::Code nfd::tools::nfdc::FindFace::execute | ( | const FaceUri & | faceUri, |
bool | allowMulti = false |
||
) |
find face by FaceUri
Definition at line 42 of file find-face.cpp.
FindFace::Code nfd::tools::nfdc::FindFace::execute | ( | uint64_t | faceId | ) |
find face by FaceId
Definition at line 50 of file find-face.cpp.
FindFace::Code nfd::tools::nfdc::FindFace::execute | ( | const boost::any & | faceIdOrUri, |
bool | allowMulti = false |
||
) |
find face by FaceId or FaceUri
faceIdOrUri | a boost::any that contains uint64_t or FaceUri |
allowMulti | effective only if faceIdOrUri contains a FaceUri |
boost::bad_any_cast | faceIdOrUri is neither uint64_t nor FaceUri |
Definition at line 58 of file find-face.cpp.
FindFace::Code nfd::tools::nfdc::FindFace::execute | ( | const FaceQueryFilter & | filter, |
bool | allowMulti = false |
||
) |
find face by FaceQueryFilter
Definition at line 70 of file find-face.cpp.
|
inline |
Definition at line 113 of file find-face.hpp.
|
inline |
Definition at line 107 of file find-face.hpp.
std::set< uint64_t > nfd::tools::nfdc::FindFace::getFaceIds | ( | ) | const |
Definition at line 152 of file find-face.cpp.
const FaceStatus & nfd::tools::nfdc::FindFace::getFaceStatus | ( | ) | const |
Definition at line 162 of file find-face.cpp.
|
inline |
Definition at line 90 of file find-face.hpp.
void nfd::tools::nfdc::FindFace::printDisambiguation | ( | std::ostream & | os, |
DisambiguationStyle | style | ||
) | const |
print results for disambiguation
Definition at line 169 of file find-face.cpp.