Public Types | Public Member Functions | Private Attributes | List of all members
detected_face Class Reference
Inheritance diagram for detected_face:
Inheritance graph
[legend]

Public Types

using ptr = std::shared_ptr< detected_face >
 
- Public Types inherited from openvino_helpers::detected_object
using ptr = std::shared_ptr< detected_object >
 

Public Member Functions

 detected_face (size_t id, cv::Rect const &location, float male_prob, float age, cv::Rect const &depth_location=cv::Rect{}, float intensity=1, float depth=0)
 
int get_age () const
 
bool is_female () const
 
bool is_male () const
 
void update_age (float value)
 
void update_gender (float value)
 
- Public Member Functions inherited from openvino_helpers::detected_object
 detected_object (size_t id, std::string const &label, cv::Rect const &location, cv::Rect const &depth_location=cv::Rect{}, float intensity=1, float depth=0)
 
float get_depth () const
 
cv::Rect const & get_depth_location () const
 
size_t get_id () const
 
float get_intensity () const
 
std::string const & get_label () const
 
cv::Rect const & get_location () const
 
void move (cv::Rect const &location, cv::Rect const &depth_location=cv::Rect{}, float intensity=1, float depth=0)
 
virtual ~detected_object ()
 

Private Attributes

float _age
 
float _female_score
 
float _male_score
 

Detailed Description

Definition at line 18 of file openvino-face-detection.cpp.

Member Typedef Documentation

using detected_face::ptr = std::shared_ptr< detected_face >

Definition at line 24 of file openvino-face-detection.cpp.

Constructor & Destructor Documentation

detected_face::detected_face ( size_t  id,
cv::Rect const &  location,
float  male_prob,
float  age,
cv::Rect const &  depth_location = cv::Rect{},
float  intensity = 1,
float  depth = 0 
)
inlineexplicit

Definition at line 26 of file openvino-face-detection.cpp.

Member Function Documentation

int detected_face::get_age ( ) const
inline

Definition at line 56 of file openvino-face-detection.cpp.

bool detected_face::is_female ( ) const
inline

Definition at line 58 of file openvino-face-detection.cpp.

bool detected_face::is_male ( ) const
inline

Definition at line 57 of file openvino-face-detection.cpp.

void detected_face::update_age ( float  value)
inline

Definition at line 40 of file openvino-face-detection.cpp.

void detected_face::update_gender ( float  value)
inline

Definition at line 45 of file openvino-face-detection.cpp.

Member Data Documentation

float detected_face::_age
private

Definition at line 20 of file openvino-face-detection.cpp.

float detected_face::_female_score
private

Definition at line 21 of file openvino-face-detection.cpp.

float detected_face::_male_score
private

Definition at line 21 of file openvino-face-detection.cpp.


The documentation for this class was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31