⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_c_ocr_example_image_view.html

📁 基于symbian 平台 ocr 示例程序
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>COcrExampleImageView Class Reference</title><link href="style.css" rel="stylesheet" type="text/css"></head><table border="0" width="100%" height="8" bgcolor="#eeeeee"><tr> <td width="100%" height="1"><b><font size="2" color="#000000" face="Arial, Helvetica, sans-serif"><strong><a name=Top></a>S60 5th Edition SDK v0.9 </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table><!-- Generated by Doxygen 1.4.5 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li><a href="namespaces.html"><span>Namespaces</span></a></li>    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>COcrExampleImageView Class Reference</h1><!-- doxytag: class="COcrExampleImageView" --><!-- doxytag: inherits="CAknView,MAknBackgroundProcess,MOCREngineObserver,NOCRUtils::MImageHandlerCallback" --><code>#include &lt;<a class="el" href="_ocr_example_image_view_8h-source.html">OcrExampleImageView.h</a>&gt;</code><p><p>Inheritance diagram for COcrExampleImageView:<p><center><img src="class_c_ocr_example_image_view.png" usemap="#COcrExampleImageView_map" border="0" alt=""></center><map name="COcrExampleImageView_map"><area href="class_n_o_c_r_utils_1_1_m_image_handler_callback.html" alt="NOCRUtils::MImageHandlerCallback" shape="rect" coords="675,0,890,24"></map><a href="class_c_ocr_example_image_view-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>COcrExampleImageView implements the main view of the application COcrExampleImageView is an observer for following objects:<ul><li>ImageHandler: to receive notifications of asynchronous image loading and scaling operations, and</li><li>OCREngine: to receive notifications of asynchronous image analyze and recognize operations</li><li>waitnote </li></ul><p><p>Definition at line <a class="el" href="_ocr_example_image_view_8h-source.html#l00036">36</a> of file <a class="el" href="_ocr_example_image_view_8h-source.html">OcrExampleImageView.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#7d81a8b96f59b43df326cbfa61435b3a">~COcrExampleImageView</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#04bbd31ba9f2f99b17c69030e5cf96cb">HandleSizeChange</a> ()</td></tr><tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_ocr_example_image_view.html">COcrExampleImageView</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#301a5b741381c9ed497a7d8f7f10f782">NewL</a> (<a class="el" href="class_t_ocr_example_settings_data.html">TOcrExampleSettingsData</a> &amp;aSettings)</td></tr><tr><td colspan="2"><br><h2>Private Types</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ec">TState</a> { <a class="el" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ec553253ec36b6a826ce4923c5dcf95a12">EInit</a>, <a class="el" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ecc7b1c96e80ea74eab865de4fc9f448ea">EImageOpened</a>, <a class="el" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ec9a6601df59f457cc199cb4794fdbbd7b">EImageAnalyzed</a>, <a class="el" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ecc69c8b8ac41d2c6e9ecc88e4b6d684f9">EImageRecognized</a> }</td></tr><tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TUid&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#a9048c3ff4f288da47ab9b2de1833749">Id</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#a682d228622cea7790645ce10f591242">HandleCommandL</a> (TInt aCommand)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#366b9bdc3feb98c2fa8b54b12561be7f">DoActivateL</a> (const TVwsViewId &amp;aPrevViewId, TUid aCustomMessageId, const TDesC8 &amp;aCustomMessage)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#8dc3833be5508368363dce246e04a18f">DoDeactivate</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#3ae77c2aed5e1270a13c14bd5aa415fe">DynInitMenuPaneL</a> (TInt aResourceId, CEikMenuPane *aMenuPane)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#09a548f36fef23b5490ecdf57e2bdd1a">ImageOperationCompleteL</a> (TInt aError)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#5cf1fbd18ad3ec441cedf31760963484">RecognizeBlockComplete</a> (TInt aError, const TOCRTextRgnInfo *aBlocks, const TInt aBlockCount)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#a05e98e6d1efee3a5bcfb61c292a8e01">RecognizeSpecialRegionComplete</a> (TInt aError, const TOCRTextRgnInfo *aBlocks, const TInt aBlockCount)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#c8b0731eeda182f92be8229b23165d4b">RecognizeComplete</a> (TInt aError, const TOCRTextRgnInfo *aBlocks, const TInt aBlockCount)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#41758248db42aec6d42d6a54b13d36b8">LayoutComplete</a> (TInt aError, const TOCRBlockInfo *aBlocks, const TInt aBlockCount)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#587336a65e37fe2b8b4fa86aad2b7f4f">RecognizeProcess</a> (const TUint aPercent)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#3a8345b1114dbca51373caaf97b3bd53">DialogDismissedL</a> (TInt)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#34fc7596f70aed6415e69cc09bec0968">IsProcessDone</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#9fadb422c50df5ad198f645d92cf408c">ProcessFinished</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#2b047861e8a98fc470be28703b1bd9d0">StepL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#7cfaacbb7bdeefcb6bb02114fea43f70">COcrExampleImageView</a> (<a class="el" href="class_t_ocr_example_settings_data.html">TOcrExampleSettingsData</a> &amp;aSettings)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#9ce34ba0b947863222da3c63d0481044">ConstructL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#deb0a73c2e8490684e18cea6caa9af23">AnalyzeImageLayoutL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#72da075f30fbcf471e8af996ae74f499">RecognizeImageL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#a31d77d219f1dc7b797c06d4356fefd9">RecognizeBlockL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#fac0e83d0111d471ebf4deffd9f87bc2">RecognizeSpecialRegionL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#7423311c7032dc3fadd7f0613745d010">LayoutCompleteL</a> (TInt aError, const TOCRBlockInfo *aBlocks, const TInt aBlockCount)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#4149f35a8fe71a3b10562faddd824986">RecognizeDoneL</a> (TInt aError, const TOCRTextRgnInfo *aBlocks, const TInt aBlockCount)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#b32756a8fbffada316fc03085c4d0d52">InitializeOCREngineL</a> (OCREngineFactory::TEngineType aEngineType)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#b815b1b6d046be197859ca009a28a50a">ReleaseOCREngine</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#2003512dd8696219849f58d8ae1e3c37">OpenImageL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#7561e6dda22ddb24f4b8c58d0229ebc5">CloseImage</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#5d97b3005d7025da3ce0f8f008328e43">DisplayWarningL</a> (const TDesC &amp;aDescr, TInt aErr) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#41df03d3f25580af9a93f5af442ce677">ExecuteWaitNoteL</a> ()</td></tr><tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_c_ocr_example_image_container.html">COcrExampleImageContainer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_t_screen_update_data.html">TScreenUpdateData</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#e72899bf23845a10c6b7559c2e896baa">iData</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">RFs&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#7b548225db36c87401243f1080bbd0e8">iFs</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">CFbsBitmap *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#9eb6fa3188758350a81b83400892e787">iBitMap</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_n_o_c_r_utils_1_1_c_image_handler.html">NOCRUtils::CImageHandler</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#56132cb68e64726ad0658571e44e9644">iHandler</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">MOCREngineInterface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#c22846eecaea51cfb97699603e4227b3">iEngine</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_t_ocr_example_settings_data.html">TOcrExampleSettingsData</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#59c39b7488b211d41b665791026c2f7f">iSettings</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ec">TState</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#63052a309baec315239b427aa7647b76">iState</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#b7e54289c236dbd01581864006b4069f">iCrosshairEnabled</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_image_view.html#a7f5826c4c1c2cbee83739946a8a013b">iBackgroundTaskDone</a></td></tr></table><hr><h2>Member Enumeration Documentation</h2><a class="anchor" name="8e0e9e3030ee220d737a3e9e733390ec"></a><!-- doxytag: member="COcrExampleImageView::TState" ref="8e0e9e3030ee220d737a3e9e733390ec" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">enum <a class="el" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ec">COcrExampleImageView::TState</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>enumeration values used for indicating in which state the application currently is. <dl compact><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em><a class="anchor" name="8e0e9e3030ee220d737a3e9e733390ec553253ec36b6a826ce4923c5dcf95a12"></a><!-- doxytag: member="EInit" ref="8e0e9e3030ee220d737a3e9e733390ec553253ec36b6a826ce4923c5dcf95a12" args="" -->EInit</em>&nbsp;</td><td>appl started; image not loaded </td></tr><tr><td valign="top"><em><a class="anchor" name="8e0e9e3030ee220d737a3e9e733390ecc7b1c96e80ea74eab865de4fc9f448ea"></a><!-- doxytag: member="EImageOpened" ref="8e0e9e3030ee220d737a3e9e733390ecc7b1c96e80ea74eab865de4fc9f448ea" args="" -->EImageOpened</em>&nbsp;</td><td>image loaded </td></tr><tr><td valign="top"><em><a class="anchor" name="8e0e9e3030ee220d737a3e9e733390ec9a6601df59f457cc199cb4794fdbbd7b"></a><!-- doxytag: member="EImageAnalyzed" ref="8e0e9e3030ee220d737a3e9e733390ec9a6601df59f457cc199cb4794fdbbd7b" args="" -->EImageAnalyzed</em>&nbsp;</td><td>layout analysis done </td></tr><tr><td valign="top"><em><a class="anchor" name="8e0e9e3030ee220d737a3e9e733390ecc69c8b8ac41d2c6e9ecc88e4b6d684f9"></a><!-- doxytag: member="EImageRecognized" ref="8e0e9e3030ee220d737a3e9e733390ecc69c8b8ac41d2c6e9ecc88e4b6d684f9" args="" -->EImageRecognized</em>&nbsp;</td><td>recognition done </td></tr></table></dl><p>Definition at line <a class="el" href="_ocr_example_image_view_8h-source.html#l00289">289</a> of file <a class="el" href="_ocr_example_image_view_8h-source.html">OcrExampleImageView.h</a>.<div class="fragment"><pre class="fragment"><a name="l00290"></a>00290             {<a name="l00291"></a>00291             <a class="code" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ec553253ec36b6a826ce4923c5dcf95a12">EInit</a>,              <span class="comment">///&lt; appl started; image not loaded</span><a name="l00292"></a>00292 <span class="comment"></span>            <a class="code" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ecc7b1c96e80ea74eab865de4fc9f448ea">EImageOpened</a>,       <span class="comment">///&lt; image loaded</span><a name="l00293"></a>00293 <span class="comment"></span>            <a class="code" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ec9a6601df59f457cc199cb4794fdbbd7b">EImageAnalyzed</a>,     <span class="comment">///&lt; layout analysis done</span><a name="l00294"></a>00294 <span class="comment"></span>            <a class="code" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ecc69c8b8ac41d2c6e9ecc88e4b6d684f9">EImageRecognized</a>    <span class="comment">///&lt; recognition done</span><a name="l00295"></a>00295 <span class="comment"></span>            };</pre></div><p>    </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="7d81a8b96f59b43df326cbfa61435b3a"></a><!-- doxytag: member="COcrExampleImageView::~COcrExampleImageView" ref="7d81a8b96f59b43df326cbfa61435b3a" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -