kNOw SIGN
RecogModel.h
Go to the documentation of this file.
1 #include <opencv2/opencv.hpp>
2 #include <opencv2/dnn/dnn.hpp>
3 #include <iostream>
4 
13 class LetterRecog {
14  public:
20  LetterRecog(const std::string &path);
26  cv::Point2f forward(cv::Mat &src);
27  private:
28  cv::dnn::Net net;
34  void loadModel(const std::string &path);
35 
41  void Mat_Normalization(cv::Mat &matrix);
42 };
43 
44 
LetterRecog(const std::string &path)
Model loading and setting the parameters.
Definition: RecogModel.cpp:3
void Mat_Normalization(cv::Mat &matrix)
Normalize the incoming frame.
Definition: RecogModel.cpp:14
void loadModel(const std::string &path)
Load the ONNX model.
Definition: RecogModel.cpp:9
Class for sign language recognition. An ONNX model is loaded to be used for inference to recognize si...
Definition: RecogModel.h:13
cv::dnn::Net net
Definition: RecogModel.h:28
cv::Point2f forward(cv::Mat &src)
Pass the frame to the model for inference.
Definition: RecogModel.cpp:19