Public Member Functions | Private Member Functions | Private Attributes | List of all members
movidius_ncs_lib::NCSManager Class Reference

#include <ncs_manager.h>

Public Member Functions

std::vector< ClassificationResultPtrclassifyImage (const std::vector< std::string > &images)
 
void classifyStream (const cv::Mat &image, FUNP_C cbGetClassificationResult, const sensor_msgs::ImageConstPtr &image_msg)
 
std::vector< DetectionResultPtrdetectImage (const std::vector< std::string > &images)
 
void detectStream (const cv::Mat &image, FUNP_D cbGetDetectionResult, const sensor_msgs::ImageConstPtr &image_msg)
 
 NCSManager (const int &max_device_number, const int &device_index, const Device::LogLevel &log_level, const std::string &cnn_type, const std::string &graph_file_path, const std::string &category_file_path, const int &network_dimension, const std::vector< float > &mean, const float &scale, const int &top_n)
 
void startThreads ()
 
 ~NCSManager ()
 

Private Member Functions

void deviceThread (int device_index)
 
void initDeviceManager ()
 

Private Attributes

const std::string category_file_path_
 
const std::string cnn_type_
 
int device_count_
 
const std::string graph_file_path_
 
std::vector< ImageFrameimage_list_
 
const Device::LogLevel log_level_
 
const int max_device_number_
 
const std::vector< float > mean_
 
std::mutex mtx_
 
std::vector< std::shared_ptr< movidius_ncs_lib::NCS > > ncs_handle_list_
 
const int network_dimension_
 
FUNP_C p_c_
 
FUNP_D p_d_
 
const float scale_
 
const int start_device_index_
 
std::vector< std::thread > threads_
 
const int top_n_
 
void * user_param_
 

Detailed Description

Definition at line 46 of file ncs_manager.h.

Constructor & Destructor Documentation

movidius_ncs_lib::NCSManager::NCSManager ( const int &  max_device_number,
const int &  device_index,
const Device::LogLevel log_level,
const std::string &  cnn_type,
const std::string &  graph_file_path,
const std::string &  category_file_path,
const int &  network_dimension,
const std::vector< float > &  mean,
const float &  scale,
const int &  top_n 
)

Definition at line 25 of file ncs_manager.cpp.

movidius_ncs_lib::NCSManager::~NCSManager ( )

Definition at line 45 of file ncs_manager.cpp.

Member Function Documentation

std::vector< ClassificationResultPtr > movidius_ncs_lib::NCSManager::classifyImage ( const std::vector< std::string > &  images)

Definition at line 136 of file ncs_manager.cpp.

void movidius_ncs_lib::NCSManager::classifyStream ( const cv::Mat &  image,
FUNP_C  cbGetClassificationResult,
const sensor_msgs::ImageConstPtr &  image_msg 
)

Definition at line 204 of file ncs_manager.cpp.

std::vector< DetectionResultPtr > movidius_ncs_lib::NCSManager::detectImage ( const std::vector< std::string > &  images)

Definition at line 171 of file ncs_manager.cpp.

void movidius_ncs_lib::NCSManager::detectStream ( const cv::Mat &  image,
FUNP_D  cbGetDetectionResult,
const sensor_msgs::ImageConstPtr &  image_msg 
)

Definition at line 222 of file ncs_manager.cpp.

void movidius_ncs_lib::NCSManager::deviceThread ( int  device_index)
private

Definition at line 78 of file ncs_manager.cpp.

void movidius_ncs_lib::NCSManager::initDeviceManager ( )
private

Definition at line 49 of file ncs_manager.cpp.

void movidius_ncs_lib::NCSManager::startThreads ( )

Definition at line 124 of file ncs_manager.cpp.

Member Data Documentation

const std::string movidius_ncs_lib::NCSManager::category_file_path_
private

Definition at line 72 of file ncs_manager.h.

const std::string movidius_ncs_lib::NCSManager::cnn_type_
private

Definition at line 70 of file ncs_manager.h.

int movidius_ncs_lib::NCSManager::device_count_
private

Definition at line 80 of file ncs_manager.h.

const std::string movidius_ncs_lib::NCSManager::graph_file_path_
private

Definition at line 71 of file ncs_manager.h.

std::vector<ImageFrame> movidius_ncs_lib::NCSManager::image_list_
private

Definition at line 85 of file ncs_manager.h.

const Device::LogLevel movidius_ncs_lib::NCSManager::log_level_
private

Definition at line 69 of file ncs_manager.h.

const int movidius_ncs_lib::NCSManager::max_device_number_
private

Definition at line 67 of file ncs_manager.h.

const std::vector<float> movidius_ncs_lib::NCSManager::mean_
private

Definition at line 74 of file ncs_manager.h.

std::mutex movidius_ncs_lib::NCSManager::mtx_
private

Definition at line 86 of file ncs_manager.h.

std::vector<std::shared_ptr<movidius_ncs_lib::NCS> > movidius_ncs_lib::NCSManager::ncs_handle_list_
private

Definition at line 79 of file ncs_manager.h.

const int movidius_ncs_lib::NCSManager::network_dimension_
private

Definition at line 73 of file ncs_manager.h.

FUNP_C movidius_ncs_lib::NCSManager::p_c_
private

Definition at line 82 of file ncs_manager.h.

FUNP_D movidius_ncs_lib::NCSManager::p_d_
private

Definition at line 83 of file ncs_manager.h.

const float movidius_ncs_lib::NCSManager::scale_
private

Definition at line 75 of file ncs_manager.h.

const int movidius_ncs_lib::NCSManager::start_device_index_
private

Definition at line 68 of file ncs_manager.h.

std::vector<std::thread> movidius_ncs_lib::NCSManager::threads_
private

Definition at line 87 of file ncs_manager.h.

const int movidius_ncs_lib::NCSManager::top_n_
private

Definition at line 76 of file ncs_manager.h.

void* movidius_ncs_lib::NCSManager::user_param_
private

Definition at line 77 of file ncs_manager.h.


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


movidius_ncs_lib
Author(s): Xiaojun Huang
autogenerated on Mon Jun 10 2019 14:11:23