forked from aspose-ocr/Aspose.OCR-for-.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExamples.xml
More file actions
319 lines (309 loc) · 16.5 KB
/
Examples.xml
File metadata and controls
319 lines (309 loc) · 16.5 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<?xml version="1.0" encoding="utf-8"?>
<Data>
<Folders>
<Folder>
<Title>Programmers Guide</Title>
<Description>This section includes examples related to the following topics:
- Working with OCR Features
- Working with OMR Features
- Working with OMR Template Editor
- Migrating from Earlier Versions of Aspose.OCR</Description>
<FolderName>ProgrammersGuide</FolderName>
<Order>1</Order>
<Folders>
<Folder>
<Title>Working with OCR Features</Title>
<Description>This section includes examples related to the following topics:
- Performing OCR on an Image
- Getting Notification for Each Recognized Word
- Extracting Text from Part of an Image
- Read the Part Information of Recognized Text
- Get Location and Size of Identified Text in an Image
- Detecting Text Blocks on the Image
- Advanced Configurations
- Get Text Part Hierarchy of Recognized Text
- Working with Different Languages</Description>
<FolderName>WorkingWithOCRFeatures</FolderName>
<Order>1</Order>
<Examples>
<Example>
<Title>Performing OCR on an Image</Title>
<Description>Aspose.OCR provides the OcrEngine class for performing OCR on images. The OcrEngine class requires the following to perform character recognition:
- Source image
- Language setting
- Resource file
To perform OCR on an image using the OcrEngine class, this example describes the flow as follows:
- Create an instance of OcrEngine and initialize it using the default constructor.
- Set the image file on which OCR is to be performed using the OcrEngine.Image property.
- Add language(s) using the OcrEngine.Languages.AddLanguage() method.
- Set the resource file using the OcrEngine.Resource property.
- Call the OcrEngine.Process() method to perform OCR on the whole image.
- If OcrEngine.Process() returns true, get the recognized text with the OcrEngine.Text property.</Description>
<FolderName>PerformOCROnImage</FolderName>
<Order>1</Order>
<DocLink>
<DisplayName>Performing OCR on an Image</DisplayName>
<Url>Performing+OCR+on+an+Image</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Getting Notification for Each Recognized Word</Title>
<Description>In this example, we will see how we can get the notification as soon as a word is recognized during the scan using Aspose.OCR for .NET.</Description>
<FolderName>GettingNotification</FolderName>
<Order>2</Order>
<DocLink>
<DisplayName>Getting Notification for Each Recognized Word</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Getting+Notification+for+Each+Recognized+Word</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Extracting Text From Part Of An Image</Title>
<Description>In this example, we will see how we can extract the text from a specific part of the image document using Aspose.OCR for .NET.</Description>
<FolderName>ExtractingText</FolderName>
<Order>3</Order>
<DocLink>
<DisplayName>Extracting Text from Part of an Image</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Extracting+Text+from+Part+of+an+Image</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Read The Part Information Of Recognized Text</Title>
<Description>You can read the extracted text either as a whole or by parts. Each part has its own style, font, text size, language, location in image and more.
In this example, we will see how we can read the part information from extracted text using Aspose.OCR for .NET.</Description>
<FolderName>ReadPartInformation</FolderName>
<Order>4</Order>
<DocLink>
<DisplayName>Read the Part Information of Recognized Text</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Read+the+Part+Information+of+Recognized+Text</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Get Location And Size Of Identified Text In An Image</Title>
<Description>While extracting the part information from the recognized text, you can also extract the rectangle surrounding the text symbols. This rectangle further contains the information such as Location and Size.
In this example, we will see how we can extract the location and size of identified text in an image using Aspose.OCR for .NET.</Description>
<FolderName>GetLocationAndSize</FolderName>
<Order>5</Order>
<DocLink>
<DisplayName>Get Location and Size of Identified Text in an Image</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Get+Location+and+Size+of+Identified+Text+in+an+Image</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Detecting Text Blocks On The Image</Title>
<Description>While extracting the part information from the recognized text, you can also extract the rectangle surrounding the text symbols. This rectangle further contains the information such as Location and Size.
In this example, we will see how we can detect the textual blocks on an image using Aspose.OCR for .NET.</Description>
<FolderName>DetectingTextBlocks</FolderName>
<Order>6</Order>
<DocLink>
<DisplayName>Detecting Text Blocks on the Image</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Detecting+Text+Blocks+on+the+Image</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Get Text Part Hierarchy Of Recognized Text</Title>
<Description>In this example, we will see how we can retrieve the hierarchy of each recognized part on the image as TextBlock, Line, Word or Character using Aspose.OCR for .NET.</Description>
<FolderName>GetTextPartHierarchy</FolderName>
<Order>7</Order>
<DocLink>
<DisplayName>Get Text Part Hierarchy of Recognized Text</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Get+Text+Part+Hierarchy+of+Recognized+Text</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Working With Different Languages</Title>
<Description>In this example, we will see how we can recognize any language other than english using Aspose.OCR for .NET.</Description>
<FolderName>WorkingWithDifferentLanguages</FolderName>
<Order>8</Order>
<DocLink>
<DisplayName>Working with Different Languages</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Working+with+Different+Languages</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\SpanishOCR.bmp</Path>
</DataFile>
<DataFile>
<Path>..\Data\Aspose.OCR.Spanish.Resources.zip</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
</Examples>
<Folders>
<Folder>
<Title>Advanced Configurations</Title>
<Description>This section includes the following topics:
- Applying Correction Filters before Document Recognition
- Setting the OcrEngine to Ignore Non-Textual Blocks
- Setting the OcrEngine to Automatically Detect the Reading Order
- Setting the OcrEngine to Automatically Detect the Text Blocks
- Setting the OcrEngine to Automatically Correct the Spellings
- Adding User Defined Recognition Blocks
- Setting OcrEngine to Recognize Only White Listed Characters</Description>
<FolderName>AdvancedConfigurations</FolderName>
<Order>9</Order>
<Examples>
<Example>
<Title>Applying Correction Filters Before Document Recognition</Title>
<Description>In image recognition, we often need to perform some kind of noise reduction corrections on an image. Such noise reduction is a typical pre-processing step to improve the results of later processing.
In this example, we will see how we can use a correction filter before running the document recognition process using Aspose.OCR for .NET.</Description>
<FolderName>ApplyingCorrectionFilters</FolderName>
<Order>1</Order>
<DocLink>
<DisplayName>Applying Correction Filters before Document Recognition</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Applying+Correction+Filters+before+Document+Recognition</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Setting The OcrEngine To Ignore Non-Textual Blocks</Title>
<Description>In this example, we will see how we can detect and ignore the non-textual contents (graphics) from the operation using Aspose.OCR for .NET.</Description>
<FolderName>SettingtheOcrEngine</FolderName>
<Order>2</Order>
<DocLink>
<DisplayName>Setting the OcrEngine to Ignore Non-Textual Blocks</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Setting+the+OcrEngine+to+Ignore+Non-Textual+Blocks</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Setting the OcrEngine To Automatically Detect The Reading Order</Title>
<Description>Images that contain text can be divided into several text recognition areas. It is sometime important to apply a special sorting so that the correct text block order is maintained.
In this example, we will see how we can auto-detect the reading order using Aspose.OCR for .NET,</Description>
<FolderName>SettingOcrEngineAutomaticallyDetect</FolderName>
<Order>3</Order>
<DocLink>
<DisplayName>Setting the OcrEngine to Automatically Detect the Reading Order</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Setting+the+OcrEngine+to+Automatically+Detect+the+Reading+Order</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Setting the OcrEngine to Automatically Detect the Text Blocks</Title>
<Description>In this example, we will see how we can set the OcrEngine to automatically detect the text blocks using Aspose.OCR for .NET.</Description>
<FolderName>SettingtheOcrEngineAutomaticallyDetectTextBlocks</FolderName>
<Order>4</Order>
<DocLink>
<DisplayName>Setting the OcrEngine to Automatically Detect the Text Blocks</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Setting+the+OcrEngine+to+Automatically+Detect+the+Text+Blocks</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Setting The OcrEngine To Automatically Correct The Spellings</Title>
<Description>In this example, we will see how we can auto correct the spelling in recognized text using Aspose.OCR for .NET.</Description>
<FolderName>AutomaticallyCorrectTheSpellings</FolderName>
<Order>5</Order>
<DocLink>
<DisplayName>Setting the OcrEngine to Automatically Correct the Spellings</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Setting+the+OcrEngine+to+Automatically+Correct+the+Spellings</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\sampleocr_spell.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Adding User Defined Recognition Blocks</Title>
<Description>In this example, we will see how we can add the user defined blocks using Aspose.OCR for .NET.</Description>
<FolderName>AddingUserDefinedRecognitionBlocks</FolderName>
<Order>6</Order>
<DocLink>
<DisplayName>Adding User Defined Recognition Blocks</DisplayName>
<Url>www.aspose.com/docs/display/ocrnet/Adding+User+Defined+Recognition+Blocks</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Setting OcrEngine to Recognize Only White Listed Characters</Title>
<Description>In this example, we will see how we can recognize the white listed characters using Aspose.OCR for .NET.</Description>
<FolderName>RecognizeWhiteListedCharacters</FolderName>
<Order>7</Order>
<DocLink>
<DisplayName>Setting OcrEngine to Recognize Only White Listed Characters</DisplayName>
<Url>http://www.aspose.com/docs/display/ocrnet/Setting+OcrEngine+to+Recognize+Only+White+Listed+Characters</Url>
</DocLink>
<InputFiles>
<DataFile>
<Path>..\Data\Sampleocr.bmp</Path>
</DataFile>
</InputFiles>
<Type>Console</Type>
</Example>
</Examples>
</Folder>
</Folders>
</Folder>
</Folders>
</Folder>
</Folders>
</Data>