JeVois  1.16
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
jevois::dnn Namespace Reference

Namespaces

 network
 
 npu
 
 pipeline
 
 postprocessor
 
 preprocessor
 

Classes

class  Network
 Abstract class to represent a neural network. More...
 
class  NetworkOpenCV
 Wrapper around an OpenCV DNN neural network. More...
 
class  NetworkTPU
 Wrapper around a Coral TPU neural network. More...
 
class  Pipeline
 Neural processing pipeline. More...
 
class  PostProcessor
 Post-Processor for neural network pipeline. More...
 
class  PostProcessorClassify
 Post-Processor for neural network pipeline. More...
 
class  PostProcessorDetect
 Post-Processor for neural network pipeline. More...
 
class  PostProcessorSegment
 Post-Processor for neural network pipeline. More...
 
class  PreProcessor
 Pre-Processor for neural network pipeline. More...
 
class  PreProcessorBlob
 Pre-Processor for neural network pipeline. More...
 

Functions

std::map< int, std::string > readLabelsFile (std::string const &fname)
 Read a label file. More...
 
std::string getLabel (std::map< int, std::string > const &labels, int id)
 Get a label from an id. More...
 
int stringToRGBA (std::string const &label, unsigned char alpha=128)
 Compute a color from a label name. More...
 
void topK (float const *pfProb, float *pfMaxProb, uint32_t *pMaxClass, uint32_t outputCount, uint32_t topNum)
 Get top-k entries and their indices. More...
 
std::string shapestr (cv::Mat const &m)
 Get a string of the form: "nD AxBxC... TYPE" from an n-dimensional cv::Mat with data type TYPE. More...
 
std::string shapestr (TfLiteTensor const *t)
 Get a string of the form: "nD AxBxC... TYPE" from an n-dimensional TfLiteTensor with data type TYPE. More...
 
std::string shapestr (vsi_nn_tensor_attr_t const &attr)
 Get a string of the form: "nD AxBxC... TYPE" from an n-dimensional NPU tensor with data type TYPE. More...
 
std::vector< size_t > strshape (std::string const &str)
 Get a vector of size_t from a string containing AxBxC... More...
 
int tf2cv (TfLiteType t)
 Convert from TensorFlow data type to OpenCV. More...
 
vsi_nn_type_e tf2vsi (TfLiteType t)
 Convert from TensorFlow data type to vsi_nn. More...
 
int vsi2cv (vsi_nn_type_e t)
 Convert from NPU data type to OpenCV. More...
 
void clamp (cv::Rect &r, int width, int height)
 Clamp a rectangle to within given image width and height. More...
 
std::vector< vsi_nn_tensor_attr_t > parseTensorSpecs (std::string const &specs)
 Parse tensor specification. More...
 
cv::Size attrsize (vsi_nn_tensor_attr_t const &attr)
 Get a tensor's size in cv::Size format. More...
 
std::string attrstr (vsi_nn_tensor_attr_t const &attr)
 Get a string describing the specs of a tensor. More...
 
vsi_nn_tensor_attr_t tensorattr (TfLiteTensor const *t)
 Get tensor shape and type attributes for a TensorFlow Lite tensor. More...
 
void softmax (float const *input, size_t n, float fac, float *output)
 Apply softmax to a float vector. More...