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

#include <ncs.h>

Public Member Functions

void classify ()
 
void detect ()
 
ClassificationResultPtr getClassificationResult ()
 
DetectionResultPtr getDetectionResult ()
 
void loadTensor (const cv::Mat &image)
 
 NCS (int device_index, 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)
 
 ~NCS ()
 

Private Member Functions

void initDevice ()
 
void loadCategories (const std::string &category_file_path)
 
void loadGraph (const std::string &graph_file_path)
 

Static Private Member Functions

static std::string getFileContent (const std::string &filename)
 
static void splitIntoLines (const std::string &content, std::vector< std::string > &lines)
 

Private Attributes

std::vector< std::string > categories_
 
const std::string cnn_type_
 
Device::Ptr device_
 
const int device_index_
 
Graph::Ptr graph_
 
const Device::LogLevel log_level_
 
const std::vector< float > mean_
 
const int network_dimension_
 
Result::Ptr result_
 
const float scale_
 
Tensor::Ptr tensor_
 
const int top_n_
 
void * user_param_
 

Detailed Description

Definition at line 31 of file ncs.h.

Constructor & Destructor Documentation

movidius_ncs_lib::NCS::NCS ( int  device_index,
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 34 of file ncs.cpp.

movidius_ncs_lib::NCS::~NCS ( )

Definition at line 63 of file ncs.cpp.

Member Function Documentation

void movidius_ncs_lib::NCS::classify ( )

Definition at line 67 of file ncs.cpp.

void movidius_ncs_lib::NCS::detect ( )

Definition at line 128 of file ncs.cpp.

ClassificationResultPtr movidius_ncs_lib::NCS::getClassificationResult ( )

Definition at line 197 of file ncs.cpp.

DetectionResultPtr movidius_ncs_lib::NCS::getDetectionResult ( )

Definition at line 202 of file ncs.cpp.

std::string movidius_ncs_lib::NCS::getFileContent ( const std::string &  filename)
staticprivate

Definition at line 253 of file ncs.cpp.

void movidius_ncs_lib::NCS::initDevice ( )
private

Definition at line 207 of file ncs.cpp.

void movidius_ncs_lib::NCS::loadCategories ( const std::string &  category_file_path)
private

Definition at line 221 of file ncs.cpp.

void movidius_ncs_lib::NCS::loadGraph ( const std::string &  graph_file_path)
private

Definition at line 213 of file ncs.cpp.

void movidius_ncs_lib::NCS::loadTensor ( const cv::Mat &  image)

Definition at line 184 of file ncs.cpp.

void movidius_ncs_lib::NCS::splitIntoLines ( const std::string &  content,
std::vector< std::string > &  lines 
)
staticprivate

Definition at line 241 of file ncs.cpp.

Member Data Documentation

std::vector<std::string> movidius_ncs_lib::NCS::categories_
private

Definition at line 67 of file ncs.h.

const std::string movidius_ncs_lib::NCS::cnn_type_
private

Definition at line 66 of file ncs.h.

Device::Ptr movidius_ncs_lib::NCS::device_
private

Definition at line 59 of file ncs.h.

const int movidius_ncs_lib::NCS::device_index_
private

Definition at line 64 of file ncs.h.

Graph::Ptr movidius_ncs_lib::NCS::graph_
private

Definition at line 60 of file ncs.h.

const Device::LogLevel movidius_ncs_lib::NCS::log_level_
private

Definition at line 65 of file ncs.h.

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

Definition at line 69 of file ncs.h.

const int movidius_ncs_lib::NCS::network_dimension_
private

Definition at line 68 of file ncs.h.

Result::Ptr movidius_ncs_lib::NCS::result_
private

Definition at line 62 of file ncs.h.

const float movidius_ncs_lib::NCS::scale_
private

Definition at line 70 of file ncs.h.

Tensor::Ptr movidius_ncs_lib::NCS::tensor_
private

Definition at line 61 of file ncs.h.

const int movidius_ncs_lib::NCS::top_n_
private

Definition at line 71 of file ncs.h.

void* movidius_ncs_lib::NCS::user_param_
private

Definition at line 72 of file ncs.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