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

📄 _ocr_example_image_view_8h-source.html

📁 基于symbian 平台 ocr 示例程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<a name="l00099"></a>00099 <span class="comment">        * Called when asynchronous recognize block operation completes.</span><a name="l00100"></a>00100 <span class="comment">        * Internally calls RecognizeDoneL.</span><a name="l00101"></a>00101 <span class="comment">        * @param aError  Error code to indicate the completion status</span><a name="l00102"></a>00102 <span class="comment">        * @param aBlocks  Pointer to the text information of the recognized</span><a name="l00103"></a>00103 <span class="comment">        *   image block. the memory ownership belongs to the OCR engine and</span><a name="l00104"></a>00104 <span class="comment">        *   will not be passed to your procedure after this calling</span><a name="l00105"></a>00105 <span class="comment">        * @param aBlockCount  Number of blocks identified</span><a name="l00106"></a>00106 <span class="comment">        */</span><a name="l00107"></a>00107         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#5cf1fbd18ad3ec441cedf31760963484">RecognizeBlockComplete</a>(TInt aError,<a name="l00108"></a>00108                                     <span class="keyword">const</span> TOCRTextRgnInfo* aBlocks,<a name="l00109"></a>00109                                     <span class="keyword">const</span> TInt aBlockCount);<span class="comment"></span><a name="l00110"></a>00110 <span class="comment">        /**</span><a name="l00111"></a>00111 <span class="comment">        * From MOCREngineObserver.</span><a name="l00112"></a>00112 <span class="comment">        * Called when asynchronous recognize special region operation completes.</span><a name="l00113"></a>00113 <span class="comment">        * Internally calls RecognizeDoneL.</span><a name="l00114"></a>00114 <span class="comment">        * @param aError  Error code to indicate the completion status</span><a name="l00115"></a>00115 <span class="comment">        * @param aBlocks  Pointer to the text information of the recognized</span><a name="l00116"></a>00116 <span class="comment">        *   image block. the memory ownership belongs to the OCR engine and</span><a name="l00117"></a>00117 <span class="comment">        *   will not be passed to your procedure after this calling</span><a name="l00118"></a>00118 <span class="comment">        * @param aBlockCount  Number of blocks identified</span><a name="l00119"></a>00119 <span class="comment">        */</span><a name="l00120"></a>00120         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#a05e98e6d1efee3a5bcfb61c292a8e01">RecognizeSpecialRegionComplete</a>(TInt aError,<a name="l00121"></a>00121                                             <span class="keyword">const</span> TOCRTextRgnInfo* aBlocks,<a name="l00122"></a>00122                                             <span class="keyword">const</span> TInt aBlockCount);<span class="comment"></span><a name="l00123"></a>00123 <span class="comment">        /**</span><a name="l00124"></a>00124 <span class="comment">        * From MOCREngineObserver.</span><a name="l00125"></a>00125 <span class="comment">        * Called when asynchronous recognize operation (of layout analysed</span><a name="l00126"></a>00126 <span class="comment">        * regions) completes.</span><a name="l00127"></a>00127 <span class="comment">        * Internally calls RecognizeDoneL.</span><a name="l00128"></a>00128 <span class="comment">        * @param aError  Error code to indicate the completion status</span><a name="l00129"></a>00129 <span class="comment">        * @param aBlocks  Pointer to the text information of the recognized</span><a name="l00130"></a>00130 <span class="comment">        *   image block. the memory ownership belongs to the OCR engine and</span><a name="l00131"></a>00131 <span class="comment">        *   will not be passed to your procedure after this calling</span><a name="l00132"></a>00132 <span class="comment">        * @param aBlockCount  Number of blocks identified</span><a name="l00133"></a>00133 <span class="comment">        */</span><a name="l00134"></a>00134         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#c8b0731eeda182f92be8229b23165d4b">RecognizeComplete</a>(TInt aError,<a name="l00135"></a>00135                                <span class="keyword">const</span> TOCRTextRgnInfo* aBlocks,<a name="l00136"></a>00136                                <span class="keyword">const</span> TInt aBlockCount);<a name="l00137"></a>00137 <span class="comment"></span><a name="l00138"></a>00138 <span class="comment">        /** From MOCREngineObserver</span><a name="l00139"></a>00139 <span class="comment">        * Called when asynchronous Layout Analysis completes.</span><a name="l00140"></a>00140 <span class="comment">        * @param aError  Error code to indicate the completion status</span><a name="l00141"></a>00141 <span class="comment">        * @param aBlocks  Pointer to the text information of the recognized</span><a name="l00142"></a>00142 <span class="comment">        *   image block. the memory ownership belongs to the OCR engine and</span><a name="l00143"></a>00143 <span class="comment">        *   will not be passed to your procedure after this calling</span><a name="l00144"></a>00144 <span class="comment">        * @param aBlockCount  Number of blocks identified</span><a name="l00145"></a>00145 <span class="comment">        */</span><a name="l00146"></a>00146         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#41758248db42aec6d42d6a54b13d36b8">LayoutComplete</a>(TInt aError,<a name="l00147"></a>00147                             <span class="keyword">const</span> TOCRBlockInfo* aBlocks,<a name="l00148"></a>00148                             <span class="keyword">const</span> TInt aBlockCount);<span class="comment"></span><a name="l00149"></a>00149 <span class="comment">        /**</span><a name="l00150"></a>00150 <span class="comment">        * From MOCREngineObserver.</span><a name="l00151"></a>00151 <span class="comment">        * Progress reporting interface of OCR operations.</span><a name="l00152"></a>00152 <span class="comment">        */</span><a name="l00153"></a>00153         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#587336a65e37fe2b8b4fa86aad2b7f4f">RecognizeProcess</a>(<span class="keyword">const</span> TUint aPercent);<a name="l00154"></a>00154 <span class="comment"></span><a name="l00155"></a>00155 <span class="comment">        /** from MAknBackgroundProcess (used by waitnote) */</span><a name="l00156"></a>00156         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#3a8345b1114dbca51373caaf97b3bd53">DialogDismissedL</a>(TInt <span class="comment">/*aButtonId*/</span>);<a name="l00157"></a>00157 <span class="comment"></span><a name="l00158"></a>00158 <span class="comment">        /** from MAknBackgroundProcess (used by waitnote) */</span><a name="l00159"></a>00159         TBool <a class="code" href="class_c_ocr_example_image_view.html#34fc7596f70aed6415e69cc09bec0968">IsProcessDone</a>() <span class="keyword">const</span>;<a name="l00160"></a>00160 <span class="comment"></span><a name="l00161"></a>00161 <span class="comment">        /** from MAknBackgroundProcess (used by waitnote) */</span><a name="l00162"></a>00162         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#9fadb422c50df5ad198f645d92cf408c">ProcessFinished</a>();<a name="l00163"></a>00163 <span class="comment"></span><a name="l00164"></a>00164 <span class="comment">        /** from MAknBackgroundProcess (used by waitnote) */</span><a name="l00165"></a>00165         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#2b047861e8a98fc470be28703b1bd9d0">StepL</a>();<a name="l00166"></a>00166 <a name="l00167"></a>00167     <span class="keyword">private</span>:<span class="comment"></span><a name="l00168"></a>00168 <span class="comment">        /** C++ constructor. */</span><a name="l00169"></a>00169         <a class="code" href="class_c_ocr_example_image_view.html#7cfaacbb7bdeefcb6bb02114fea43f70">COcrExampleImageView</a>(<a class="code" href="class_t_ocr_example_settings_data.html">TOcrExampleSettingsData</a>&amp; aSettings);<a name="l00170"></a>00170 <span class="comment"></span><a name="l00171"></a>00171 <span class="comment">        /** Symbian 2nd phase constructor. */</span><a name="l00172"></a>00172         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#9ce34ba0b947863222da3c63d0481044">ConstructL</a>();<a name="l00173"></a>00173 <span class="comment"></span><a name="l00174"></a>00174 <span class="comment">        /**</span><a name="l00175"></a>00175 <span class="comment">        * AnalyzeImageLayoutL triggers layout analysis operation.</span><a name="l00176"></a>00176 <span class="comment">        * OCR Engine is first initialized.</span><a name="l00177"></a>00177 <span class="comment">        * Operation settings are then inquiried from the user and the</span><a name="l00178"></a>00178 <span class="comment">        * asynchronous operation is started.</span><a name="l00179"></a>00179 <span class="comment">        */</span><a name="l00180"></a>00180         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#deb0a73c2e8490684e18cea6caa9af23">AnalyzeImageLayoutL</a>();<a name="l00181"></a>00181 <span class="comment"></span><a name="l00182"></a>00182 <span class="comment">        /**</span><a name="l00183"></a>00183 <span class="comment">        * RecognizeImageL triggers recognize operation.</span><a name="l00184"></a>00184 <span class="comment">        * Recognition can be done after successful layout analysis. All blocks</span><a name="l00185"></a>00185 <span class="comment">        * are to be recognized.</span><a name="l00186"></a>00186 <span class="comment">        * asynchronous operation is started.</span><a name="l00187"></a>00187 <span class="comment">        */</span><a name="l00188"></a>00188         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#72da075f30fbcf471e8af996ae74f499">RecognizeImageL</a>();<a name="l00189"></a>00189 <span class="comment"></span><a name="l00190"></a>00190 <span class="comment">        /**</span><a name="l00191"></a>00191 <span class="comment">        * RecognizeBlockL triggers recognize block -operation.</span><a name="l00192"></a>00192 <span class="comment">        * OCR Engine is first initialized.</span><a name="l00193"></a>00193 <span class="comment">        * Operation settings are then inquiried from the user for the block</span><a name="l00194"></a>00194 <span class="comment">        * marked by the crosshair. Asynchronous operation is started.</span><a name="l00195"></a>00195 <span class="comment">        */</span><a name="l00196"></a>00196         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#a31d77d219f1dc7b797c06d4356fefd9">RecognizeBlockL</a>();<a name="l00197"></a>00197 <span class="comment"></span><a name="l00198"></a>00198 <span class="comment">        /**</span><a name="l00199"></a>00199 <span class="comment">        * RecognizeBlockL triggers recognize special region -operation.</span><a name="l00200"></a>00200 <span class="comment">        * OCR Engine is first initialized.</span><a name="l00201"></a>00201 <span class="comment">        * Operation settings are then inquiried from the user for the block</span><a name="l00202"></a>00202 <span class="comment">        * marked by the crosshair. Asynchronous operation is started.</span><a name="l00203"></a>00203 <span class="comment">        */</span><a name="l00204"></a>00204         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#fac0e83d0111d471ebf4deffd9f87bc2">RecognizeSpecialRegionL</a>();<a name="l00205"></a>00205 <span class="comment"></span><a name="l00206"></a>00206 <span class="comment">        /**</span><a name="l00207"></a>00207 <span class="comment">        * LayoutCompleteL writes layout analysis results to the datafile.</span><a name="l00208"></a>00208 <span class="comment">        * Then the text-view is activated to show the results.</span><a name="l00209"></a>00209 <span class="comment">        * @param aError  Error code to indicate the completion status</span><a name="l00210"></a>00210 <span class="comment">        * @param aBlocks  Pointer to the text information of the recognized</span><a name="l00211"></a>00211 <span class="comment">        *   image block. the memory ownership belongs to the OCR engine and</span><a name="l00212"></a>00212 <span class="comment">        *   will not be passed to your procedure after this calling</span><a name="l00213"></a>00213 <span class="comment">        * @param aBlockCount  Number of blocks identified</span><a name="l00214"></a>00214 <span class="comment">        */</span><a name="l00215"></a>00215         <span class="keywordtype">void</span> <a class="code" href="class_c_ocr_example_image_view.html#7423311c7032dc3fadd7f0613745d010">LayoutCompleteL</a>(TInt aError,<a name="l00216"></a>00216                             <span class="keyword">const</span> TOCRBlockInfo* aBlocks,

⌨️ 快捷键说明

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