SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma::utils Namespace Reference

Functions

std::vector< ma_anchor_stride_tgenerateAnchorStrides (size_t input_size, std::vector< size_t > strides)
 
std::vector< std::vector< ma_pt2f_t > > generateAnchorMatrix (const std::vector< ma_anchor_stride_t > &anchor_strides, float shift_right, float shift_down)
 
std::string base64_decode (const std::string &in)
 
ma_err_t base64_encode (const unsigned char *in, int in_len, char *out, int *out_len)
 
void nms (std::forward_list< ma_bbox_t > &bboxes, float threshold_iou, float threshold_score, bool soft_nms, bool multi_target)
 
void nms (std::forward_list< ma_bbox_ext_t > &bboxes, float threshold_iou, float threshold_score, bool soft_nms, bool multi_target)
 
void nms (std::forward_list< ma_keypoint3f_t > &decodings, const float iou_thr, bool should_nms_cross_classes)
 
template<typename T , std::enable_if_t< std::is_base_of< ma_bbox_t, T >::value, bool > = true>
float compute_iou (const T &box1, const T &box2)
 

Function Documentation

◆ base64_decode()

std::string ma::utils::base64_decode ( const std::string &  in)
Here is the caller graph for this function:

◆ base64_encode()

ma_err_t ma::utils::base64_encode ( const unsigned char *  in,
int  in_len,
char *  out,
int *  out_len 
)
Here is the caller graph for this function:

◆ compute_iou()

template<typename T , std::enable_if_t< std::is_base_of< ma_bbox_t, T >::value, bool > = true>
float ma::utils::compute_iou ( const T &  box1,
const T &  box2 
)
inline
Here is the caller graph for this function:

◆ generateAnchorMatrix()

std::vector< std::vector< ma_pt2f_t > > ma::utils::generateAnchorMatrix ( const std::vector< ma_anchor_stride_t > &  anchor_strides,
float  shift_right,
float  shift_down 
)
Here is the caller graph for this function:

◆ generateAnchorStrides()

std::vector< ma_anchor_stride_t > ma::utils::generateAnchorStrides ( size_t  input_size,
std::vector< size_t >  strides 
)
Here is the caller graph for this function:

◆ nms() [1/3]

void ma::utils::nms ( std::forward_list< ma_bbox_ext_t > &  bboxes,
float  threshold_iou,
float  threshold_score,
bool  soft_nms,
bool  multi_target 
)

◆ nms() [2/3]

void ma::utils::nms ( std::forward_list< ma_bbox_t > &  bboxes,
float  threshold_iou,
float  threshold_score,
bool  soft_nms,
bool  multi_target 
)
Here is the caller graph for this function:

◆ nms() [3/3]

void ma::utils::nms ( std::forward_list< ma_keypoint3f_t > &  decodings,
const float  iou_thr,
bool  should_nms_cross_classes 
)
Here is the call graph for this function: