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

Public Member Functions

 openvino_face_detection (std::string const &name)
 
void start (rs2::subdevice_model &model) override
 
 ~openvino_face_detection ()
 
- Public Member Functions inherited from post_processing_filter
std::string const & get_name () const
 
- Public Member Functions inherited from rs2::filter
template<class T >
as () const
 
 filter (std::shared_ptr< rs2_processing_block > block, int queue_size=1)
 
template<class S >
 filter (S processing_function, int queue_size=1)
 
rs2_processing_blockget () const
 
frame_queue get_queue ()
 
template<class T >
bool is () const
 
 operator bool () const
 
rs2::frame process (rs2::frame frame) const override
 
- Public Member Functions inherited from rs2::processing_block
rs2_processing_blockget () const
 
const char * get_info (rs2_camera_info info) const
 
void invoke (frame f) const
 
 operator rs2_options * () const
 
template<class S >
S & operator>> (S &on_frame)
 
 processing_block (std::shared_ptr< rs2_processing_block > block)
 
template<class S >
 processing_block (S processing_function)
 
template<class S >
void start (S on_frame)
 
bool supports (rs2_camera_info info) const
 
- Public Member Functions inherited from rs2::options
float get_option (rs2_option option) const
 
const char * get_option_description (rs2_option option) const
 
const char * get_option_name (rs2_option option) const
 
option_range get_option_range (rs2_option option) const
 
const char * get_option_value_description (rs2_option option, float val) const
 
std::vector< rs2_optionget_supported_options ()
 
bool is_option_read_only (rs2_option option) const
 
optionsoperator= (const options &other)
 
 options (const options &other)
 
void set_option (rs2_option option, float value) const
 
bool supports (rs2_option option) const
 
virtual ~options ()=default
 
- Public Member Functions inherited from rs2::filter_interface
virtual ~filter_interface ()=default
 

Private Member Functions

void on_processing_block_enable (bool e) override
 
void worker_body (rs2::frame f) override
 
void worker_start () override
 

Static Private Member Functions

static float calc_face_attrs (const rs2::video_frame &cf, const rs2::depth_frame &df, cv::Rect const &depth_bbox, float *p_mean_depth)
 

Private Attributes

openvino_helpers::age_gender_detection _age_detector
 
openvino_helpers::object_detection _face_detector
 
openvino_helpers::detected_objects _faces
 
size_t _id = 0
 
InferenceEngine::Core _ie
 
std::shared_ptr< atomic_objects_in_frame_objects
 

Additional Inherited Members

- Protected Member Functions inherited from post_processing_worker_filter
 post_processing_worker_filter (std::string const &name)
 
rs2::frame process_frame (rs2::frame fs) override
 
void release_background_worker ()
 
virtual void worker_end ()
 
 ~post_processing_worker_filter ()
 
- Protected Member Functions inherited from post_processing_filter
std::string get_context (rs2::frame f=rs2::frame()) const
 
void get_trinsics (rs2::video_frame cf, rs2::depth_frame df, rs2_intrinsics &color_intrin, rs2_intrinsics &depth_intrin, rs2_extrinsics &color_extrin, rs2_extrinsics &depth_extrin)
 
bool is_pb_enabled () const
 
 post_processing_filter (std::string const &name)
 
rs2::rect project_rect_to_depth (rs2::rect const &bbox, rs2::depth_frame df, rs2_intrinsics const &color_intrin, rs2_intrinsics const &depth_intrin, rs2_extrinsics const &color_extrin, rs2_extrinsics const &depth_extrin)
 
- Protected Member Functions inherited from rs2::processing_block
void register_simple_option (rs2_option option_id, option_range range)
 
- Protected Member Functions inherited from rs2::options
template<class T >
optionsoperator= (const T &dev)
 
 options (rs2_options *o=nullptr)
 
- Protected Attributes inherited from rs2::filter
frame_queue _queue
 
- Protected Attributes inherited from rs2::processing_block
std::shared_ptr< rs2_processing_block_block
 

Detailed Description

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

Constructor & Destructor Documentation

openvino_face_detection::openvino_face_detection ( std::string const &  name)
inline

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

openvino_face_detection::~openvino_face_detection ( )
inline

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

Member Function Documentation

static float openvino_face_detection::calc_face_attrs ( const rs2::video_frame cf,
const rs2::depth_frame df,
cv::Rect const &  depth_bbox,
float *  p_mean_depth 
)
inlinestaticprivate

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

void openvino_face_detection::on_processing_block_enable ( bool  e)
inlineoverrideprivatevirtual

Reimplemented from post_processing_filter.

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

void openvino_face_detection::start ( rs2::subdevice_model model)
inlineoverridevirtual

Reimplemented from post_processing_worker_filter.

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

void openvino_face_detection::worker_body ( rs2::frame  f)
inlineoverrideprivatevirtual

Implements post_processing_worker_filter.

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

void openvino_face_detection::worker_start ( )
inlineoverrideprivatevirtual

Reimplemented from post_processing_worker_filter.

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

Member Data Documentation

openvino_helpers::age_gender_detection openvino_face_detection::_age_detector
private

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

openvino_helpers::object_detection openvino_face_detection::_face_detector
private

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

openvino_helpers::detected_objects openvino_face_detection::_faces
private

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

size_t openvino_face_detection::_id = 0
private

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

InferenceEngine::Core openvino_face_detection::_ie
private

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

std::shared_ptr< atomic_objects_in_frame > openvino_face_detection::_objects
private

Definition at line 72 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:32