kNOw SIGN
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LetterRecog Class Reference

Class for sign language recognition. An ONNX model is loaded to be used for inference to recognize sign language alphabet and then the incoming frame is normalized. Next, the frame is forwarded to the model to extract features and output the inference result. More...

#include <RecogModel.h>

Public Member Functions

 LetterRecog (const std::string &path)
 Model loading and setting the parameters. More...
 
cv::Point2f forward (cv::Mat &src)
 Pass the frame to the model for inference. More...
 

Private Member Functions

void loadModel (const std::string &path)
 Load the ONNX model. More...
 
void Mat_Normalization (cv::Mat &matrix)
 Normalize the incoming frame. More...
 

Private Attributes

cv::dnn::Net net
 

Detailed Description

Class for sign language recognition. An ONNX model is loaded to be used for inference to recognize sign language alphabet and then the incoming frame is normalized. Next, the frame is forwarded to the model to extract features and output the inference result.

Constructor & Destructor Documentation

◆ LetterRecog()

LetterRecog::LetterRecog ( const std::string &  path)

Model loading and setting the parameters.

Member Function Documentation

◆ forward()

cv::Point2f LetterRecog::forward ( cv::Mat &  src)

Pass the frame to the model for inference.

◆ loadModel()

void LetterRecog::loadModel ( const std::string &  path)
private

Load the ONNX model.

◆ Mat_Normalization()

void LetterRecog::Mat_Normalization ( cv::Mat &  matrix)
private

Normalize the incoming frame.

Member Data Documentation

◆ net

cv::dnn::Net LetterRecog::net
private

The documentation for this class was generated from the following files: