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

#include <result.h>

Public Types

using ConstPtr = std::shared_ptr< Result const >
 
using Ptr = std::shared_ptr< Result >
 

Public Member Functions

ClassificationResultPtr getClassificationResult ()
 
DetectionResultPtr getDetectionResult ()
 
void parseSSDResult (const std::vector< float > &result, const std::vector< std::string > categories, int img_width, int img_height)
 
void parseYoloResult (const std::vector< float > &result, const std::vector< std::string > categories, int img_width, int img_height)
 
 Result (const std::string &cnn_type)
 
void setClassificationResult (Item item)
 
void setClassificationResult (float time)
 
void setDetectionResult (ItemInBBox item)
 
void setDetectionResult (float time)
 

Private Member Functions

float IOU (ItemInBBox box1, ItemInBBox box2)
 
void NMS (ItemInBBoxArrayPtr objs_in_bboxes)
 

Private Attributes

ClassificationResultPtr classification_result
 
DetectionResultPtr detection_result
 

Detailed Description

Definition at line 67 of file result.h.

Member Typedef Documentation

using movidius_ncs_lib::Result::ConstPtr = std::shared_ptr<Result const>

Definition at line 71 of file result.h.

using movidius_ncs_lib::Result::Ptr = std::shared_ptr<Result>

Definition at line 70 of file result.h.

Constructor & Destructor Documentation

movidius_ncs_lib::Result::Result ( const std::string &  cnn_type)
explicit

Definition at line 25 of file result.cpp.

Member Function Documentation

ClassificationResultPtr movidius_ncs_lib::Result::getClassificationResult ( )

Definition at line 39 of file result.cpp.

DetectionResultPtr movidius_ncs_lib::Result::getDetectionResult ( )

Definition at line 44 of file result.cpp.

float movidius_ncs_lib::Result::IOU ( ItemInBBox  box1,
ItemInBBox  box2 
)
private

Definition at line 215 of file result.cpp.

void movidius_ncs_lib::Result::NMS ( ItemInBBoxArrayPtr  objs_in_bboxes)
private

Definition at line 177 of file result.cpp.

void movidius_ncs_lib::Result::parseSSDResult ( const std::vector< float > &  result,
const std::vector< std::string >  categories,
int  img_width,
int  img_height 
)

Definition at line 108 of file result.cpp.

void movidius_ncs_lib::Result::parseYoloResult ( const std::vector< float > &  result,
const std::vector< std::string >  categories,
int  img_width,
int  img_height 
)

Definition at line 49 of file result.cpp.

void movidius_ncs_lib::Result::setClassificationResult ( Item  item)

Definition at line 157 of file result.cpp.

void movidius_ncs_lib::Result::setClassificationResult ( float  time)

Definition at line 162 of file result.cpp.

void movidius_ncs_lib::Result::setDetectionResult ( ItemInBBox  item)

Definition at line 167 of file result.cpp.

void movidius_ncs_lib::Result::setDetectionResult ( float  time)

Definition at line 172 of file result.cpp.

Member Data Documentation

ClassificationResultPtr movidius_ncs_lib::Result::classification_result
private

Definition at line 89 of file result.h.

DetectionResultPtr movidius_ncs_lib::Result::detection_result
private

Definition at line 90 of file result.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