<meta http-equiv="content-language" content="yo" />
<h1>OCR Yoruba ni C# ati .NET</h1>
<h6>Awọn ẹya miiran ti iwe yii:</h6>
<ul>
<li> <a rel='alternate' hreflang='en' href="/csharp/ocr/languages/yoruba/">Gẹẹsi (This Page in English)</a></li>
<li> <a href="/csharp/ocr/languages/">Diẹ sii Languages</a></li>
</ul>
<p>IronOCR jẹ paati sọfitiwia C# ti o fun laaye awọn onkọwe .NET lati ka ọrọ lati awọn aworan ati awọn iwe aṣẹ PDF ni ede 126, pẹlu Yoruba.</p>
<p>O jẹ orita ti o ni ilọsiwaju ti Tesseract, ti a ṣe ni iyasọtọ fun awọn aṣagbega .NET ati ni deede ṣe deede awọn ẹrọ miran ti Tesseract fun iyara mejeeji ati deede.</p>
<h2>Awọn akoonu ti Awọn itọsọna IronOcr.Yoruba</h2>
<p>Apakan yii ni awọn ede OCR 43 fun .NET:</p>
<ul>
<li>Yoruba</li>
<li>YorubaBest</li>
<li>YorubaFast</li>
</ul>
<h2>Ṣe igbasilẹ</h2>
<p>Akopọ Ede Yoruba <span style='white-space:default'>[Yorùbá]</span> <br/> * Download as <a class='languages-dll' href='/csharp/ocr/packages/language-packs/Yoruba.ocrdata.zip'>Zip <i class='fas fa-download'></i></a><br/> * Install with as <a target='_blank' class='languages-nuget' href="https://www.nuget.org/packages/IronOcr.Languages.Yoruba/">NuGet <i class='nuget-icon'></i></a></p>
<h2>Fifi sori ẹrọ</h2>
<p>Ohun akọkọ ti a ni lati ṣe ni fi sori ẹrọ package OCR <strong>Yoruba</strong> wa si iṣẹ .NET rẹ.</p>
<pre><code>PM> Install-Package IronOcr.Languages.Yoruba</code></pre>
<h2>Koodu Apere</h2>
<p>Apẹrẹ koodu C# yii ka ọrọ Yoruba lati inu Aworan tabi iwe-ipamọ PDF.</p>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput(@"images\Yoruba.png")) // Load the image
{
var Result = Ocr.Read(Input); // Perform OCR on the input
var AllText = Result.Text; // Get all the recognized text
}
```
<h2>Kini idi ti Yan IronOCR?</h2>
<p>IronOCR jẹ fifi sori ẹrọ ti o rọrun, ti pari ati akọsilẹ daradara .NET ile-ikawe sọfitiwia.</p>
<p>Yan IronOCR lati ṣaṣeyọri deede <strong>99.8% + OCR</strong> laisi lilo eyikeyi awọn iṣẹ wẹẹbu ita, awọn idiyele ti nlọ lọwọ tabi fifiranṣẹ awọn iwe aṣẹ igbekele lori intanẹẹti.</p>
<h4>Kini idi ti awọn Difelopa C# ṣe yan IronOCR lori Vanilla Tesseract:</h4>
<ul>
<li>Fi sii bi DLL kan tabi NuGet kan</li>
<li>Pẹlu fun Awọn ẹrọ Engin 5, 4 ati 3 jade kuro ninu apoti.</li>
<li>Yiye <strong>99.8%</strong> ṣe pataki ṣe deede Tesseract deede.</li>
<li>Iyara gbigbona ati MultiThreading</li>
<li>MVC, WebApp, Ojú-iṣẹ, Console ati Ohun elo Server ibaramu</li>
<li>Ko si Exes tabi koodu C ++ lati ṣiṣẹ pẹlu</li>
<li>Full PDF OCR atilẹyin</li>
<li>Lati ṣe OCR fere eyikeyi faili Aworan tabi PDF</li>
<li>Kikun Core.NET, Standard ati atilẹyin FrameWork</li>
<li>Firanṣẹ lori Windows, Mac, Linux, Azure, Docker, Lambda, AWS</li>
<li>Ka awọn barcodes ati awọn koodu QR</li>
<li>Ṣe okeere OCR bi si XHTML</li>
<li>Si ilẹ okeere OCR si awọn iwe aṣẹ PDF ti o ṣawari</li>
<li>Multithreading atilẹyin</li>
<li>Awọn ede kariaye 126 gbogbo ṣakoso nipasẹ NuGet tabi awọn faili OcrData</li>
<li>Fa Awọn aworan jade, Awọn ipoidojuko, Awọn iṣiro ati awọn fọnti. Kii ṣe ọrọ nikan.</li>
<li>O le ṣee lo lati tun pin kaakiri Tesseract OCR laarin awọn ohun elo ti iṣowo ati ohun-ini.</li>
</ul>
<p><em>IronOCR nmọlẹ nigbati o n ṣiṣẹ pẹlu awọn aworan agbaye gidi ati awọn iwe aipe gẹgẹbi awọn fọto, tabi awọn ọlọjẹ ti ipinnu kekere eyiti o le ni ariwo oni-nọmba tabi awọn aipe.</em></p>
<p>Awọn ile-ikawe <a href="/csharp/ocr/use-case/free-ocr-csharp/">OCR ọfẹ ọfẹ</a> fun pẹpẹ .NET iru awọn .NET Tesseract API miiran ati awọn iṣẹ wẹẹbu ko ṣe bẹ daradara lori awọn ọran lilo agbaye gidi wọnyi.</p>
<h2>OCR pẹlu Tesseract 5 - Bẹrẹ Ifaminsi ni C#</h2>
<p>Apẹrẹ koodu ti o wa ni isalẹ fihan bi o ṣe rọrun lati ka ọrọ lati aworan nipa lilo C# tabi VB .NET.</p>
<h3>OneLiner</h3>
```csharp
// One-liner to read text from an image using IronOcr
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text; // Read text directly from image
```
<h3>Configurable Hello World</h3>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.AddImage("images/sample.jpeg"); // Add an image to be processed
//... you can add any number of images
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
```
<h3>C# PDF OCR</h3>
<p>Ona kanna ni a le lo bakanna lati yọ ọrọ jade lati eyikeyi iwe PDF.</p>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var input = new OcrInput()) // Create new OCR input
{
input.AddPdf("example.pdf", "password"); // Add a PDF with optional password
// A tun le yan awọn nọmba oju-iwe PDF kan pato si OCR
var Result = Ocr.Read(input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
Console.WriteLine($"{Result.Pages.Count()} Pages"); // Output page count
// Oju-iwe 1 fun gbogbo oju-iwe ti PDF
}
```
<h3>OCR fun MultiPage TIFFs</h3>
<p>OCR kika kika faili TIFF pẹlu awọn iwe oju-iwe pupọ. TIFF tun le yipada taara sinu faili PDF pẹlu ọrọ ti o ṣawari.</p>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.AddMultiFrameTiff("multi - frame.tiff"); // Add a multi-frame TIFF image
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
```
<h3>Barcodes ati QR</h3>
<p>Ẹya ara ọtọ ti IronOCR ni pe o le ka awọn koodu barcodes ati awọn koodu QR lati awọn iwe aṣẹ lakoko ti o n ṣayẹwo ọrọ. Awọn apeere ti Kilasi <code>OcrResult.OcrBarcode</code> fun Olùgbéejáde ni alaye ni kikun nipa <code>OcrResult.OcrBarcode</code> kọọkan.</p>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Configuration.ReadBarCodes = true; // Configure to read barcodes
using (var input = new OcrInput()) // Create new OCR input
{
input.AddImage("img/Barcode.png"); // Add an image with a barcode
var Result = Ocr.Read(input); // Perform OCR
foreach (var Barcode in Result.Barcodes) // Iterate over detected barcodes
{
Console.WriteLine(Barcode.Value); // Output the barcode value
// Additional properties like type and position are also available
}
}
```
<h3>OCR lori Awọn agbegbe pataki ti Awọn aworan</h3>
<p>Gbogbo awọn ọlọjẹ IronOCR ati awọn ọna kika n pese agbara pato pato apakan ti oju-iwe kan tabi awọn oju-iwe ti a fẹ lati ka ọrọ lati. Eyi wulo pupọ nigbati a n wo awọn fọọmu ti o ṣe deede ati pe o le fi akoko pupọ pamọ ki o mu ilọsiwaju ṣiṣe.</p>
<p>Lati lo awọn ẹkun irugbin, a yoo nilo lati ṣafikun itọkasi eto si <code>System.Drawing</code> ki a le lo ohun elo <code>System.Drawing.Rectangle</code>.</p>
```csharp
// Import the IronOcr and System.Drawing namespaces
using IronOcr;
using System.Drawing;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
var ContentArea = new Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 }; // Define the area to read (in pixels)
Input.AddImage("document.png", ContentArea); // Add the image with the defined area
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
```
<h3>OCR fun Awọn iwoye Didara Kekere</h3>
<p>Kilasi OCR <code>OcrInput</code> Iron le ṣatunṣe awọn ọlọjẹ ti deede Tesseract ko le ka.</p>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff")) // Load a low-quality image
{
Input.DeNoise(); // Correct digital noise
Input.Deskew(); // Correct skewing
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
```
<h3>Si ilẹ okeere Awọn abajade OCR bi PDF Ti a Ṣawari</h3>
<p>Aworan si PDF pẹlu awọn gbolohun ọrọ idaakọ. Le ṣe itọka nipasẹ awọn ẹrọ wiwa ati awọn apoti isura data.</p>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.Title = "Quarterly Report"; // Set the title of the document
Input.AddImage("image1.jpeg"); // Add images to be included in the PDF
Input.AddImage("image2.png");
Input.AddImage("image3.gif");
var Result = Ocr.Read(Input); // Perform OCR
Result.SaveAsSearchablePdf("searchable.pdf"); // Save the output as a searchable PDF
}
```
<h3>TIFF si Iyipada PDF ti o wa</h3>
<p>Ṣe atunṣe iwe TIFF kan (tabi eyikeyi ẹgbẹ awọn faili aworan) taara si PDF ti o le ṣawari eyiti o le ṣe itọka nipasẹ intranet, oju opo wẹẹbu ati awọn ẹrọ wiwa google.</p>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.AddMultiFrameTiff("example.tiff"); // Add a multi-frame TIFF image
Ocr.Read(Input).SaveAsSearchablePdf("searchable.pdf"); // Read and save as searchable PDF
}
```
<h3>Gbe awọn esi OCR jade bi HTML</h3>
<p>Aworan OCR si iyipada XHTML.</p>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.Title = "Html Title"; // Set the HTML title
Input.AddImage("image1.jpeg"); // Add an image to be converted to HTML
var Result = Ocr.Read(Input); // Perform OCR
Result.SaveAsHocrFile("results.html"); // Export the result as an HTML file
}
```
<h2>Awọn Ajọ Imudarasi Aworan OCR</h2>
<p>IronOCR n pese awọn asẹ alailẹgbẹ fun awọn ohun <code>OcrInput</code> lati mu ilọsiwaju OCR ṣiṣẹ.</p>
<h3>Apẹrẹ Igbega Aworan Aworan</h3>
<p>Ṣe awọn aworan titẹ sii OCR ga julọ lati ṣe dara julọ, awọn abajade OCR yiyara.</p>
```csharp
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput(@"LowQuality.jpeg")) // Load a low-quality image
{
Input.DeNoise(); // Correct digital noise
Input.Deskew(); // Correct skewing
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
```
<h3>Akojọ ti awọn Ajọ Aworan OCR</h3>
<p>Awọn asẹwọle input lati jẹki iṣẹ OCR eyiti a ṣe sinu IronOCR pẹlu:</p>
<ul>
<li><strong>OcrInput.Rotate (awọn iwọn meji)</strong> - Awọn aworan yiyi nipasẹ nọmba awọn iwọn ni titọ. Fun alatako-aago, lo awọn nọmba odi.</li>
<li><strong>OcrInput.Binarize ()</strong> - Ajọ aworan yii yipada gbogbo ẹbun dudu tabi funfun pẹlu laisi ilẹ aarìn. Le Mu Awọn ọran iṣe OCR ṣiṣẹ ti itansan kekere ti ọrọ si abẹlẹ.</li>
<li><strong>OcrInput.ToGrayScale ()</strong> - Ajọ aworan yii yipada gbogbo ẹbun sinu iboji ti grayscale. Ko seese lati mu ilọsiwaju OCR dara ṣugbọn o le mu iyara pọ si</li>
<li><strong>OcrInput.Contrast ()</strong> - Mu ki iyatọ pọ si laifọwọyi. Ajọ yi nigbagbogbo n mu iyara OCR pọ ati deede ni awọn iwoye itansan kekere.</li>
<li><strong>OcrInput.DeNoise ()</strong> - Yọ ariwo oni-nọmba. Ajọ yii yẹ ki o lo nikan nibiti o ti nireti ariwo.</li>
<li><strong>OcrInput.Invert ()</strong> - Yi gbogbo awọ pada. Eg White di dudu: dudu di funfun.</li>
<li><strong>OcrInput.Dilate ()</strong> - <strong>Mofoloji</strong> To ti ni ilọsiwaju. <em>Dilation</em> ṣe afikun awọn piksẹli si awọn aala ti awọn nkan ninu aworan kan. Idakeji ti Erode</li>
<li><strong>OcrInput.Erode ()</strong> - <strong>Mofoloji</strong> To ti ni ilọsiwaju. <em>Erosion</em> yọ awọn piksẹli lori awọn aala ohun Idojukọ Dilate</li>
<li><strong>OcrInput.Deskew ()</strong> - Yiyi aworan nitorina o jẹ ọna ti o tọ ati orthogonal. Eyi wulo pupọ fun OCR nitori ifarada Tesseract fun awọn iwo wiwọn le jẹ kekere bi awọn iwọn 5.</li>
<li><strong>OcrInput.DeepCleanBackgroundNoise ()</strong> - Iyọkuro ariwo isale Eru. Lo àlẹmọ yii nikan bi o ba jẹ pe ariwo ariwo lẹhin iwe ni a mọ, nitori pe asẹ yii yoo tun eewu atehinwa deede OCR ti awọn iwe mimọ, ati pe Sipiyu gbowolori pupọ.</li>
<li><strong>OcrInput.EnhanceResolution</strong> - Ṣe iyi ipinnu awọn aworan didara kekere. A ko nilo àlẹmọ yii nigbagbogbo nitori <em>OcrInput.MinimumDPI</em> ati <em>OcrInput.TargetDPI</em> yoo mu laifọwọyi ati yanju awọn igbewọle ipinnu kekere.</li>
</ul>
<p><strong>CleanBackgroundNoise.</strong> Eyi jẹ eto eyiti o jẹ akoko to n gba; sibẹsibẹ, o gba aaye ikawe laaye laaye lati nu ariwo oni-nọmba laifọwọyi, awọn iyọ iwe, ati awọn aipe miiran laarin aworan oni-nọmba eyiti yoo jẹ ki o jẹ ailagbara ti kika nipasẹ awọn ile-ikawe OCR miiran.</p>
<p><strong>EnhanceContrast</strong> jẹ eto eyiti o fa ki IronOCR mu alekun itansan ti ọrọ pọ si abẹlẹ ti aworan kan, jijẹ deede ti OCR ati ṣiṣe alekun gbogbogbo ati iyara ti OCR.</p>
<p><strong>Imudarasi</strong> jẹ ipinnu ti yoo ṣe awari awọn aworan irẹwọn kekere (eyiti o wa labẹ d555 dida) ati gbe aworan soke ni adaṣe ati lẹhinna pọn gbogbo ọrọ ki o le ka ni pipe nipasẹ ile-ikawe OCR. Botilẹjẹpe iṣiṣẹ yii jẹ funrararẹ n gba akoko, o dinku gbogbo akoko ni apapọ fun iṣẹ OCR lori aworan kan.</p>
<p><strong>Ede</strong> IronOCR ṣe atilẹyin awọn akopọ ede kariaye 22, ati pe eto ede le ṣee lo lati yan ọkan tabi diẹ sii sii awọn ede pupọ lati lo fun iṣẹ OCR.</p>
<p><strong>Nwon.Mirza</strong> IronOCR ṣe atilẹyin awọn imọran meji. A le yan lati boya lọ fun iyara ati iwuwo deede ti iwe aṣẹ kan, tabi lo ilana ilọsiwaju ti o nlo diẹ ninu awọn awoṣe itetisi atọwọda lati mu ilọsiwaju deede ti ọrọ OCR ṣiṣẹ laifọwọyi nipa wiwo ibatan iṣiro ti awọn ọrọ si ara wa ni gbolohun ọrọ.</p>
<p><strong>ColorSpace</strong> jẹ eto eyiti a le yan si OCR ni grayscale tabi awọ. Ni gbogbogbo, grayscale ni aṣayan ti o dara julọ. Sibẹsibẹ, nigbamiran nigbati awọn ọrọ tabi awọn ipilẹ ti hue ti o jọra yatọ ṣugbọn awọ ti o yatọ pupọ, aaye awọ awọ kikun yoo pese awọn abajade to dara julọ.</p>
<p><strong>ṢawariWhiteTextOnDarkBackgrounds.</strong> Ni gbogbogbo, gbogbo awọn ile-ikawe OCR nireti lati wo ọrọ dudu lori awọn ipilẹ funfun. Eto yii gba IronOCR laaye lati ṣe awari awọn odi, tabi awọn oju-iwe dudu pẹlu ọrọ funfun, ki o ka wọn.</p>
<p><strong>Iru InputImageType.</strong> Eto yii ngbanilaaye fun Olùgbéejáde lati ṣe itọsọna ile-ikawe OCR bi boya o nwo iwe-ipamọ ni kikun tabi snippet kan, gẹgẹ bi sikirinifoto.</p>
<p><strong>RotateAndStraighten</strong> jẹ eto ilọsiwaju ti o fun laaye IronOCR agbara alailẹgbẹ lati ka awọn iwe aṣẹ eyiti kii ṣe iyipo nikan, ṣugbọn boya irisi ti o ni ninu, gẹgẹbi awọn fọto ti awọn iwe ọrọ.</p>
<p><strong>ReadBarcodes</strong> jẹ ẹya ti o wulo eyiti o fun laaye IronOCR lati ka awọn barcodes laifọwọyi ati awọn koodu QR lori awọn oju-iwe bi o ṣe tun ka ọrọ, laisi fifi afikun akoko ẹru nla kun.</p>
<p><strong>Iwọn awọ.</strong> Eto yii pinnu iye diẹ ninu ẹbun fun ẹbun ile-ikawe OCR yoo lo lati pinnu ijinle awọ kan. Ijinlẹ awọ ti o ga julọ le ṣe alekun didara OCR, ṣugbọn yoo tun mu akoko ti o nilo fun iṣẹ OCR lati pari.</p>
<h2>Awọn akopọ Ede 126</h2>
<p>IronOCR ṣe atilẹyin <strong>awọn ede kariaye 126</strong> nipasẹ awọn akopọ ede eyiti o pin bi awọn DLL, eyiti o le ṣe <a href="/csharp/ocr/languages/">igbasilẹ lati oju opo wẹẹbu yii</a>, tabi lati ọdọ <a href="https://www.nuget.org/packages?q=IronOcr.Languages">NuGet Package Manager</a>.</p>
<p>Awọn ede pẹlu Jẹmánì, Faranse, Gẹẹsi, Ṣaina, Japanese ati ọpọlọpọ diẹ sii. Awọn akopọ ede Pataki wa fun iwe irinna MRZ, awọn sọwedowo MICR, Data Owo, Awọn awo iwe-aṣẹ ati ọpọlọpọ diẹ sii. O tun le lo eyikeyi faili Tesseract ".traineddata" - pẹlu awọn ti o ṣẹda funrararẹ.</p>
<h3>Apeere Ede</h3>
<p>Lilo awọn ede OCR Miiran.</p>
```csharp
// Using IronOcr to process Arabic language OCR
using IronOcr;
// PM> Install IronOcr.Languages.Arabic
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Arabic; // Set the language to Arabic
using (var input = new OcrInput()) // Create new OCR input
{
input.AddImage("img/arabic.gif"); // Add an image with Arabic text
// Additional models can be added if needed
// IronTesseract can read what standard Tesseract cannot if input quality is low.
var Result = Ocr.Read(input); // Perform OCR
// Console can't easily display Arabic on Windows; save to disk instead.
Result.SaveAsTextFile("arabic.txt"); // Save OCR result to text file
}
```
<h3>Apeere Ede Pupo</h3>
<p>O tun ṣeeṣe si OCR nipa lilo awọn ede lọpọlọpọ ni akoko kanna. Eyi le ṣe iranlọwọ gaan lati gba metadata ede Gẹẹsi ati awọn URL ninu awọn iwe aṣẹ Unicode.</p>
```csharp
// Using IronOcr for multi-language OCR processing
using IronOcr;
// PM> Install IronOcr.Languages.ChineseSimplified
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.ChineseSimplified; // Set primary language to Chinese Simplified
Ocr.AddSecondaryLanguage(OcrLanguage.Yoruba); // Add Yoruba as a secondary language
// Multiple languages can be added
using (var input = new OcrInput()) // Create new OCR input
{
input.Add("multi-language.pdf"); // Add a multi-language PDF
var Result = Ocr.Read(input); // Perform OCR
Result.SaveAsTextFile("results.txt"); // Save OCR result to text file
}
```
<h2>Alaye Awọn ohun OCR Awọn abajade</h2>
<p>IronOCR pada ohun abajade abajade OCR fun iṣẹ OCR kọọkan. Ni gbogbogbo, awọn olupilẹṣẹ lo ohun-ini ọrọ ti nkan yii nikan lati jẹ ki ọrọ ṣayẹwo lati aworan naa. Sibẹsibẹ, awọn abajade OCR DOM ti ni ilọsiwaju pupọ ju eyi lọ.</p>
```csharp
// Using IronOcr to process and analyze detailed OCR results
using IronOcr;
using System.Drawing; // Required to use System.Drawing.Rectangle
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm; // Set the engine mode
Ocr.Configuration.ReadBarCodes = true; // Enable barcode reading
using (var Input = new OcrInput(@"images\sample.tiff")) // Load the TIFF image
{
OcrResult Result = Ocr.Read(Input); // Perform OCR
var Pages = Result.Pages; // Access OCR result pages
var Words = Pages[0].Words; // Access words on the first page
var Barcodes = Result.Barcodes; // Access detected barcodes
// Detailed OCR result API:
// - Pages, Blocks, Paragraphs, Lines, Words, Chars
// - Export Image, Coordinate fonts, Statistical data
}
```
<h2>Iṣe</h2>
<p>IronOCR n ṣiṣẹ lati inu apoti laisi iwulo lati ṣe ohun orin tabi yi awọn aworan titẹ sii dara julọ.</p>
<p>Iyara jẹ gbigbona: IronOCR.2020 + ti to awọn akoko 10 yiyara ati ṣiṣe awọn aṣiṣe 250% diẹ ju awọn ti iṣaaju lọ.</p>
<h2>Kọ ẹkọ diẹ si</h2>
<p>Lati ni imọ siwaju sii nipa OCR ni C#, VB, F#, tabi eyikeyi ede .NET, jọwọ <a href="/csharp/ocr/tutorials/how-to-read-text-from-an-image-in-csharp-net/">ka awọn itọnisọna agbegbe wa</a>, eyiti o fun awọn apẹẹrẹ agbaye gidi ti bi a ṣe le lo IronOCR ati pe o le fihan awọn nuances ti bawo ni a ṣe le rii dara julọ yi ìkàwé.</p>
<p>Itọkasi <a href="/csharp/ocr/object-reference/api/">ohun ni</a> kikun <a href="/csharp/ocr/object-reference/api/">fun awọn Difelopa NET</a> tun wa.</p>
IronOCR jẹ paati sọfitiwia C# ti o fun laaye awọn onkọwe .NET lati ka ọrọ lati awọn aworan ati awọn iwe aṣẹ PDF ni ede 126, pẹlu Yoruba.
O jẹ orita ti o ni ilọsiwaju ti Tesseract, ti a ṣe ni iyasọtọ fun awọn aṣagbega .NET ati ni deede ṣe deede awọn ẹrọ miran ti Tesseract fun iyara mejeeji ati deede.
Awọn akoonu ti Awọn itọsọna IronOcr.Yoruba
Apakan yii ni awọn ede OCR 43 fun .NET:
Yoruba
YorubaBest
YorubaFast
Ṣe igbasilẹ
Akopọ Ede Yoruba [Yorùbá] * Download as Zip * Install with as NuGet
Fifi sori ẹrọ
Ohun akọkọ ti a ni lati ṣe ni fi sori ẹrọ package OCR Yoruba wa si iṣẹ .NET rẹ.
PM> Install-Package IronOcr.Languages.Yoruba
Koodu Apere
Apẹrẹ koodu C# yii ka ọrọ Yoruba lati inu Aworan tabi iwe-ipamọ PDF.
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (varInput = new OcrInput(@"images\Yoruba.png")) // Load the image{ varResult = Ocr.Read(Input); // Perform OCR on the input varAllText = Result.Text; // Get all the recognized text}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput(@"images\Yoruba.png")) // Load the image
{
var Result = Ocr.Read(Input); // Perform OCR on the input
var AllText = Result.Text; // Get all the recognized text
}
ImportsIronOcrDimOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsingInput = New OcrInput("images\Yoruba.png") ' Load the image DimResult = Ocr.Read(Input) ' Perform OCR on the input DimAllText = Result.Text' Get all the recognized textEndUsing
Imports IronOcr
Dim Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using Input = New OcrInput("images\Yoruba.png") ' Load the image
Dim Result = Ocr.Read(Input) ' Perform OCR on the input
Dim AllText = Result.Text ' Get all the recognized text
End Using
Kini idi ti Yan IronOCR?
IronOCR jẹ fifi sori ẹrọ ti o rọrun, ti pari ati akọsilẹ daradara .NET ile-ikawe sọfitiwia.
Yan IronOCR lati ṣaṣeyọri deede 99.8% + OCR laisi lilo eyikeyi awọn iṣẹ wẹẹbu ita, awọn idiyele ti nlọ lọwọ tabi fifiranṣẹ awọn iwe aṣẹ igbekele lori intanẹẹti.
Kini idi ti awọn Difelopa C# ṣe yan IronOCR lori Vanilla Tesseract:
Fi sii bi DLL kan tabi NuGet kan
Pẹlu fun Awọn ẹrọ Engin 5, 4 ati 3 jade kuro ninu apoti.
Yiye 99.8% ṣe pataki ṣe deede Tesseract deede.
Iyara gbigbona ati MultiThreading
MVC, WebApp, Ojú-iṣẹ, Console ati Ohun elo Server ibaramu
Ko si Exes tabi koodu C ++ lati ṣiṣẹ pẹlu
Full PDF OCR atilẹyin
Lati ṣe OCR fere eyikeyi faili Aworan tabi PDF
Kikun Core.NET, Standard ati atilẹyin FrameWork
Firanṣẹ lori Windows, Mac, Linux, Azure, Docker, Lambda, AWS
Ka awọn barcodes ati awọn koodu QR
Ṣe okeere OCR bi si XHTML
Si ilẹ okeere OCR si awọn iwe aṣẹ PDF ti o ṣawari
Multithreading atilẹyin
Awọn ede kariaye 126 gbogbo ṣakoso nipasẹ NuGet tabi awọn faili OcrData
Fa Awọn aworan jade, Awọn ipoidojuko, Awọn iṣiro ati awọn fọnti. Kii ṣe ọrọ nikan.
O le ṣee lo lati tun pin kaakiri Tesseract OCR laarin awọn ohun elo ti iṣowo ati ohun-ini.
IronOCR nmọlẹ nigbati o n ṣiṣẹ pẹlu awọn aworan agbaye gidi ati awọn iwe aipe gẹgẹbi awọn fọto, tabi awọn ọlọjẹ ti ipinnu kekere eyiti o le ni ariwo oni-nọmba tabi awọn aipe.
Awọn ile-ikawe OCR ọfẹ ọfẹ fun pẹpẹ .NET iru awọn .NET Tesseract API miiran ati awọn iṣẹ wẹẹbu ko ṣe bẹ daradara lori awọn ọran lilo agbaye gidi wọnyi.
OCR pẹlu Tesseract 5 - Bẹrẹ Ifaminsi ni C#
Apẹrẹ koodu ti o wa ni isalẹ fihan bi o ṣe rọrun lati ka ọrọ lati aworan nipa lilo C# tabi VB .NET.
OneLiner
// One-liner to read text from an image using IronOcrstringText = new IronTesseract().Read(@"img\Screenshot.png").Text; // Read text directly from image
// One-liner to read text from an image using IronOcr
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text; // Read text directly from image
' One-liner to read text from an image using IronOcrDimTextAsString = (New IronTesseract()).Read("img\Screenshot.png").Text' Read text directly from image
' One-liner to read text from an image using IronOcr
Dim Text As String = (New IronTesseract()).Read("img\Screenshot.png").Text ' Read text directly from image
Configurable Hello World
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (varInput = new OcrInput()) // Create new OCR input{Input.AddImage("images/sample.jpeg"); // Add an image to be processed //... you can add any number of images varResult = Ocr.Read(Input); // Perform OCRConsole.WriteLine(Result.Text); // Output the recognized text to the console}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.AddImage("images/sample.jpeg"); // Add an image to be processed
//... you can add any number of images
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
' Import the IronOcr namespaceImportsIronOcrPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsingInput = New OcrInput() ' Create new OCR inputInput.AddImage("images/sample.jpeg") ' Add an image to be processed '... you can add any number of images DimResult = Ocr.Read(Input) ' Perform OCRConsole.WriteLine(Result.Text) ' Output the recognized text to the consoleEndUsing
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using Input = New OcrInput() ' Create new OCR input
Input.AddImage("images/sample.jpeg") ' Add an image to be processed
'... you can add any number of images
Dim Result = Ocr.Read(Input) ' Perform OCR
Console.WriteLine(Result.Text) ' Output the recognized text to the console
End Using
C# PDF OCR
Ona kanna ni a le lo bakanna lati yọ ọrọ jade lati eyikeyi iwe PDF.
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (var input = new OcrInput()) // Create new OCR input{ input.AddPdf("example.pdf", "password"); // Add a PDF with optional password // A tun le yan awọn nọmba oju-iwe PDF kan pato si OCR varResult = Ocr.Read(input); // Perform OCRConsole.WriteLine(Result.Text); // Output the recognized text to the consoleConsole.WriteLine($"{Result.Pages.Count()} Pages"); // Output page count // Oju-iwe 1 fun gbogbo oju-iwe ti PDF}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var input = new OcrInput()) // Create new OCR input
{
input.AddPdf("example.pdf", "password"); // Add a PDF with optional password
// A tun le yan awọn nọmba oju-iwe PDF kan pato si OCR
var Result = Ocr.Read(input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
Console.WriteLine($"{Result.Pages.Count()} Pages"); // Output page count
// Oju-iwe 1 fun gbogbo oju-iwe ti PDF
}
' Import the IronOcr namespaceImportsIronOcrPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsing input = New OcrInput() ' Create new OCR input input.AddPdf("example.pdf", "password") ' Add a PDF with optional password ' A tun le yan awọn nọmba oju-iwe PDF kan pato si OCR DimResult = Ocr.Read(input) ' Perform OCRConsole.WriteLine(Result.Text) ' Output the recognized text to the consoleConsole.WriteLine($"{Result.Pages.Count()} Pages") ' Output page count ' Oju-iwe 1 fun gbogbo oju-iwe ti PDFEndUsing
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using input = New OcrInput() ' Create new OCR input
input.AddPdf("example.pdf", "password") ' Add a PDF with optional password
' A tun le yan awọn nọmba oju-iwe PDF kan pato si OCR
Dim Result = Ocr.Read(input) ' Perform OCR
Console.WriteLine(Result.Text) ' Output the recognized text to the console
Console.WriteLine($"{Result.Pages.Count()} Pages") ' Output page count
' Oju-iwe 1 fun gbogbo oju-iwe ti PDF
End Using
OCR fun MultiPage TIFFs
OCR kika kika faili TIFF pẹlu awọn iwe oju-iwe pupọ. TIFF tun le yipada taara sinu faili PDF pẹlu ọrọ ti o ṣawari.
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (varInput = new OcrInput()) // Create new OCR input{Input.AddMultiFrameTiff("multi - frame.tiff"); // Add a multi-frame TIFF image varResult = Ocr.Read(Input); // Perform OCRConsole.WriteLine(Result.Text); // Output the recognized text to the console}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.AddMultiFrameTiff("multi - frame.tiff"); // Add a multi-frame TIFF image
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
' Import the IronOcr namespaceImportsIronOcrPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsingInput = New OcrInput() ' Create new OCR inputInput.AddMultiFrameTiff("multi - frame.tiff") ' Add a multi-frame TIFF image DimResult = Ocr.Read(Input) ' Perform OCRConsole.WriteLine(Result.Text) ' Output the recognized text to the consoleEndUsing
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using Input = New OcrInput() ' Create new OCR input
Input.AddMultiFrameTiff("multi - frame.tiff") ' Add a multi-frame TIFF image
Dim Result = Ocr.Read(Input) ' Perform OCR
Console.WriteLine(Result.Text) ' Output the recognized text to the console
End Using
Barcodes ati QR
Ẹya ara ọtọ ti IronOCR ni pe o le ka awọn koodu barcodes ati awọn koodu QR lati awọn iwe aṣẹ lakoko ti o n ṣayẹwo ọrọ. Awọn apeere ti Kilasi OcrResult.OcrBarcode fun Olùgbéejáde ni alaye ni kikun nipa OcrResult.OcrBarcode kọọkan.
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Configuration.ReadBarCodes = true; // Configure to read barcodesusing (var input = new OcrInput()) // Create new OCR input{ input.AddImage("img/Barcode.png"); // Add an image with a barcode varResult = Ocr.Read(input); // Perform OCR foreach (varBarcodeinResult.Barcodes) // Iterate over detected barcodes {Console.WriteLine(Barcode.Value); // Output the barcode value // Additional properties like type and position are also available }}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Configuration.ReadBarCodes = true; // Configure to read barcodes
using (var input = new OcrInput()) // Create new OCR input
{
input.AddImage("img/Barcode.png"); // Add an image with a barcode
var Result = Ocr.Read(input); // Perform OCR
foreach (var Barcode in Result.Barcodes) // Iterate over detected barcodes
{
Console.WriteLine(Barcode.Value); // Output the barcode value
// Additional properties like type and position are also available
}
}
' Import the IronOcr namespaceImportsIronOcrPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Configuration.ReadBarCodes = True ' Configure to read barcodesUsing input = New OcrInput() ' Create new OCR input input.AddImage("img/Barcode.png") ' Add an image with a barcode DimResult = Ocr.Read(input) ' Perform OCR For EachBarcodeInResult.Barcodes' Iterate over detected barcodesConsole.WriteLine(Barcode.Value) ' Output the barcode value ' Additional properties like type and position are also available NextBarcodeEndUsing
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Configuration.ReadBarCodes = True ' Configure to read barcodes
Using input = New OcrInput() ' Create new OCR input
input.AddImage("img/Barcode.png") ' Add an image with a barcode
Dim Result = Ocr.Read(input) ' Perform OCR
For Each Barcode In Result.Barcodes ' Iterate over detected barcodes
Console.WriteLine(Barcode.Value) ' Output the barcode value
' Additional properties like type and position are also available
Next Barcode
End Using
OCR lori Awọn agbegbe pataki ti Awọn aworan
Gbogbo awọn ọlọjẹ IronOCR ati awọn ọna kika n pese agbara pato pato apakan ti oju-iwe kan tabi awọn oju-iwe ti a fẹ lati ka ọrọ lati. Eyi wulo pupọ nigbati a n wo awọn fọọmu ti o ṣe deede ati pe o le fi akoko pupọ pamọ ki o mu ilọsiwaju ṣiṣe.
Lati lo awọn ẹkun irugbin, a yoo nilo lati ṣafikun itọkasi eto si System.Drawing ki a le lo ohun elo System.Drawing.Rectangle.
// Import the IronOcr and System.Drawing namespacesusing IronOcr;using System.Drawing;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (varInput = new OcrInput()) // Create new OCR input{ varContentArea = new Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 }; // Define the area to read (in pixels)Input.AddImage("document.png", ContentArea); // Add the image with the defined area varResult = Ocr.Read(Input); // Perform OCRConsole.WriteLine(Result.Text); // Output the recognized text to the console}
// Import the IronOcr and System.Drawing namespaces
using IronOcr;
using System.Drawing;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
var ContentArea = new Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 }; // Define the area to read (in pixels)
Input.AddImage("document.png", ContentArea); // Add the image with the defined area
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
' Import the IronOcr and System.Drawing namespacesImportsIronOcrImportsSystem.DrawingPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsingInput = New OcrInput() ' Create new OCR input DimContentArea = New Rectangle() With { .X = 215, .Y = 1250, .Height = 280, .Width = 1335 }Input.AddImage("document.png", ContentArea) ' Add the image with the defined area DimResult = Ocr.Read(Input) ' Perform OCRConsole.WriteLine(Result.Text) ' Output the recognized text to the consoleEndUsing
' Import the IronOcr and System.Drawing namespaces
Imports IronOcr
Imports System.Drawing
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using Input = New OcrInput() ' Create new OCR input
Dim ContentArea = New Rectangle() With {
.X = 215,
.Y = 1250,
.Height = 280,
.Width = 1335
}
Input.AddImage("document.png", ContentArea) ' Add the image with the defined area
Dim Result = Ocr.Read(Input) ' Perform OCR
Console.WriteLine(Result.Text) ' Output the recognized text to the console
End Using
OCR fun Awọn iwoye Didara Kekere
Kilasi OCR OcrInput Iron le ṣatunṣe awọn ọlọjẹ ti deede Tesseract ko le ka.
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (varInput = new OcrInput(@"img\Potter.LowQuality.tiff")) // Load a low-quality image{Input.DeNoise(); // Correct digital noiseInput.Deskew(); // Correct skewing varResult = Ocr.Read(Input); // Perform OCRConsole.WriteLine(Result.Text); // Output the recognized text to the console}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff")) // Load a low-quality image
{
Input.DeNoise(); // Correct digital noise
Input.Deskew(); // Correct skewing
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
' Import the IronOcr namespaceImportsIronOcrPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsingInput = New OcrInput("img\Potter.LowQuality.tiff") ' Load a low-quality imageInput.DeNoise() ' Correct digital noiseInput.Deskew() ' Correct skewing DimResult = Ocr.Read(Input) ' Perform OCRConsole.WriteLine(Result.Text) ' Output the recognized text to the consoleEndUsing
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using Input = New OcrInput("img\Potter.LowQuality.tiff") ' Load a low-quality image
Input.DeNoise() ' Correct digital noise
Input.Deskew() ' Correct skewing
Dim Result = Ocr.Read(Input) ' Perform OCR
Console.WriteLine(Result.Text) ' Output the recognized text to the console
End Using
Si ilẹ okeere Awọn abajade OCR bi PDF Ti a Ṣawari
Aworan si PDF pẹlu awọn gbolohun ọrọ idaakọ. Le ṣe itọka nipasẹ awọn ẹrọ wiwa ati awọn apoti isura data.
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (varInput = new OcrInput()) // Create new OCR input{Input.Title = "Quarterly Report"; // Set the title of the documentInput.AddImage("image1.jpeg"); // Add images to be included in the PDFInput.AddImage("image2.png");Input.AddImage("image3.gif"); varResult = Ocr.Read(Input); // Perform OCRResult.SaveAsSearchablePdf("searchable.pdf"); // Save the output as a searchable PDF}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.Title = "Quarterly Report"; // Set the title of the document
Input.AddImage("image1.jpeg"); // Add images to be included in the PDF
Input.AddImage("image2.png");
Input.AddImage("image3.gif");
var Result = Ocr.Read(Input); // Perform OCR
Result.SaveAsSearchablePdf("searchable.pdf"); // Save the output as a searchable PDF
}
' Import the IronOcr namespaceImportsIronOcrPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsingInput = New OcrInput() ' Create new OCR inputInput.Title = "Quarterly Report" ' Set the title of the documentInput.AddImage("image1.jpeg") ' Add images to be included in the PDFInput.AddImage("image2.png")Input.AddImage("image3.gif") DimResult = Ocr.Read(Input) ' Perform OCRResult.SaveAsSearchablePdf("searchable.pdf") ' Save the output as a searchable PDFEndUsing
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using Input = New OcrInput() ' Create new OCR input
Input.Title = "Quarterly Report" ' Set the title of the document
Input.AddImage("image1.jpeg") ' Add images to be included in the PDF
Input.AddImage("image2.png")
Input.AddImage("image3.gif")
Dim Result = Ocr.Read(Input) ' Perform OCR
Result.SaveAsSearchablePdf("searchable.pdf") ' Save the output as a searchable PDF
End Using
TIFF si Iyipada PDF ti o wa
Ṣe atunṣe iwe TIFF kan (tabi eyikeyi ẹgbẹ awọn faili aworan) taara si PDF ti o le ṣawari eyiti o le ṣe itọka nipasẹ intranet, oju opo wẹẹbu ati awọn ẹrọ wiwa google.
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (varInput = new OcrInput()) // Create new OCR input{Input.AddMultiFrameTiff("example.tiff"); // Add a multi-frame TIFF imageOcr.Read(Input).SaveAsSearchablePdf("searchable.pdf"); // Read and save as searchable PDF}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.AddMultiFrameTiff("example.tiff"); // Add a multi-frame TIFF image
Ocr.Read(Input).SaveAsSearchablePdf("searchable.pdf"); // Read and save as searchable PDF
}
' Import the IronOcr namespaceImportsIronOcrPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsingInput = New OcrInput() ' Create new OCR inputInput.AddMultiFrameTiff("example.tiff") ' Add a multi-frame TIFF imageOcr.Read(Input).SaveAsSearchablePdf("searchable.pdf") ' Read and save as searchable PDFEndUsing
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using Input = New OcrInput() ' Create new OCR input
Input.AddMultiFrameTiff("example.tiff") ' Add a multi-frame TIFF image
Ocr.Read(Input).SaveAsSearchablePdf("searchable.pdf") ' Read and save as searchable PDF
End Using
Gbe awọn esi OCR jade bi HTML
Aworan OCR si iyipada XHTML.
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (varInput = new OcrInput()) // Create new OCR input{Input.Title = "Html Title"; // Set the HTML titleInput.AddImage("image1.jpeg"); // Add an image to be converted to HTML varResult = Ocr.Read(Input); // Perform OCRResult.SaveAsHocrFile("results.html"); // Export the result as an HTML file}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput()) // Create new OCR input
{
Input.Title = "Html Title"; // Set the HTML title
Input.AddImage("image1.jpeg"); // Add an image to be converted to HTML
var Result = Ocr.Read(Input); // Perform OCR
Result.SaveAsHocrFile("results.html"); // Export the result as an HTML file
}
' Import the IronOcr namespaceImportsIronOcrPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsingInput = New OcrInput() ' Create new OCR inputInput.Title = "Html Title" ' Set the HTML titleInput.AddImage("image1.jpeg") ' Add an image to be converted to HTML DimResult = Ocr.Read(Input) ' Perform OCRResult.SaveAsHocrFile("results.html") ' Export the result as an HTML fileEndUsing
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using Input = New OcrInput() ' Create new OCR input
Input.Title = "Html Title" ' Set the HTML title
Input.AddImage("image1.jpeg") ' Add an image to be converted to HTML
Dim Result = Ocr.Read(Input) ' Perform OCR
Result.SaveAsHocrFile("results.html") ' Export the result as an HTML file
End Using
Awọn Ajọ Imudarasi Aworan OCR
IronOCR n pese awọn asẹ alailẹgbẹ fun awọn ohun OcrInput lati mu ilọsiwaju OCR ṣiṣẹ.
Apẹrẹ Igbega Aworan Aworan
Ṣe awọn aworan titẹ sii OCR ga julọ lati ṣe dara julọ, awọn abajade OCR yiyara.
// Import the IronOcr namespaceusing IronOcr;varOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to Yorubausing (varInput = new OcrInput(@"LowQuality.jpeg")) // Load a low-quality image{Input.DeNoise(); // Correct digital noiseInput.Deskew(); // Correct skewing varResult = Ocr.Read(Input); // Perform OCRConsole.WriteLine(Result.Text); // Output the recognized text to the console}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
using (var Input = new OcrInput(@"LowQuality.jpeg")) // Load a low-quality image
{
Input.DeNoise(); // Correct digital noise
Input.Deskew(); // Correct skewing
var Result = Ocr.Read(Input); // Perform OCR
Console.WriteLine(Result.Text); // Output the recognized text to the console
}
' Import the IronOcr namespaceImportsIronOcrPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaUsingInput = New OcrInput("LowQuality.jpeg") ' Load a low-quality imageInput.DeNoise() ' Correct digital noiseInput.Deskew() ' Correct skewing DimResult = Ocr.Read(Input) ' Perform OCRConsole.WriteLine(Result.Text) ' Output the recognized text to the consoleEndUsing
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Using Input = New OcrInput("LowQuality.jpeg") ' Load a low-quality image
Input.DeNoise() ' Correct digital noise
Input.Deskew() ' Correct skewing
Dim Result = Ocr.Read(Input) ' Perform OCR
Console.WriteLine(Result.Text) ' Output the recognized text to the console
End Using
Akojọ ti awọn Ajọ Aworan OCR
Awọn asẹwọle input lati jẹki iṣẹ OCR eyiti a ṣe sinu IronOCR pẹlu:
OcrInput.Rotate (awọn iwọn meji) - Awọn aworan yiyi nipasẹ nọmba awọn iwọn ni titọ. Fun alatako-aago, lo awọn nọmba odi.
OcrInput.Binarize () - Ajọ aworan yii yipada gbogbo ẹbun dudu tabi funfun pẹlu laisi ilẹ aarìn. Le Mu Awọn ọran iṣe OCR ṣiṣẹ ti itansan kekere ti ọrọ si abẹlẹ.
OcrInput.ToGrayScale () - Ajọ aworan yii yipada gbogbo ẹbun sinu iboji ti grayscale. Ko seese lati mu ilọsiwaju OCR dara ṣugbọn o le mu iyara pọ si
OcrInput.Contrast () - Mu ki iyatọ pọ si laifọwọyi. Ajọ yi nigbagbogbo n mu iyara OCR pọ ati deede ni awọn iwoye itansan kekere.
OcrInput.DeNoise () - Yọ ariwo oni-nọmba. Ajọ yii yẹ ki o lo nikan nibiti o ti nireti ariwo.
OcrInput.Invert () - Yi gbogbo awọ pada. Eg White di dudu: dudu di funfun.
OcrInput.Dilate () - Mofoloji To ti ni ilọsiwaju. Dilation ṣe afikun awọn piksẹli si awọn aala ti awọn nkan ninu aworan kan. Idakeji ti Erode
OcrInput.Erode () - Mofoloji To ti ni ilọsiwaju. Erosion yọ awọn piksẹli lori awọn aala ohun Idojukọ Dilate
OcrInput.Deskew () - Yiyi aworan nitorina o jẹ ọna ti o tọ ati orthogonal. Eyi wulo pupọ fun OCR nitori ifarada Tesseract fun awọn iwo wiwọn le jẹ kekere bi awọn iwọn 5.
OcrInput.DeepCleanBackgroundNoise () - Iyọkuro ariwo isale Eru. Lo àlẹmọ yii nikan bi o ba jẹ pe ariwo ariwo lẹhin iwe ni a mọ, nitori pe asẹ yii yoo tun eewu atehinwa deede OCR ti awọn iwe mimọ, ati pe Sipiyu gbowolori pupọ.
OcrInput.EnhanceResolution - Ṣe iyi ipinnu awọn aworan didara kekere. A ko nilo àlẹmọ yii nigbagbogbo nitori OcrInput.MinimumDPI ati OcrInput.TargetDPI yoo mu laifọwọyi ati yanju awọn igbewọle ipinnu kekere.
CleanBackgroundNoise. Eyi jẹ eto eyiti o jẹ akoko to n gba; sibẹsibẹ, o gba aaye ikawe laaye laaye lati nu ariwo oni-nọmba laifọwọyi, awọn iyọ iwe, ati awọn aipe miiran laarin aworan oni-nọmba eyiti yoo jẹ ki o jẹ ailagbara ti kika nipasẹ awọn ile-ikawe OCR miiran.
EnhanceContrast jẹ eto eyiti o fa ki IronOCR mu alekun itansan ti ọrọ pọ si abẹlẹ ti aworan kan, jijẹ deede ti OCR ati ṣiṣe alekun gbogbogbo ati iyara ti OCR.
Imudarasi jẹ ipinnu ti yoo ṣe awari awọn aworan irẹwọn kekere (eyiti o wa labẹ d555 dida) ati gbe aworan soke ni adaṣe ati lẹhinna pọn gbogbo ọrọ ki o le ka ni pipe nipasẹ ile-ikawe OCR. Botilẹjẹpe iṣiṣẹ yii jẹ funrararẹ n gba akoko, o dinku gbogbo akoko ni apapọ fun iṣẹ OCR lori aworan kan.
Ede IronOCR ṣe atilẹyin awọn akopọ ede kariaye 22, ati pe eto ede le ṣee lo lati yan ọkan tabi diẹ sii sii awọn ede pupọ lati lo fun iṣẹ OCR.
Nwon.Mirza IronOCR ṣe atilẹyin awọn imọran meji. A le yan lati boya lọ fun iyara ati iwuwo deede ti iwe aṣẹ kan, tabi lo ilana ilọsiwaju ti o nlo diẹ ninu awọn awoṣe itetisi atọwọda lati mu ilọsiwaju deede ti ọrọ OCR ṣiṣẹ laifọwọyi nipa wiwo ibatan iṣiro ti awọn ọrọ si ara wa ni gbolohun ọrọ.
ColorSpace jẹ eto eyiti a le yan si OCR ni grayscale tabi awọ. Ni gbogbogbo, grayscale ni aṣayan ti o dara julọ. Sibẹsibẹ, nigbamiran nigbati awọn ọrọ tabi awọn ipilẹ ti hue ti o jọra yatọ ṣugbọn awọ ti o yatọ pupọ, aaye awọ awọ kikun yoo pese awọn abajade to dara julọ.
ṢawariWhiteTextOnDarkBackgrounds. Ni gbogbogbo, gbogbo awọn ile-ikawe OCR nireti lati wo ọrọ dudu lori awọn ipilẹ funfun. Eto yii gba IronOCR laaye lati ṣe awari awọn odi, tabi awọn oju-iwe dudu pẹlu ọrọ funfun, ki o ka wọn.
Iru InputImageType. Eto yii ngbanilaaye fun Olùgbéejáde lati ṣe itọsọna ile-ikawe OCR bi boya o nwo iwe-ipamọ ni kikun tabi snippet kan, gẹgẹ bi sikirinifoto.
RotateAndStraighten jẹ eto ilọsiwaju ti o fun laaye IronOCR agbara alailẹgbẹ lati ka awọn iwe aṣẹ eyiti kii ṣe iyipo nikan, ṣugbọn boya irisi ti o ni ninu, gẹgẹbi awọn fọto ti awọn iwe ọrọ.
ReadBarcodes jẹ ẹya ti o wulo eyiti o fun laaye IronOCR lati ka awọn barcodes laifọwọyi ati awọn koodu QR lori awọn oju-iwe bi o ṣe tun ka ọrọ, laisi fifi afikun akoko ẹru nla kun.
Iwọn awọ. Eto yii pinnu iye diẹ ninu ẹbun fun ẹbun ile-ikawe OCR yoo lo lati pinnu ijinle awọ kan. Ijinlẹ awọ ti o ga julọ le ṣe alekun didara OCR, ṣugbọn yoo tun mu akoko ti o nilo fun iṣẹ OCR lati pari.
Awọn ede pẹlu Jẹmánì, Faranse, Gẹẹsi, Ṣaina, Japanese ati ọpọlọpọ diẹ sii. Awọn akopọ ede Pataki wa fun iwe irinna MRZ, awọn sọwedowo MICR, Data Owo, Awọn awo iwe-aṣẹ ati ọpọlọpọ diẹ sii. O tun le lo eyikeyi faili Tesseract ".traineddata" - pẹlu awọn ti o ṣẹda funrararẹ.
Apeere Ede
Lilo awọn ede OCR Miiran.
// Using IronOcr to process Arabic language OCRusing IronOcr;// PM> Install IronOcr.Languages.ArabicvarOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Arabic; // Set the language to Arabicusing (var input = new OcrInput()) // Create new OCR input{ input.AddImage("img/arabic.gif"); // Add an image with Arabic text // Additional models can be added if needed // IronTesseract can read what standard Tesseract cannot if input quality is low. varResult = Ocr.Read(input); // Perform OCR // Console can't easily display Arabic on Windows; save to disk instead.Result.SaveAsTextFile("arabic.txt"); // Save OCR result to text file}
// Using IronOcr to process Arabic language OCR
using IronOcr;
// PM> Install IronOcr.Languages.Arabic
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Arabic; // Set the language to Arabic
using (var input = new OcrInput()) // Create new OCR input
{
input.AddImage("img/arabic.gif"); // Add an image with Arabic text
// Additional models can be added if needed
// IronTesseract can read what standard Tesseract cannot if input quality is low.
var Result = Ocr.Read(input); // Perform OCR
// Console can't easily display Arabic on Windows; save to disk instead.
Result.SaveAsTextFile("arabic.txt"); // Save OCR result to text file
}
' Using IronOcr to process Arabic language OCRImportsIronOcr' PM> Install IronOcr.Languages.ArabicPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Arabic' Set the language to ArabicUsing input = New OcrInput() ' Create new OCR input input.AddImage("img/arabic.gif") ' Add an image with Arabic text ' Additional models can be added if needed ' IronTesseract can read what standard Tesseract cannot if input quality is low. DimResult = Ocr.Read(input) ' Perform OCR ' Console can't easily display Arabic on Windows; save to disk instead.Result.SaveAsTextFile("arabic.txt") ' Save OCR result to text fileEndUsing
' Using IronOcr to process Arabic language OCR
Imports IronOcr
' PM> Install IronOcr.Languages.Arabic
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Arabic ' Set the language to Arabic
Using input = New OcrInput() ' Create new OCR input
input.AddImage("img/arabic.gif") ' Add an image with Arabic text
' Additional models can be added if needed
' IronTesseract can read what standard Tesseract cannot if input quality is low.
Dim Result = Ocr.Read(input) ' Perform OCR
' Console can't easily display Arabic on Windows; save to disk instead.
Result.SaveAsTextFile("arabic.txt") ' Save OCR result to text file
End Using
Apeere Ede Pupo
O tun ṣeeṣe si OCR nipa lilo awọn ede lọpọlọpọ ni akoko kanna. Eyi le ṣe iranlọwọ gaan lati gba metadata ede Gẹẹsi ati awọn URL ninu awọn iwe aṣẹ Unicode.
// Using IronOcr for multi-language OCR processingusing IronOcr;// PM> Install IronOcr.Languages.ChineseSimplifiedvarOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.ChineseSimplified; // Set primary language to Chinese SimplifiedOcr.AddSecondaryLanguage(OcrLanguage.Yoruba); // Add Yoruba as a secondary language// Multiple languages can be addedusing (var input = new OcrInput()) // Create new OCR input{ input.Add("multi-language.pdf"); // Add a multi-language PDF varResult = Ocr.Read(input); // Perform OCRResult.SaveAsTextFile("results.txt"); // Save OCR result to text file}
// Using IronOcr for multi-language OCR processing
using IronOcr;
// PM> Install IronOcr.Languages.ChineseSimplified
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.ChineseSimplified; // Set primary language to Chinese Simplified
Ocr.AddSecondaryLanguage(OcrLanguage.Yoruba); // Add Yoruba as a secondary language
// Multiple languages can be added
using (var input = new OcrInput()) // Create new OCR input
{
input.Add("multi-language.pdf"); // Add a multi-language PDF
var Result = Ocr.Read(input); // Perform OCR
Result.SaveAsTextFile("results.txt"); // Save OCR result to text file
}
' Using IronOcr for multi-language OCR processingImportsIronOcr' PM> Install IronOcr.Languages.ChineseSimplifiedPrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.ChineseSimplified' Set primary language to Chinese SimplifiedOcr.AddSecondaryLanguage(OcrLanguage.Yoruba) ' Add Yoruba as a secondary language' Multiple languages can be addedUsing input = New OcrInput() ' Create new OCR input input.Add("multi-language.pdf") ' Add a multi-language PDF DimResult = Ocr.Read(input) ' Perform OCRResult.SaveAsTextFile("results.txt") ' Save OCR result to text fileEndUsing
' Using IronOcr for multi-language OCR processing
Imports IronOcr
' PM> Install IronOcr.Languages.ChineseSimplified
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.ChineseSimplified ' Set primary language to Chinese Simplified
Ocr.AddSecondaryLanguage(OcrLanguage.Yoruba) ' Add Yoruba as a secondary language
' Multiple languages can be added
Using input = New OcrInput() ' Create new OCR input
input.Add("multi-language.pdf") ' Add a multi-language PDF
Dim Result = Ocr.Read(input) ' Perform OCR
Result.SaveAsTextFile("results.txt") ' Save OCR result to text file
End Using
Alaye Awọn ohun OCR Awọn abajade
IronOCR pada ohun abajade abajade OCR fun iṣẹ OCR kọọkan. Ni gbogbogbo, awọn olupilẹṣẹ lo ohun-ini ọrọ ti nkan yii nikan lati jẹ ki ọrọ ṣayẹwo lati aworan naa. Sibẹsibẹ, awọn abajade OCR DOM ti ni ilọsiwaju pupọ ju eyi lọ.
// Using IronOcr to process and analyze detailed OCR resultsusing IronOcr;using System.Drawing; // Required to use System.Drawing.RectanglevarOcr = new IronTesseract(); // Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba; // Set the language to YorubaOcr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm; // Set the engine modeOcr.Configuration.ReadBarCodes = true; // Enable barcode readingusing (varInput = new OcrInput(@"images\sample.tiff")) // Load the TIFF image{ OcrResultResult = Ocr.Read(Input); // Perform OCR varPages = Result.Pages; // Access OCR result pages varWords = Pages[0].Words; // Access words on the first page varBarcodes = Result.Barcodes; // Access detected barcodes // Detailed OCR result API: // - Pages, Blocks, Paragraphs, Lines, Words, Chars // - Export Image, Coordinate fonts, Statistical data}
// Using IronOcr to process and analyze detailed OCR results
using IronOcr;
using System.Drawing; // Required to use System.Drawing.Rectangle
var Ocr = new IronTesseract(); // Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba; // Set the language to Yoruba
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm; // Set the engine mode
Ocr.Configuration.ReadBarCodes = true; // Enable barcode reading
using (var Input = new OcrInput(@"images\sample.tiff")) // Load the TIFF image
{
OcrResult Result = Ocr.Read(Input); // Perform OCR
var Pages = Result.Pages; // Access OCR result pages
var Words = Pages[0].Words; // Access words on the first page
var Barcodes = Result.Barcodes; // Access detected barcodes
// Detailed OCR result API:
// - Pages, Blocks, Paragraphs, Lines, Words, Chars
// - Export Image, Coordinate fonts, Statistical data
}
' Using IronOcr to process and analyze detailed OCR resultsImportsIronOcrImportsSystem.Drawing' Required to use System.Drawing.RectanglePrivateOcr = New IronTesseract() ' Instantiate a new IronTesseract objectOcr.Language = OcrLanguage.Yoruba' Set the language to YorubaOcr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm' Set the engine modeOcr.Configuration.ReadBarCodes = True ' Enable barcode readingUsingInput = New OcrInput("images\sample.tiff") ' Load the TIFF image DimResultAsOcrResult = Ocr.Read(Input) ' Perform OCR DimPages = Result.Pages' Access OCR result pages DimWords = Pages(0).Words' Access words on the first page DimBarcodes = Result.Barcodes' Access detected barcodes ' Detailed OCR result API: ' - Pages, Blocks, Paragraphs, Lines, Words, Chars ' - Export Image, Coordinate fonts, Statistical dataEndUsing
' Using IronOcr to process and analyze detailed OCR results
Imports IronOcr
Imports System.Drawing ' Required to use System.Drawing.Rectangle
Private Ocr = New IronTesseract() ' Instantiate a new IronTesseract object
Ocr.Language = OcrLanguage.Yoruba ' Set the language to Yoruba
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm ' Set the engine mode
Ocr.Configuration.ReadBarCodes = True ' Enable barcode reading
Using Input = New OcrInput("images\sample.tiff") ' Load the TIFF image
Dim Result As OcrResult = Ocr.Read(Input) ' Perform OCR
Dim Pages = Result.Pages ' Access OCR result pages
Dim Words = Pages(0).Words ' Access words on the first page
Dim Barcodes = Result.Barcodes ' Access detected barcodes
' Detailed OCR result API:
' - Pages, Blocks, Paragraphs, Lines, Words, Chars
' - Export Image, Coordinate fonts, Statistical data
End Using
Iṣe
IronOCR n ṣiṣẹ lati inu apoti laisi iwulo lati ṣe ohun orin tabi yi awọn aworan titẹ sii dara julọ.
Iyara jẹ gbigbona: IronOCR.2020 + ti to awọn akoko 10 yiyara ati ṣiṣe awọn aṣiṣe 250% diẹ ju awọn ti iṣaaju lọ.
Kọ ẹkọ diẹ si
Lati ni imọ siwaju sii nipa OCR ni C#, VB, F#, tabi eyikeyi ede .NET, jọwọ ka awọn itọnisọna agbegbe wa, eyiti o fun awọn apẹẹrẹ agbaye gidi ti bi a ṣe le lo IronOCR ati pe o le fihan awọn nuances ti bawo ni a ṣe le rii dara julọ yi ìkàwé.
커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.