-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRecogModel_8h_source.html
83 lines (81 loc) · 7.48 KB
/
RecogModel_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>kNOw SIGN: src/RecogModel.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">kNOw SIGN
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">RecogModel.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="RecogModel_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#include <opencv2/opencv.hpp></span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include <opencv2/dnn/dnn.hpp></span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include <iostream></span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classLetterRecog.html"> 13</a></span> <span class="keyword">class </span><a class="code" href="classLetterRecog.html">LetterRecog</a> {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <a class="code" href="classLetterRecog.html#ac191e80125195253af5350e42c277d55">LetterRecog</a>(<span class="keyword">const</span> std::string &path);</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  cv::Point2f <a class="code" href="classLetterRecog.html#af4a297503603cf321413fa197d5e7141">forward</a>(cv::Mat &src);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classLetterRecog.html#a237c503271a73577f62e88721560337a"> 28</a></span>  cv::dnn::Net <a class="code" href="classLetterRecog.html#a237c503271a73577f62e88721560337a">net</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">void</span> <a class="code" href="classLetterRecog.html#a73048e6410736d554e1a6ffb7a106107">loadModel</a>(<span class="keyword">const</span> std::string &path);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordtype">void</span> <a class="code" href="classLetterRecog.html#ad45f266ce9e55459ffc607938202185d">Mat_Normalization</a>(cv::Mat &matrix);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> };</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="ttc" id="classLetterRecog_html_ac191e80125195253af5350e42c277d55"><div class="ttname"><a href="classLetterRecog.html#ac191e80125195253af5350e42c277d55">LetterRecog::LetterRecog</a></div><div class="ttdeci">LetterRecog(const std::string &path)</div><div class="ttdoc">Model loading and setting the parameters. </div><div class="ttdef"><b>Definition:</b> RecogModel.cpp:3</div></div>
<div class="ttc" id="classLetterRecog_html_ad45f266ce9e55459ffc607938202185d"><div class="ttname"><a href="classLetterRecog.html#ad45f266ce9e55459ffc607938202185d">LetterRecog::Mat_Normalization</a></div><div class="ttdeci">void Mat_Normalization(cv::Mat &matrix)</div><div class="ttdoc">Normalize the incoming frame. </div><div class="ttdef"><b>Definition:</b> RecogModel.cpp:14</div></div>
<div class="ttc" id="classLetterRecog_html_a73048e6410736d554e1a6ffb7a106107"><div class="ttname"><a href="classLetterRecog.html#a73048e6410736d554e1a6ffb7a106107">LetterRecog::loadModel</a></div><div class="ttdeci">void loadModel(const std::string &path)</div><div class="ttdoc">Load the ONNX model. </div><div class="ttdef"><b>Definition:</b> RecogModel.cpp:9</div></div>
<div class="ttc" id="classLetterRecog_html"><div class="ttname"><a href="classLetterRecog.html">LetterRecog</a></div><div class="ttdoc">Class for sign language recognition. An ONNX model is loaded to be used for inference to recognize si...</div><div class="ttdef"><b>Definition:</b> RecogModel.h:13</div></div>
<div class="ttc" id="classLetterRecog_html_a237c503271a73577f62e88721560337a"><div class="ttname"><a href="classLetterRecog.html#a237c503271a73577f62e88721560337a">LetterRecog::net</a></div><div class="ttdeci">cv::dnn::Net net</div><div class="ttdef"><b>Definition:</b> RecogModel.h:28</div></div>
<div class="ttc" id="classLetterRecog_html_af4a297503603cf321413fa197d5e7141"><div class="ttname"><a href="classLetterRecog.html#af4a297503603cf321413fa197d5e7141">LetterRecog::forward</a></div><div class="ttdeci">cv::Point2f forward(cv::Mat &src)</div><div class="ttdoc">Pass the frame to the model for inference. </div><div class="ttdef"><b>Definition:</b> RecogModel.cpp:19</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>