📄 collect_chars.html
字号:
<html><head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1"> <title>collect_chars.m</title><link rel="stylesheet" type="text/css" href="../../../m-syntax.css"></head><body><code><span class=defun_kw>function</span> <span class=defun_name>collect_chars</span>(<span class=defun_in> fname </span>)
<br><span class=h1>% COLLECT_CHARS Collect training examples for OCR.
</span><br><span class=help>%
</span><br><span class=help>% <span class=help_field>Synopsis:</span></span><br><span class=help>% collect_chars( fname )
</span><br><span class=help>%
</span><br><span class=help>% <span class=help_field>Description:</span></span><br><span class=help>% It calls function that allows a user to draw examples
</span><br><span class=help>% of characters. The drawn characters are saved to the
</span><br><span class=help>% file fname whenever the middle mouse button is pressed.
</span><br><span class=help>%
</span><br><span class=help>% <span class=help_field>Input:</span></span><br><span class=help>% fname [string] The filename to which the characters are saved.
</span><br><span class=help>%
</span><br><span class=help>% <span class=help_field>Example:</span></span><br><span class=help>% Proceed as follows:
</span><br><span class=help>% 1) run function
</span><br><span class=help>% collect_chars('my_examples_1');
</span><br><span class=help>% 2) draw examples of numeral '1' (fill up the whole form); </span><br><span class=help>% left button -> draw, middle button -> save it to file, </span><br><span class=help>% right -> erase.
</span><br><span class=help>% 3) repeate the points 1) and 2) for numerals from 2 to 9, 0
</span><br><span class=help>% (use label 10 for numeral 0, i.e., collect_chars('my_examples_10'))
</span><br><span class=help>%
</span><br><hr><br><span class=help1>% <span class=help1_field>(c)</span> Statistical Pattern Recognition Toolbox, (C) 1999-2003,
</span><br><span class=help1>% Written by Vojtech Franc and Vaclav Hlavac,
</span><br><span class=help1>% <a href="http://www.cvut.cz">Czech Technical University Prague</a>,
</span><br><span class=help1>% <a href="http://www.feld.cvut.cz">Faculty of Electrical engineering</a>,
</span><br><span class=help1>% <a href="http://cmp.felk.cvut.cz">Center for Machine Perception</a>
</span><br><br><span class=help1>% <span class=help1_field>Modifications:</span>
</span><br><span class=help1>% 9-sep-03, VF
</span><br><br><hr><span class=type>global</span> FileName;
<br>FileName = fname;
<br>
<br>mpaper( {<span class=quotes>'fun'</span>,<span class=quotes>'save_chars'</span>,<span class=quotes>'width'</span>,16,<span class=quotes>'height'</span>,16});
<br>
<br><span class=comment>%EOF</span><br></code>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -