Fawkes API Fawkes Development Version
|
FacerInterface Fawkes BlackBoard Interface. More...
#include <>>
Classes | |
class | EnableIdentityMessage |
EnableIdentityMessage Fawkes BlackBoard Interface Message. More... | |
class | GetNameMessage |
GetNameMessage Fawkes BlackBoard Interface Message. More... | |
class | LearnFaceMessage |
LearnFaceMessage Fawkes BlackBoard Interface Message. More... | |
class | SetNameMessage |
SetNameMessage Fawkes BlackBoard Interface Message. More... | |
class | SetOpmodeMessage |
SetOpmodeMessage Fawkes BlackBoard Interface Message. More... | |
class | StartSearchPersonMessage |
StartSearchPersonMessage Fawkes BlackBoard Interface Message. More... | |
class | StopSearchPersonMessage |
StopSearchPersonMessage Fawkes BlackBoard Interface Message. More... | |
Public Types | |
enum | if_facer_opmode_t { OPMODE_DISABLED , OPMODE_DETECTION , OPMODE_RECOGNITION , OPMODE_LEARNING , OPMODE_GENDER } |
This determines the current status of skill execution. More... | |
Public Member Functions | |
const char * | tostring_if_facer_opmode_t (if_facer_opmode_t value) const |
Convert if_facer_opmode_t constant to string. More... | |
virtual bool | message_valid (const Message *message) const |
Check if message is valid and can be enqueued. More... | |
if_facer_opmode_t | opmode () const |
Get opmode value. More... | |
void | set_opmode (const if_facer_opmode_t new_opmode) |
Set opmode value. More... | |
size_t | maxlenof_opmode () const |
Get maximum length of opmode value. More... | |
uint32_t | num_identities () const |
Get num_identities value. More... | |
void | set_num_identities (const uint32_t new_num_identities) |
Set num_identities value. More... | |
size_t | maxlenof_num_identities () const |
Get maximum length of num_identities value. More... | |
uint32_t | recognized_identity () const |
Get recognized_identity value. More... | |
void | set_recognized_identity (const uint32_t new_recognized_identity) |
Set recognized_identity value. More... | |
size_t | maxlenof_recognized_identity () const |
Get maximum length of recognized_identity value. More... | |
char * | recognized_name () const |
Get recognized_name value. More... | |
void | set_recognized_name (const char *new_recognized_name) |
Set recognized_name value. More... | |
size_t | maxlenof_recognized_name () const |
Get maximum length of recognized_name value. More... | |
uint32_t | num_detections () const |
Get num_detections value. More... | |
void | set_num_detections (const uint32_t new_num_detections) |
Set num_detections value. More... | |
size_t | maxlenof_num_detections () const |
Get maximum length of num_detections value. More... | |
uint32_t | num_recognitions () const |
Get num_recognitions value. More... | |
void | set_num_recognitions (const uint32_t new_num_recognitions) |
Set num_recognitions value. More... | |
size_t | maxlenof_num_recognitions () const |
Get maximum length of num_recognitions value. More... | |
uint32_t | most_likely_identity () const |
Get most_likely_identity value. More... | |
void | set_most_likely_identity (const uint32_t new_most_likely_identity) |
Set most_likely_identity value. More... | |
size_t | maxlenof_most_likely_identity () const |
Get maximum length of most_likely_identity value. More... | |
char * | most_likely_gender () const |
Get most_likely_gender value. More... | |
void | set_most_likely_gender (const char *new_most_likely_gender) |
Set most_likely_gender value. More... | |
size_t | maxlenof_most_likely_gender () const |
Get maximum length of most_likely_gender value. More... | |
float | history_ratio () const |
Get history_ratio value. More... | |
void | set_history_ratio (const float new_history_ratio) |
Set history_ratio value. More... | |
size_t | maxlenof_history_ratio () const |
Get maximum length of history_ratio value. More... | |
float | sec_since_detection () const |
Get sec_since_detection value. More... | |
void | set_sec_since_detection (const float new_sec_since_detection) |
Set sec_since_detection value. More... | |
size_t | maxlenof_sec_since_detection () const |
Get maximum length of sec_since_detection value. More... | |
int32_t | visibility_history () const |
Get visibility_history value. More... | |
void | set_visibility_history (const int32_t new_visibility_history) |
Set visibility_history value. More... | |
size_t | maxlenof_visibility_history () const |
Get maximum length of visibility_history value. More... | |
bool | is_learning_in_progress () const |
Get learning_in_progress value. More... | |
void | set_learning_in_progress (const bool new_learning_in_progress) |
Set learning_in_progress value. More... | |
size_t | maxlenof_learning_in_progress () const |
Get maximum length of learning_in_progress value. More... | |
bool | is_searching_person () const |
Get searching_person value. More... | |
void | set_searching_person (const bool new_searching_person) |
Set searching_person value. More... | |
size_t | maxlenof_searching_person () const |
Get maximum length of searching_person value. More... | |
float | recording_progress () const |
Get recording_progress value. More... | |
void | set_recording_progress (const float new_recording_progress) |
Set recording_progress value. More... | |
size_t | maxlenof_recording_progress () const |
Get maximum length of recording_progress value. More... | |
float | bearing () const |
Get bearing value. More... | |
void | set_bearing (const float new_bearing) |
Set bearing value. More... | |
size_t | maxlenof_bearing () const |
Get maximum length of bearing value. More... | |
float | slope () const |
Get slope value. More... | |
void | set_slope (const float new_slope) |
Set slope value. More... | |
size_t | maxlenof_slope () const |
Get maximum length of slope value. More... | |
uint32_t | requested_index () const |
Get requested_index value. More... | |
void | set_requested_index (const uint32_t new_requested_index) |
Set requested_index value. More... | |
size_t | maxlenof_requested_index () const |
Get maximum length of requested_index value. More... | |
char * | requested_name () const |
Get requested_name value. More... | |
void | set_requested_name (const char *new_requested_name) |
Set requested_name value. More... | |
size_t | maxlenof_requested_name () const |
Get maximum length of requested_name value. More... | |
uint32_t | index_last_learned () const |
Get index_last_learned value. More... | |
void | set_index_last_learned (const uint32_t new_index_last_learned) |
Set index_last_learned value. More... | |
size_t | maxlenof_index_last_learned () const |
Get maximum length of index_last_learned value. More... | |
virtual Message * | create_message (const char *type) const |
Create message based on type name. More... | |
virtual void | copy_values (const Interface *other) |
Copy values from other interface. More... | |
virtual const char * | enum_tostring (const char *enumtype, int val) const |
Convert arbitrary enum value to string. More... | |
![]() | |
virtual | ~Interface () |
Destructor. More... | |
bool | oftype (const char *interface_type) const |
Check if interface is of given type. More... | |
const void * | datachunk () const |
Get data chunk. More... | |
unsigned int | datasize () const |
Get data size. More... | |
const char * | type () const |
Get type of interface. More... | |
const char * | id () const |
Get identifier of interface. More... | |
const char * | uid () const |
Get unique identifier of interface. More... | |
Uuid | serial () const |
Get instance serial of interface. More... | |
unsigned int | mem_serial () const |
Get memory serial of interface. More... | |
bool | operator== (Interface &comp) const |
Check equality of two interfaces. More... | |
const unsigned char * | hash () const |
Get interface hash. More... | |
size_t | hash_size () const |
Get size of interface hash. More... | |
const char * | hash_printable () const |
Get printable interface hash. More... | |
bool | is_writer () const |
Check if this is a writing instance. More... | |
void | set_validity (bool valid) |
Mark this interface invalid. More... | |
bool | is_valid () const |
Check validity of interface. More... | |
const char * | owner () const |
Get owner of interface. More... | |
void | set_from_chunk (void *chunk) |
Set from a raw data chunk. More... | |
virtual Message * | create_message (const char *type) const =0 |
Create message based on type name. More... | |
virtual void | copy_values (const Interface *interface)=0 |
Copy values from another interface. More... | |
virtual const char * | enum_tostring (const char *enumtype, int val) const =0 |
Convert arbitrary enum value to string. More... | |
void | resize_buffers (unsigned int num_buffers) |
Resize buffer array. More... | |
unsigned int | num_buffers () const |
Get number of buffers. More... | |
void | copy_shared_to_buffer (unsigned int buffer) |
Copy data from private memory to buffer. More... | |
void | copy_private_to_buffer (unsigned int buffer) |
Copy data from private memory to buffer. More... | |
void | read_from_buffer (unsigned int buffer) |
Copy data from buffer to private memory. More... | |
int | compare_buffers (unsigned int buffer) |
Compare buffer to private memory. More... | |
Time | buffer_timestamp (unsigned int buffer) |
Get time of a buffer. More... | |
void | buffer_timestamp (unsigned int buffer, Time *timestamp) |
Get time of a buffer. More... | |
void | read () |
Read from BlackBoard into local copy. More... | |
void | write () |
Write from local copy into BlackBoard memory. More... | |
bool | has_writer () const |
Check if there is a writer for the interface. More... | |
unsigned int | num_readers () const |
Get the number of readers. More... | |
std::string | writer () const |
Get owner name of writing interface instance. More... | |
std::list< std::string > | readers () const |
Get owner names of reading interface instances. More... | |
bool | changed () const |
bool | refreshed () const |
Check if data has been refreshed. More... | |
const Time * | timestamp () const |
Get timestamp of last write. More... | |
void | set_auto_timestamping (bool enabled) |
Enable or disable automated timestamping. More... | |
void | set_timestamp (const Time *t=NULL) |
Set timestamp. More... | |
void | set_clock (Clock *clock) |
Set clock to use for timestamping. More... | |
void | mark_data_refreshed () |
Mark data as refreshed. More... | |
void | mark_data_changed () |
Mark data as changed. More... | |
std::list< const char * > | get_message_types () |
Obtain a list of textual representations of the message types available for this interface. More... | |
unsigned int | msgq_enqueue (Message *message, bool proxy=false) |
Enqueue message at end of queue. More... | |
unsigned int | msgq_enqueue_copy (Message *message) |
Enqueue copy of message at end of queue. More... | |
void | msgq_remove (Message *message) |
Remove message from queue. More... | |
void | msgq_remove (unsigned int message_id) |
Remove message from queue. More... | |
unsigned int | msgq_size () |
Get size of message queue. More... | |
void | msgq_flush () |
Flush all messages. More... | |
void | msgq_lock () |
Lock message queue. More... | |
bool | msgq_try_lock () |
Try to lock message queue. More... | |
void | msgq_unlock () |
Unlock message queue. More... | |
void | msgq_pop () |
Erase first message from queue. More... | |
Message * | msgq_first () |
Get the first message from the message queue. More... | |
bool | msgq_empty () |
Check if queue is empty. More... | |
void | msgq_append (Message *message) |
Enqueue message. More... | |
template<class MessageType > | |
bool | msgq_first_is () |
Check if first message has desired type. More... | |
template<class MessageType > | |
MessageType * | msgq_first () |
Get first message casted to the desired type. More... | |
template<class MessageType > | |
MessageType * | msgq_first (MessageType *&msg) |
Get first message casted to the desired type. More... | |
template<class MessageType > | |
MessageType * | msgq_first_safe (MessageType *&msg) noexcept |
Get first message casted to the desired type without exceptions. More... | |
MessageQueue::MessageIterator | msgq_begin () |
Get start iterator for message queue. More... | |
MessageQueue::MessageIterator | msgq_end () |
Get end iterator for message queue. More... | |
InterfaceFieldIterator | fields () |
Get iterator over all fields of this interface instance. More... | |
InterfaceFieldIterator | fields_end () |
Invalid iterator. More... | |
unsigned int | num_fields () |
Get the number of fields in the interface. More... | |
Additional Inherited Members | |
![]() | |
static void | parse_uid (const char *uid, std::string &type, std::string &id) |
Parse UID to type and ID strings. More... | |
![]() | |
Interface () | |
Constructor. More... | |
virtual bool | message_valid (const Message *message) const =0 |
Check if the message is valid and can be enqueued. More... | |
void | set_hash (unsigned char *ihash) |
Set hash. More... | |
void | add_fieldinfo (interface_fieldtype_t type, const char *name, size_t length, void *value, const char *enumtype=0, const interface_enum_map_t *enum_map=0) |
Add an entry to the field info list. More... | |
void | add_messageinfo (const char *name) |
Add an entry to the message info list. More... | |
template<class FieldT , class DataT > | |
void | set_field (FieldT &field, DataT &data) |
Set a field, set data_changed to true and update data_changed accordingly. More... | |
template<class FieldT , class DataT > | |
void | set_field (FieldT &field, unsigned int index, DataT &data) |
Set an array field at a given index, set data_changed to true and update data_changed accordingly. More... | |
![]() | |
void * | data_ptr |
Pointer to local memory storage. More... | |
unsigned int | data_size |
Minimal data size to hold data storage. More... | |
bool | data_refreshed |
Indicator if data can be considered "current", i.e. More... | |
bool | data_changed |
Indicator if the current data is different from the last call to write() This must is automatically updated by set_field. More... | |
interface_data_ts_t * | data_ts |
Pointer to data casted to timestamp struct. More... | |
FacerInterface Fawkes BlackBoard Interface.
The interface provides access to the face recognition plugin (facer). It provides basic status information about facer and allows for setting a specific mode and access the resolut. calling skills via messages. It can also be used to manually restart the Lua interpreter if something is wedged.
Definition at line 33 of file FacerInterface.h.
This determines the current status of skill execution.
Definition at line 44 of file FacerInterface.h.
float fawkes::FacerInterface::bearing | ( | ) | const |
Get bearing value.
The relative bearing to the recognized face in radians.
Definition at line 607 of file FacerInterface.cpp.
|
virtual |
Copy values from other interface.
other | other interface to copy values from |
Implements fawkes::Interface.
Definition at line 799 of file FacerInterface.cpp.
References fawkes::Interface::type().
|
virtual |
Create message based on type name.
This will create a new message of the given type. The type must be given without the InterfaceName:: prefix but just the plain class name of the message.
type | message type |
UnknownTypeException | thrown if this interface cannot create a message of the given type. |
Implements fawkes::Interface.
Definition at line 772 of file FacerInterface.cpp.
|
virtual |
Convert arbitrary enum value to string.
Given the string representation of the enum type and the value this method returns the string representation of the specific value, or the string UNKNOWN if the value is not defined. An exception is thrown if the enum type is invalid.
enumtype | enum type as string |
val | value to convert |
UnknownTypeException | thrown if enumtype is not specified for interface. |
Implements fawkes::Interface.
Definition at line 810 of file FacerInterface.cpp.
float fawkes::FacerInterface::history_ratio | ( | ) | const |
Get history_ratio value.
The ratio of the most likely identity showing up in the history and the length of the history.
Definition at line 394 of file FacerInterface.cpp.
uint32_t fawkes::FacerInterface::index_last_learned | ( | ) | const |
Get index_last_learned value.
Index of the identity which was learned last.
Definition at line 743 of file FacerInterface.cpp.
bool fawkes::FacerInterface::is_learning_in_progress | ( | ) | const |
Get learning_in_progress value.
Indicates whether a new identity is currently learnt. If learning is in progress only "old" faces can be recognized.
Definition at line 500 of file FacerInterface.cpp.
bool fawkes::FacerInterface::is_searching_person | ( | ) | const |
Get searching_person value.
Indicates whether the plugin is searching for a specified person. If set to true, the index and name will be listed in the fields "requested_index" and "requested_name".
Definition at line 537 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_bearing | ( | ) | const |
Get maximum length of bearing value.
Definition at line 617 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_history_ratio | ( | ) | const |
Get maximum length of history_ratio value.
Definition at line 404 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_index_last_learned | ( | ) | const |
Get maximum length of index_last_learned value.
Definition at line 753 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_learning_in_progress | ( | ) | const |
Get maximum length of learning_in_progress value.
Definition at line 510 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_most_likely_gender | ( | ) | const |
Get maximum length of most_likely_gender value.
Definition at line 369 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_most_likely_identity | ( | ) | const |
Get maximum length of most_likely_identity value.
Definition at line 335 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_num_detections | ( | ) | const |
Get maximum length of num_detections value.
Definition at line 267 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_num_identities | ( | ) | const |
Get maximum length of num_identities value.
Definition at line 165 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_num_recognitions | ( | ) | const |
Get maximum length of num_recognitions value.
Definition at line 301 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_opmode | ( | ) | const |
Get maximum length of opmode value.
Definition at line 131 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_recognized_identity | ( | ) | const |
Get maximum length of recognized_identity value.
Definition at line 199 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_recognized_name | ( | ) | const |
Get maximum length of recognized_name value.
Definition at line 233 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_recording_progress | ( | ) | const |
Get maximum length of recording_progress value.
Definition at line 583 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_requested_index | ( | ) | const |
Get maximum length of requested_index value.
Definition at line 685 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_requested_name | ( | ) | const |
Get maximum length of requested_name value.
Definition at line 719 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_searching_person | ( | ) | const |
Get maximum length of searching_person value.
Definition at line 547 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_sec_since_detection | ( | ) | const |
Get maximum length of sec_since_detection value.
Definition at line 439 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_slope | ( | ) | const |
Get maximum length of slope value.
Definition at line 651 of file FacerInterface.cpp.
size_t fawkes::FacerInterface::maxlenof_visibility_history | ( | ) | const |
Get maximum length of visibility_history value.
Definition at line 474 of file FacerInterface.cpp.
|
virtual |
Check if message is valid and can be enqueued.
message | Message to check |
Implements fawkes::Interface.
Definition at line 1549 of file FacerInterface.cpp.
char * fawkes::FacerInterface::most_likely_gender | ( | ) | const |
Get most_likely_gender value.
The gender that was recogniced.
Definition at line 359 of file FacerInterface.cpp.
uint32_t fawkes::FacerInterface::most_likely_identity | ( | ) | const |
Get most_likely_identity value.
The identity that was recognized most prevalently.
Definition at line 325 of file FacerInterface.cpp.
uint32_t fawkes::FacerInterface::num_detections | ( | ) | const |
Get num_detections value.
Number of currently detected faces.
Definition at line 257 of file FacerInterface.cpp.
uint32_t fawkes::FacerInterface::num_identities | ( | ) | const |
Get num_identities value.
The number of identities in the database.
Definition at line 155 of file FacerInterface.cpp.
uint32_t fawkes::FacerInterface::num_recognitions | ( | ) | const |
Get num_recognitions value.
Number of recognized faces.
Definition at line 291 of file FacerInterface.cpp.
FacerInterface::if_facer_opmode_t fawkes::FacerInterface::opmode | ( | ) | const |
Get opmode value.
Current opmode.
Definition at line 121 of file FacerInterface.cpp.
uint32_t fawkes::FacerInterface::recognized_identity | ( | ) | const |
Get recognized_identity value.
The index of the recognized identity.
Definition at line 189 of file FacerInterface.cpp.
char * fawkes::FacerInterface::recognized_name | ( | ) | const |
Get recognized_name value.
The name of the recognized identity.
Definition at line 223 of file FacerInterface.cpp.
float fawkes::FacerInterface::recording_progress | ( | ) | const |
Get recording_progress value.
Indicates the progress of recording images of a new face.
Definition at line 573 of file FacerInterface.cpp.
uint32_t fawkes::FacerInterface::requested_index | ( | ) | const |
Get requested_index value.
Index of the identity for which the name was requested.
Definition at line 675 of file FacerInterface.cpp.
char * fawkes::FacerInterface::requested_name | ( | ) | const |
Get requested_name value.
Requested name.
Definition at line 709 of file FacerInterface.cpp.
float fawkes::FacerInterface::sec_since_detection | ( | ) | const |
Get sec_since_detection value.
Time in seconds since the last successful detection.
Definition at line 429 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_bearing | ( | const float | new_bearing | ) |
Set bearing value.
The relative bearing to the recognized face in radians.
new_bearing | new bearing value |
Definition at line 629 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_history_ratio | ( | const float | new_history_ratio | ) |
Set history_ratio value.
The ratio of the most likely identity showing up in the history and the length of the history.
new_history_ratio | new history_ratio value |
Definition at line 417 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_index_last_learned | ( | const uint32_t | new_index_last_learned | ) |
Set index_last_learned value.
Index of the identity which was learned last.
new_index_last_learned | new index_last_learned value |
Definition at line 765 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_learning_in_progress | ( | const bool | new_learning_in_progress | ) |
Set learning_in_progress value.
Indicates whether a new identity is currently learnt. If learning is in progress only "old" faces can be recognized.
new_learning_in_progress | new learning_in_progress value |
Definition at line 523 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_most_likely_gender | ( | const char * | new_most_likely_gender | ) |
Set most_likely_gender value.
The gender that was recogniced.
new_most_likely_gender | new most_likely_gender value |
Definition at line 381 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_most_likely_identity | ( | const uint32_t | new_most_likely_identity | ) |
Set most_likely_identity value.
The identity that was recognized most prevalently.
new_most_likely_identity | new most_likely_identity value |
Definition at line 347 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_num_detections | ( | const uint32_t | new_num_detections | ) |
Set num_detections value.
Number of currently detected faces.
new_num_detections | new num_detections value |
Definition at line 279 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_num_identities | ( | const uint32_t | new_num_identities | ) |
Set num_identities value.
The number of identities in the database.
new_num_identities | new num_identities value |
Definition at line 177 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_num_recognitions | ( | const uint32_t | new_num_recognitions | ) |
Set num_recognitions value.
Number of recognized faces.
new_num_recognitions | new num_recognitions value |
Definition at line 313 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_opmode | ( | const if_facer_opmode_t | new_opmode | ) |
Set opmode value.
Current opmode.
new_opmode | new opmode value |
Definition at line 143 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_recognized_identity | ( | const uint32_t | new_recognized_identity | ) |
Set recognized_identity value.
The index of the recognized identity.
new_recognized_identity | new recognized_identity value |
Definition at line 211 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_recognized_name | ( | const char * | new_recognized_name | ) |
Set recognized_name value.
The name of the recognized identity.
new_recognized_name | new recognized_name value |
Definition at line 245 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_recording_progress | ( | const float | new_recording_progress | ) |
Set recording_progress value.
Indicates the progress of recording images of a new face.
new_recording_progress | new recording_progress value |
Definition at line 595 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_requested_index | ( | const uint32_t | new_requested_index | ) |
Set requested_index value.
Index of the identity for which the name was requested.
new_requested_index | new requested_index value |
Definition at line 697 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_requested_name | ( | const char * | new_requested_name | ) |
Set requested_name value.
Requested name.
new_requested_name | new requested_name value |
Definition at line 731 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_searching_person | ( | const bool | new_searching_person | ) |
Set searching_person value.
Indicates whether the plugin is searching for a specified person. If set to true, the index and name will be listed in the fields "requested_index" and "requested_name".
new_searching_person | new searching_person value |
Definition at line 561 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_sec_since_detection | ( | const float | new_sec_since_detection | ) |
Set sec_since_detection value.
Time in seconds since the last successful detection.
new_sec_since_detection | new sec_since_detection value |
Definition at line 451 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_slope | ( | const float | new_slope | ) |
Set slope value.
The relative slope to the recognized face in radians.
new_slope | new slope value |
Definition at line 663 of file FacerInterface.cpp.
void fawkes::FacerInterface::set_visibility_history | ( | const int32_t | new_visibility_history | ) |
Set visibility_history value.
The number of consecutive sighting ( <= 1 ) and non-sightings ( >= -1 ), respectively.
new_visibility_history | new visibility_history value |
Definition at line 487 of file FacerInterface.cpp.
float fawkes::FacerInterface::slope | ( | ) | const |
Get slope value.
The relative slope to the recognized face in radians.
Definition at line 641 of file FacerInterface.cpp.
const char * fawkes::FacerInterface::tostring_if_facer_opmode_t | ( | if_facer_opmode_t | value | ) | const |
Convert if_facer_opmode_t constant to string.
value | value to convert to string |
Definition at line 102 of file FacerInterface.cpp.
int32_t fawkes::FacerInterface::visibility_history | ( | ) | const |
Get visibility_history value.
The number of consecutive sighting ( <= 1 ) and non-sightings ( >= -1 ), respectively.
Definition at line 464 of file FacerInterface.cpp.