person.hpp
1 #ifndef NOOS_OBJECT_FACE_RECOGNITION
2 #define NOOS_OBJECT_FACE_RECOGNITION
3 /*
4  * LICENSE HERE
5  */
6 #include "includes.ihh"
7 #include "face.hpp"
8 namespace noos {
10 namespace object {
19 struct person
20 {
24  float confidence;
26  std::string name;
28  int label;
29 
31  person(const json::const_iterator & face_it);
32 
34  json::object_t to_json() const;
35 
37  bool operator==(const person & rhs) const;
38 
39 };
40 }
41 }
42 #endif
json::object_t to_json() const
face face_rect
rectangle which contains the face
Definition: person.hpp:22
person(const json::const_iterator &face_it)
Constructor using json for modern C++
Definition: asio_handler.hpp:14
int label
label
Definition: person.hpp:28
describes a face coordinate, the label and the confidence of the result
Definition: person.hpp:19
bool operator==(const person &rhs) const
Equality operator.
std::string name
name
Definition: person.hpp:26
describes a face coordinate (cartesian)
Definition: face.hpp:17
float confidence
confidence of the result
Definition: person.hpp:24