Classes | Public Member Functions | Private Attributes | List of all members
openvino_helpers::object_detection Struct Reference

#include <object-detection.h>

Inheritance diagram for openvino_helpers::object_detection:
Inheritance graph


struct  Result

Public Member Functions

void enqueue (const cv::Mat &frame)
std::vector< Resultfetch_results ()
float get_height () const
float get_width () const
 object_detection (const std::string &pathToModel, double detectionThreshold, bool isAsync=true, int maxBatch=1, bool isBatchDynamic=false, bool doRawOutputMessages=false)
InferenceEngine::CNNNetwork read_network () override
void submit_request () override
- Public Member Functions inherited from openvino_helpers::base_detection
 base_detection (std::string topoName, const std::string &pathToModel, int maxBatch, bool isBatchDynamic, bool isAsync, bool doRawOutputMessages)
bool enabled () const
void load_into (InferenceEngine::Core &ie, const std::string &deviceName)
InferenceEngine::ExecutableNetwork * operator-> ()
virtual void wait ()
virtual ~base_detection ()=default

Private Attributes

double _detection_threshold
float _height
std::string _im_info_name
size_t _im_info_size
size_t _input_height
std::string _input_layer_name
size_t _input_width
size_t _max_results
int _n_enqued_frames
std::string _output_layer_name
float _width

Additional Inherited Members

- Public Attributes inherited from openvino_helpers::base_detection
bool _enabled
InferenceEngine::InferRequest::Ptr _request
const bool doRawOutputMessages
bool enablingChecked
const bool isAsync
bool isBatchDynamic
const size_t maxBatch
InferenceEngine::ExecutableNetwork net
std::string pathToModel
std::string topoName

Detailed Description

Definition at line 17 of file object-detection.h.

Constructor & Destructor Documentation

openvino_helpers::object_detection::object_detection ( const std::string pathToModel,
double  detectionThreshold,
bool  isAsync = true,
int  maxBatch = 1,
bool  isBatchDynamic = false,
bool  doRawOutputMessages = false 

Definition at line 18 of file object-detection.cpp.

Member Function Documentation

void openvino_helpers::object_detection::enqueue ( const cv::Mat &  frame)

Definition at line 42 of file object-detection.cpp.

std::vector< object_detection::Result > openvino_helpers::object_detection::fetch_results ( )

Definition at line 159 of file object-detection.cpp.

float openvino_helpers::object_detection::get_height ( ) const

Definition at line 57 of file object-detection.h.

float openvino_helpers::object_detection::get_width ( ) const

Definition at line 56 of file object-detection.h.

CNNNetwork openvino_helpers::object_detection::read_network ( )

Read network model

Set batch size

Extract model name and load its weights

Implements openvino_helpers::base_detection.

Definition at line 72 of file object-detection.cpp.

void openvino_helpers::object_detection::submit_request ( )

Reimplemented from openvino_helpers::base_detection.

Definition at line 33 of file object-detection.cpp.

Member Data Documentation

double openvino_helpers::object_detection::_detection_threshold

Definition at line 29 of file object-detection.h.

float openvino_helpers::object_detection::_height

Definition at line 41 of file object-detection.h.

std::string openvino_helpers::object_detection::_im_info_name

Definition at line 35 of file object-detection.h.

size_t openvino_helpers::object_detection::_im_info_size

Definition at line 36 of file object-detection.h.

size_t openvino_helpers::object_detection::_input_height

Definition at line 34 of file object-detection.h.

std::string openvino_helpers::object_detection::_input_layer_name

Definition at line 32 of file object-detection.h.

size_t openvino_helpers::object_detection::_input_width

Definition at line 33 of file object-detection.h.

size_t openvino_helpers::object_detection::_max_results

Definition at line 38 of file object-detection.h.

int openvino_helpers::object_detection::_n_enqued_frames

Definition at line 39 of file object-detection.h.

std::string openvino_helpers::object_detection::_output_layer_name

Definition at line 37 of file object-detection.h.

float openvino_helpers::object_detection::_width

Definition at line 40 of file object-detection.h.

The documentation for this struct was generated from the following files:

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