17 #ifndef MOVIDIUS_NCS_LIB_NCS_H 18 #define MOVIDIUS_NCS_LIB_NCS_H 22 #include <opencv2/opencv.hpp> 36 const std::string& cnn_type,
37 const std::string& graph_file_path,
38 const std::string& category_file_path,
39 const int network_dimension,
40 const std::vector<float>& mean,
53 void loadGraph(
const std::string& graph_file_path);
56 std::vector<std::string>& lines);
75 #endif // MOVIDIUS_NCS_LIB_NCS_H std::shared_ptr< Result > Ptr
const std::string cnn_type_
std::shared_ptr< Graph > Ptr
std::shared_ptr< DetectionResult > DetectionResultPtr
const std::vector< float > mean_
void loadGraph(const std::string &graph_file_path)
void loadCategories(const std::string &category_file_path)
static std::string getFileContent(const std::string &filename)
std::shared_ptr< Tensor > Ptr
DetectionResultPtr getDetectionResult()
std::shared_ptr< Device > Ptr
static void splitIntoLines(const std::string &content, std::vector< std::string > &lines)
std::vector< std::string > categories_
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)
std::shared_ptr< ClassificationResult > ClassificationResultPtr
const int network_dimension_
ClassificationResultPtr getClassificationResult()
void loadTensor(const cv::Mat &image)
const Device::LogLevel log_level_