<meta http-equiv="content-language" content="ne" />
<h1>C#र .NET मा नपाली OCR</h1>
<h6> यस कागजातको अनय ससकरणहर:</h6>
<ul>
<li> <a rel='alternate' hreflang='en' href="/csharp/ocr/languages/nepali/">अगरजी (This Page in English)</a></li>
<li> <a href="/csharp/ocr/languages/">अधिक लयागौजहर</a></li>
</ul>
<p> IronOCR एक C# सफटवयर घटक हो। .NET कोडरहरलाई छवि सहित १२ PDF भाषामा पीडीएफ कागजातहर पाठ पढन मददत परयाउछ।</p>
<p> यो Tesseract को उननत फोरक हो, विशष गरी .NET विकासकरताहरको लागि निरमित हो र वग र सटीकता दब अनय टसकरट इनजिनहरलाई नियमित रपमा परदरशन गरदछ।</p>
<h2> IronOcr.Languages.Nepali का सामगरीहर</h2>
<p> यस पयाकजमा .NET को लागी 43 OCR भाषाहर छन।</p>
<ul>
<li> नपाली</li>
<li> नपाली बसट</li>
<li> नपाली फासट</li>
</ul>
<h2> डाउनलोड गरनहोस</h2>
<p> नपाली भाषा पयाक <span style='white-space:default'>[नपाली]</span> <br/> * Download as <a class='languages-dll' href='/csharp/ocr/packages/language-packs/Nepali.ocrdata.zip'>Zip <i class='fas fa-download'></i></a> <br/> * Install via NuGet from <a target='_blank' class='languages-nuget' href="https://www.nuget.org/packages/IronOcr.Languages.Nepali/">https://www.nuget.org/packages/IronOcr.Languages.Nepali/</a> <i class='nuget-icon'></i></p>
<h2> सथापना</h2>
<p> हामील गरनपरन पहिलो करा तपाईको <strong>नपाली</strong> नट OCR पयाकज तपाईको .NET परोजकटमा सथापना गरन हो।</p>
<p> <code>PM> Install-Package IronOcr.Languages.Nepali</code></p>
<h2> कोड उदाहरण</h2>
<p> यो C#कोड उदाहरणल छवि वा PDF कागजातबाट नपाली पाठ पढछ।</p>
```csharp
// PM> Install-Package IronOcr.Languages.Nepali
using IronOcr;
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Nepali for OCR
Ocr.Language = OcrLanguage.Nepali;
// Using a statement to properly dispose of resources
using (var Input = new OcrInput(@"images\Nepali.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Get the recognized text from the OCR result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
```
<h2>IronOCR किन छनौट गरनहनछ?</h2>
<p> IronOCR एक सथापना गरन सजिलो, परण र रामरो दसतावज .NET सफटवयर लाइबररी हो।</p>
<p> कन बाहय वब सवाहर परयोग नगरी, 99.8% <strong>OCR शदधता</strong> परापत गरन IronOCR छनौट गरनहोस, चलिरहको फीस वा इनटरनटमा गोपय कागजातहर पठाउदन।</p>
<h4> किन C# विकासकरताहरल भनिला Tesseract मा IronOCR छनौट गरछन:</h4>
<ul>
<li> एकल DLL वा नगटको रपमा सथापना गरनहोस</li>
<li> Tesseract for, and Eng ईनजिनहरका लागि बकस बाहिर।</li>
<li> शदधता <strong>99.8%</strong> ल नियमित टसकरकटलाई आउटपरमरस गरदछ।</li>
<li> बलजिग सपीड र मलटि थरडिग।</li>
<li> MVC, वब अनपरयोग, डसकटप, कनसोल र सरभर अनपरयोग सगत</li>
<li> काम गरन Exes वा C++ कोड छन</li>
<li> परण PDF OCR समरथन</li>
<li> लगभग कन पनि छवि फाइल वा PDF मा OCR परदरशन गरन</li>
<li> परण .NET कोर, मानक र फरमवरक समरथन</li>
<li> विनडोज, मयाक, लिनकस, Azure, डकर, Lambda, AWS मा डिपलोय गरनहोस</li>
<li> बारकोड र QR कोडहर पढनहोस</li>
<li> XCR को रपमा OCR निरयात गरनहोस</li>
<li> खोजी गरन योगय पीडीएफ कागजातहरमा ओसीआर निरयात गरनहोस</li>
<li> मलटिथरडिग समरथन</li>
<li> 126 अनतरराषटरिय भाषाहर सब नगट वा OCR डटा फाइलहर मारफत परबनधित गरियो</li>
<li> छविहर, निरदशाकहर, तथया .कहर र फनटहर निकालनहोस। कवल पाठ मातर होईन।</li>
<li> वाणिजयिक र सवामितव अनपरयोगहर भितर Tesseract OCR पनः वितरित गरन परयोग गरन सकिनछ।</li>
</ul>
<p> <em>लौह OCR चमकिनछ जब वासतविक विशव छविहर र तरटिपरण कागजातहर जसत फोटोगराफहर, वा कम रिजोलसनको सकयानमा जन डिजिटल आवाज वा अपरणताहरको साथ काम गरदछ।</em></p>
<p> .NET पलटफरमको लागि अनय <a href="/csharp/ocr/use-case/free-ocr-csharp/">नि: शलक ओसीआर</a> पसतकालयहर तयसता अनय .NET Tesseract एपीआईहर र वब सवाहरल यी वासतविक विशव परयोगको कसहरमा यति रामरो परदरशन गरदनन।</p>
<h2> Tesseract 5 को साथ OCR - C#मा कोडिग सर गरनहोस</h2>
<p> तलको कोड नमनाल C# वा VB .NET परयोग गरर छविबाट पाठ पढन कति सजिलो छ भनर दखाउदछ।</p>
<h3> OneLiner</h3>
```csharp
using IronOcr;
// Perform OCR in a single line of code
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
```
<h3>हलो वरलड विनयास योगय</h3>
```csharp
// PM> Install-Package IronOcr.Languages.Nepali
using IronOcr;
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Nepali for OCR
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Add images to the OCR input
Input.AddImage("images/sample.jpeg");
//... तपाई छविहरको कन सखया थपन सकनहनछ
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
```
<h3>C# PDF OCR</h3>
<p> समान दषटिकोण कन पनि पीडीएफ कागजातबाट पाठ निकालन समान रपमा परयोग गरन सकिनछ।</p>
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var input = new OcrInput())
{
// Add PDF to the OCR input with optional password
input.AddPdf("example.pdf", "password");
// हामी विशिषट पीडीएफ पषठ नमबरहर OCR मा चयन गरन सकदछौ
// Perform OCR and get the result
var Result = Ocr.Read(input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
Console.WriteLine($"{Result.Pages.Count} Pages");
}
```
<h3>मलटीपज TIFF का लागि OCR</h3>
<p> OCR पढाई TIFF फाईल ढाचा बह पषठ कागजात सहित। TIFF खोजन योगय पाठको साथ सिधा पीडीएफ फाइलमा पनि रपानतरण गरन सकिनछ।</p>
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Add a multi-frame TIFF image to the OCR input
input.AddMultiFrameTiff("multi-frame.tiff");
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
```
<h3>बारकोड र QR</h3>
<p> आइरन ओसीआरको एक विशिषट विशषता यो हो कि यसल कागजातहरबाट बारकोडहर र कयआर कोडहर पढन सकदछ जब यो पाठको लागि सकयान हदछ। <code>OcrResult.OcrBarcode</code> ककषा को उदाहरणहर हरक सकयान गरिएको बारकोडको बारमा विसतत जानकारी विकासकरतालाई दिनछ।</p>
```csharp
using IronOcr;
var Ocr = new IronTesseract();
// Enable barcode reading configuration
Ocr.Configuration.ReadBarCodes = true;
// Using block for input handling
using (var input = new OcrInput())
{
// Add an image containing barcodes
input.AddImage("img/Barcode.png");
// Perform OCR and get the result
var Result = Ocr.Read(input);
// Iterate over each scanned barcode
foreach (var Barcode in Result.Barcodes)
{
// Output the barcode value to the console
Console.WriteLine(Barcode.Value);
// परकार र सथान गणहर पनि उजागर गरियो
}
}
```
<h3>छविहरको विशिषट कषतरहरमा OCR</h3>
<p> सब आइरन ओसीआरको सकयानि and र पढन विधिहरल पषठ वा कन पषठबाट हामी पाठ पढन चाहनछौ भनन ठयाकक निरदिषट गरन कषमता परदान गरदछ। यो धर उपयोगी छ जब हामी मानकीकत फारमहर हरदछौ र धर समय बचत गरन र दकषता सधार गरन सकदछौ।</p>
<p> करप कषतरहर परयोग गरन, हामील परणाली सनदरभमा परणाली सनदरभ थपन परछ। <code>System.Drawing</code> ताकि हामी <code>System.Drawing.Rectangle</code> वसत परयोग गरन सकदछौ।</p>
```csharp
using IronOcr;
using System.Drawing;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Define a specific content area to be read
var ContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };
// आयाम px मा छन
// Add a specific region of the image for OCR
Input.Add("document.png", ContentArea);
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
```
<h3>OCR कम गणवतता सकयानका लागि</h3>
<p> IronOCR <code>OcrInput</code> वरगल सामानय Tesseract पढन नसकन सकयानहर फिकस गरन सकदछ।</p>
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
// Apply image enhancements for low-quality scans
Input.DeNoise(); // डिजिटल धवनि र गरीब सकयानिग फिकस गरदछ
Input.Deskew(); // रोटशन र परिपरकषय फिकस गरदछ
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
```
<h3>OCR परिणामहर खोजी योगय PDF को रपमा निरयात गरनहोस</h3>
<p> परतिलिपि योगय पाठ सटरिङको साथ PDF मा छवि। खोज इनजिन र डाटाबस दवारा अनकरमित गरन सकिनछ।</p>
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Set the title for the searchable PDF
input.Title = "Quarterly Report";
// Add multiple images for OCR input
input.AddImage("image1.jpeg");
input.AddImage("image2.png");
input.AddImage("image3.gif");
// Perform OCR and save the result as a searchable PDF
var Result = Ocr.Read(input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
```
<h3>TIFF खोजन योगय PDF रपानतरणमा</h3>
<p> TIFF कागजात (वा छवि फाईलहरको कन समह) सिध खोजन योगय पीडीएफमा रपानतरण गरनहोस जन इनटरानट, वबसाइट र गगल खोजी इञजिनहर दवारा अनकरमणिका गरन सकिनछ।</p>
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Add a multi-frame TIFF for conversion
input.AddMultiFrameTiff("example.tiff");
// Perform OCR and save as a searchable PDF
var Result = Ocr.Read(input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
```
<h3>HTML को रपमा OCR परिणामहर निरयात गरनहोस</h3>
<p> OCR image to XCR HTML रपानतरण।</p>
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Set the title for the OCR output
input.Title = "Html Title";
// Add an image to the OCR input
input.AddImage("image1.jpeg");
// Perform OCR and save the result as HTML
var Result = Ocr.Read(input);
Result.SaveAsHocrFile("results.html");
}
```
<h2>OCR छवि सवरदधन फिलटर</h2>
<p> ICROCR ल OCR परदरशन सधार गरन <code>OcrInput</code> वसतहरको लागि अनपम फिलटरहर परदान गरदछ।</p>
<h3> छवि सवरधन कोड उदाहरण</h3>
<p> OCR इनपट छविहर उचच गणवततामा छिटो OCR परिणामहर उतपादन गरदछ।</p>
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
// Apply image enhancements for OCR
Input.DeNoise(); // डिजिटल धवनि र गरीब सकयानिग फिकस गरदछ
Input.Deskew(); // रोटशन र परिपरकषय फिकस गरदछ
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
```
<h3>OCR छवि फिलटरहरको सची</h3>
<p> ICROCR मा निरमित ओसीआर परदरशन बदधि गरन इनपट फिलटरहरल समावश गरदछ:</p>
<ul>
<li> <strong>OcrInput.Rotate (डबल डिगरी)</strong> - छविहर घडीको दिशामा डिगरीको एक नमबर दवारा घमाउदछ। एनटी-कलकवाइजको लागि, नकारातमक सखया परयोग गरनहोस।</li>
<li> <strong>OcrInput.Binarize ()</strong> - यो छवि फिलटर मधय पिकसलको साथ परतयक पिकसल कालो वा सतो गरदछ। पषठभमिमा पाठको एकदम कम कनटरासटको OCR परदरशन कसहर सधार गरन सकदछ।</li>
<li> <strong>OcrInput.ToGrayScale ()</strong> - यस छवि फिलटरल परतयक पिकसललाई गरसकलको छायामा परिणत गरदछ। OCR सटीकता सधार गरन असमभव तर गतिको सधार हन सकछ</li>
<li> <strong>OcrInput.Contrast ()</strong> - सवतः कनटरासट <strong>बढाउदछ</strong> । यस फिलटरल अकसर कम कनटरासट सकयानहरमा OCR गति र शदधता सधार गरदछ।</li>
<li> <strong>OcrInput.DeNoise ()</strong> - डिजिटल आवाज हटाउछ। यो फिलटर मातर परयोग गरनपरनछ जहा हललाको आशा गरिनछ।</li>
<li> <strong>OcrInput.Invert ()</strong> - हरक र <strong>In उलटाउछ</strong> । उदाहरणका लागि सतो कालो हनछ: कालो सतो हनछ।</li>
<li> <strong>OcrInput.Dilate ()</strong> - उननत <strong>मोरफोलजी</strong> । <em>डिलसनल</em> छविमा वसतहरको सीमामा पिकसलहर <em>थपको छ</em> । ईरोडको विपरित</li>
<li> <strong>OcrInput.Erode ()</strong> - उननत <strong>मोरफोलजी</strong> । <em>इरोसनल</em> वसतको सीमामा पिकसल हटाउदछ</li>
<li> <strong>OcrInput.Deskew ()</strong> - तसविर घमाउदछ ताकि यो सहि तरीकाल माथि र अरथोगोनल हो। यो ओसीआरको लागि धर उपयोगी छ किनकि सकन सकयानहरको लागि Tesseract सहिषणता degrees डिगरी जति कम हन सकछ।</li>
<li> <strong>OcrInput.DeepCleanBackgroundNoise ()</strong> - भारी पषठभमि आवाज हटाउन। कवल यो फिलटर परयोग गरनहोस यदि चरम कागजात पषठभमि शोर जञात छ, किनकि यस फिलटरल सफा कागजातहरको ओसीआर शदधतालाई पनि कम गरन जोखिममा पारछ, र धर सीपीय महगो छ।</li>
<li> <strong>OcrInput.EnhanceResolution</strong> - कम गणवतता छविहरको रिजोलसन विसतार गरदछ। यस फिलटर पराय: आवशयक परदन किनकि <em>OcrInput.MINimumDPI</em> र <em>OcrInput.TargetDPI</em> सवचालित रपमा कम रिजोलसन इनपटहर <em>समातछ</em> र समाधान गरदछ।</li>
</ul>
<p> <strong>कलीनबयाकगराउडनोईस।</strong> यो एक सटिग हो जन कहि समय उपभोकता हो; ज होस, यसल पसतकालयलाई सवचालित रपमा डिजिटल आवाज, कागज crumples, र एक डिजिटल छवि भितर अनय अपरणताहर सफा गरन अनमति दिनछ जन अनय OCR लाइबररीहर पढन असकषमको रपमा परसतत गरदछ।</p>
<p> <strong>एनहानससनटरासट</strong> एक सटिग हो जसल आइरन <strong>ओसीआरलाई</strong> सवचालित रपमा छविको पषठभमि <strong>बिरदद</strong> पाठको विरोधाभास बढाउदछ, <strong>ओसीआरको</strong> शदधता बढाउदछ र सामानयतया परदरशन र ओसीआरको गति बढाउदछ।</p>
<p> <strong>EnhanceResolution</strong> एक सटिग हो जसल सवचालित तवरल कम रिजोलसन छविहर पतता लगाउदछ (जन २ <strong>d5</strong> dpi अनतरगत हनछ) र सवचालित रपमा छवि अपसकल गरदछ र तयसपछि सब पाठलाई तीकषण गरदछ ताकि यसलाई परण रपमा OCR लाइबररी दवारा पढन सकिनछ। यदयपि यो अपरशन आफमा समय खपत हन छ, यसल सामानयतया छविमा OCR अपरशनको लागि समगर समय घटाउछ।</p>
<p> <strong>भाषा</strong> आइरन ओसीआरल २२ अनतरराषटरिय भाषा पयाकहर समरथन गरदछ, र भाषा सटिगस एक वा अधिक एकाधिक भाषाहर चयन गरन ओसीआर अपरशनको लागि परयोग गरन सकिनछ।</p>
<p> <strong>रणनीति</strong> आयरन OCR ल दई रणनीतिहर समरथन गरदछ। हामी या त कागजातको छिटो र कम सटीक सकयानको लागि जान सकछौ, वा एक उननत रणनीति परयोग गरन सकछौ जसल कही कतरिम बदधिमतता मोडलहर परयोग गरदछ सवचालित रपमा ओसीआर पाठको शदधतालाई सधार गरनका लागि वाकयमा एक अरकामा शबदहरको साखयिकीय समबनधलाई हरर। ।</p>
<p> <strong>कलरसपस</strong> एक सटिग हो जहा हामी गरसकल वा रगमा OCR लाई छनौट गरन सकछौ। सामानयतया, गरसकल उततम विकलप हो। ज होस, कहिलकाही जब तयहा पाठहर वा समान रगको पषठभमि हनछ तर धर भिनन रग, परण र . color रग ठाउल रामरो परिणाम परदान गरदछ।</p>
<p> <strong>WWiteiteTextOnDarkBackgrounds पतता लगाउनहोस।</strong> सामानयतया, सब OCR पसतकालयहर सतो पषठभमिमा कालो पाठ हरन अपकषा गरदछ। यो सटिल फलामको OCR लाई सवचालित रपमा नकारातमक, वा सतो पाठको साथ कालो पषठहर पतता लगाउन र यसलाई पढन अनमति दिनछ।</p>
<p> <strong>InputImageType।</strong> यस सटिल विकासकरतालाई OCR लाइबररी मारगनिरदशन गरन अनमति दिनछ कि यो एक परण कागजात वा सनिपट हरद छ कि जसतो सकरिनसटको रपमा।</p>
<p> <strong>RotateAndStraight</strong> एक उननत सटिग हो जसल आइरन OCR लाई अदवितीय कषमता कागजातहर पढन अनमति दिनछ जन कवल घमाइएको छन, तर समभव परिपरकषयमा जसत पाठ कागजातहरको फोटोगराफहर।</p>
<p> <strong>रिडबोरकोडस</strong> एक उपयोगी सविधा हो जसल आइरन <strong>ओसीआरलाई</strong> सवचालित रपमा पषठमा बारकोडहर र कयआर कोडहर पढन अनमति दिनछ किनकि यसल ठलो अतिरिकत समयको बोझ थप नगरीकन पाठ पनि पढछ।</p>
<p> <strong>कलर डिपथ।</strong> यस सटिल निरधारित गरदछ कि पिकसल परति पिकसल कति बिटस ओसीआर लाइबररील र aको गहराई निरधारित गरन परयोग गरदछ। एक उचच र . depth गहिराईल ओसीआर गणसतर बढाउन सकछ, तर ओसीआर कारय परा हन आवशयक समय बदधि गरदछ।</p>
<h2> १२6 भाषा पयाक</h2>
<p> आइरन ओसीआरल <strong>१२6 अनतरराषटरिय भाषाहर</strong> भाषा पयाकहर मारफत समरथन गरदछ जन DLLs को रपमा वितरित गरिएको छ, जन <a href="/csharp/ocr/languages/">यस वबसाइटबाट डाउनलोड</a> गरन सकिनछ, वा <a href="https://www.nuget.org/packages?q=IronOcr.Languages">नजट पयाकज परबनधकबाट पनि</a> ।</p>
<p> भाषाहरमा जरमन, फरानसली, अगरजी, चिनिया, जापानीज र अनय धर समावश छन। पासपोरट एमआरजड, एमआईसीआर चकहर, विततीय डटा, लाइसनस पलटहर र अधिक धरको लागि विशषजञ भाषा पयाकहर अवसथित छन। तपाई कन पनि परीकषपण ".रनडडाटा" फाइल पनि परयोग गरन सकनहनछ - जसमा तपाईल आफ सिरजना गरनभयो।</p>
<h3> भाषा उदाहरण</h3>
<p> अनय OCR भाषाहर परयोग गरद।</p>
```csharp
// PM> Install IronOcr.Languages.Arabic
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Arabic;
// Using block for input handling
using (var input = new OcrInput())
{
// Add an Arabic image to the OCR input
input.AddImage("img/arabic.gif");
// if necessary, add image filters
// In this case, even if the input is of very low quality
// IronTesseract might still be able to read it when traditional Tesseract cannot.
// Perform OCR and get the result
var Result = Ocr.Read(input);
// Windows Console might not easily print Arabic
// Save it to disk instead
Result.SaveAsTextFile("arabic.txt");
}
```
<h3>बह भाषा उदाहरण</h3>
<p> यो पनि समभव छ OCR एक समयमा धर भाषाहर परयोग गरर। यसल यनिकोड कागजातहरमा अगरजी भाषा मटाडटा र यआरएलहर लिन मददत गरदछ।</p>
```csharp
// PM> Install IronOcr.Languages.ChineseSimplified
using IronOcr;
var Ocr = new IronTesseract();
// Set primary language to Chinese Simplified
Ocr.Language = OcrLanguage.ChineseSimplified;
// Add secondary language settings
Ocr.AddSecondaryLanguage(OcrLanguage.Nepali);
// Add any language as required
// Using block for input handling
using (var input = new OcrInput())
{
// Add a multi-language PDF to the OCR input
input.Add("multi-language.pdf");
// Perform OCR and get the result
var Result = Ocr.Read(input);
// Save the result as a text file
Result.SaveAsTextFile("results.txt");
}
```
<h2>विसतत OCR परिणाम वसतहर</h2>
<p> फलामको OCR ल परतयक OCR अपरशनको लागि OCR परिणाम वसत फिरता गरदछ। सामानयतया, विकासकरताहरल छविबाट पाठ सकयान गरन कवल यो वसतको पाठ गण परयोग गरदछन। ज होस, OCR नतीजा DOM यो भनदा धर उननत छ।</p>
```csharp
using IronOcr;
using System.Drawing; //असबली सनदरभ थपनहोस
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;
// Enable barcode reading
Ocr.Configuration.ReadBarCodes = true;
// Using block for input handling
using (var Input = new OcrInput(@"images\sample.tiff"))
{
// Perform OCR and get the full result
OcrResult Result = Ocr.Read(Input);
// accessing detailed information from the OCR result
var Pages = Result.Pages;
var Words = Pages[0].Words;
var Barcodes = Result.Barcodes;
// Here a extensive API for exploration:
// - Pages, Blocks, Paragraphs, Lines, Words, Characters
// - Image export, font coordinates, statistical data
}
```
<h2>परदरशन</h2>
<p> IronOCR ल बाकसको बाहिर कारय गरदछ कारय समपादन टयन गरन वा भारी इनपट छविहर परिमारजन गरन आवशयक परदन।</p>
<p> सपीड बलिजिग हो: IronOCR.2020 + १० पटकसमम छिटो छ र अघिललो निरमाणहरल भनदा २ %०% कम तरटिहर बनाउदछ।</p>
<h2> थप सिक</h2>
<p> O # को बारमा अधिक जानन C #, VB, F #, वा कन अरको .नट भाषामा, कपया <a href="/csharp/ocr/tutorials/how-to-read-text-from-an-image-in-csharp-net/">हामरो समदाय टयटोरियलहर पढनहोस</a> , जसल कसरी आइरन OCR परयोग गरन सकिनछ र कसरी उततम परयोग गरन भनन बारीकता दखाउन सकछ भनन वासतविक विशव उदाहरणहर दिनछ। यो पसतकालय</p>
<p> <a href="/csharp/ocr/object-reference/api/">.NET विकासकरताहरको लागि</a> परण <a href="/csharp/ocr/object-reference/api/">वसत सनदरभ</a> पनि उपलबध छ।</p>
हामील गरनपरन पहिलो करा तपाईको नपाली नट OCR पयाकज तपाईको .NET परोजकटमा सथापना गरन हो।
PM> Install-Package IronOcr.Languages.Nepali
कोड उदाहरण
यो C#कोड उदाहरणल छवि वा PDF कागजातबाट नपाली पाठ पढछ।
// PM> Install-Package IronOcr.Languages.Nepaliusing IronOcr;// Create an instance of the IronTesseract OCR enginevarOcr = new IronTesseract();// Set the language to Nepali for OCROcr.Language = OcrLanguage.Nepali;// Using a statement to properly dispose of resourcesusing (varInput = new OcrInput(@"images\Nepali.png")){ // Perform OCR on the input image varResult = Ocr.Read(Input); // Get the recognized text from the OCR result varAllText = Result.Text; // Output the recognized text to the consoleConsole.WriteLine(AllText);}
// PM> Install-Package IronOcr.Languages.Nepali
using IronOcr;
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Nepali for OCR
Ocr.Language = OcrLanguage.Nepali;
// Using a statement to properly dispose of resources
using (var Input = new OcrInput(@"images\Nepali.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Get the recognized text from the OCR result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
C#
IronOCR किन छनौट गरनहनछ?
IronOCR एक सथापना गरन सजिलो, परण र रामरो दसतावज .NET सफटवयर लाइबररी हो।
वाणिजयिक र सवामितव अनपरयोगहर भितर Tesseract OCR पनः वितरित गरन परयोग गरन सकिनछ।
लौह OCR चमकिनछ जब वासतविक विशव छविहर र तरटिपरण कागजातहर जसत फोटोगराफहर, वा कम रिजोलसनको सकयानमा जन डिजिटल आवाज वा अपरणताहरको साथ काम गरदछ।
.NET पलटफरमको लागि अनय नि: शलक ओसीआर पसतकालयहर तयसता अनय .NET Tesseract एपीआईहर र वब सवाहरल यी वासतविक विशव परयोगको कसहरमा यति रामरो परदरशन गरदनन।
Tesseract 5 को साथ OCR - C#मा कोडिग सर गरनहोस
तलको कोड नमनाल C# वा VB .NET परयोग गरर छविबाट पाठ पढन कति सजिलो छ भनर दखाउदछ।
OneLiner
using IronOcr;// Perform OCR in a single line of codestringText = new IronTesseract().Read(@"img\Screenshot.png").Text;
using IronOcr;
// Perform OCR in a single line of code
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
ImportsIronOcr' Perform OCR in a single line of codePrivateTextAsString = (New IronTesseract()).Read("img\Screenshot.png").Text
Imports IronOcr
' Perform OCR in a single line of code
Private Text As String = (New IronTesseract()).Read("img\Screenshot.png").Text
हलो वरलड विनयास योगय
// PM> Install-Package IronOcr.Languages.Nepaliusing IronOcr;// Create an instance of the IronTesseract OCR enginevarOcr = new IronTesseract();// Set the language to Nepali for OCROcr.Language = OcrLanguage.Nepali;// Using block for input handlingusing (varInput = new OcrInput()){ // Add images to the OCR inputInput.AddImage("images/sample.jpeg"); //... तपाई छविहरको कन सखया थपन सकनहनछ // Perform OCR and get the result varResult = Ocr.Read(Input); // Output the recognized text to the consoleConsole.WriteLine(Result.Text);}
// PM> Install-Package IronOcr.Languages.Nepali
using IronOcr;
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Nepali for OCR
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Add images to the OCR input
Input.AddImage("images/sample.jpeg");
//... तपाई छविहरको कन सखया थपन सकनहनछ
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Create an instance of the IronTesseract OCR engineDimOcrAs New IronTesseract()' Set the language to Nepali for OCROcr.Language = OcrLanguage.Nepali' Using block for input handlingUsingInputAs New OcrInput() ' Add images to the OCR inputInput.AddImage("images/sample.jpeg") '... तपाई छविहरको कन सखया थपन सकनहनछ ' Perform OCR and get the result DimResult = Ocr.Read(Input) ' Output the recognized text to the consoleConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Create an instance of the IronTesseract OCR engine
Dim Ocr As New IronTesseract()
' Set the language to Nepali for OCR
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using Input As New OcrInput()
' Add images to the OCR input
Input.AddImage("images/sample.jpeg")
'... तपाई छविहरको कन सखया थपन सकनहनछ
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Output the recognized text to the console
Console.WriteLine(Result.Text)
End Using
C# PDF OCR
समान दषटिकोण कन पनि पीडीएफ कागजातबाट पाठ निकालन समान रपमा परयोग गरन सकिनछ।
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Nepali;// Using block for input handlingusing (var input = new OcrInput()){ // Add PDF to the OCR input with optional password input.AddPdf("example.pdf", "password"); // हामी विशिषट पीडीएफ पषठ नमबरहर OCR मा चयन गरन सकदछौ // Perform OCR and get the result varResult = Ocr.Read(input); // Output the recognized text to the consoleConsole.WriteLine(Result.Text);Console.WriteLine($"{Result.Pages.Count} Pages");}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var input = new OcrInput())
{
// Add PDF to the OCR input with optional password
input.AddPdf("example.pdf", "password");
// हामी विशिषट पीडीएफ पषठ नमबरहर OCR मा चयन गरन सकदछौ
// Perform OCR and get the result
var Result = Ocr.Read(input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
Console.WriteLine($"{Result.Pages.Count} Pages");
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Nepali' Using block for input handlingUsing input = New OcrInput() ' Add PDF to the OCR input with optional password input.AddPdf("example.pdf", "password") ' हामी विशिषट पीडीएफ पषठ नमबरहर OCR मा चयन गरन सकदछौ ' Perform OCR and get the result DimResult = Ocr.Read(input) ' Output the recognized text to the consoleConsole.WriteLine(Result.Text)Console.WriteLine($"{Result.Pages.Count} Pages")EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using input = New OcrInput()
' Add PDF to the OCR input with optional password
input.AddPdf("example.pdf", "password")
' हामी विशिषट पीडीएफ पषठ नमबरहर OCR मा चयन गरन सकदछौ
' Perform OCR and get the result
Dim Result = Ocr.Read(input)
' Output the recognized text to the console
Console.WriteLine(Result.Text)
Console.WriteLine($"{Result.Pages.Count} Pages")
End Using
मलटीपज TIFF का लागि OCR
OCR पढाई TIFF फाईल ढाचा बह पषठ कागजात सहित। TIFF खोजन योगय पाठको साथ सिधा पीडीएफ फाइलमा पनि रपानतरण गरन सकिनछ।
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Nepali;// Using block for input handlingusing (varInput = new OcrInput()){ // Add a multi-frame TIFF image to the OCR input input.AddMultiFrameTiff("multi-frame.tiff"); // Perform OCR and get the result varResult = Ocr.Read(Input); // Output the recognized text to the consoleConsole.WriteLine(Result.Text);}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Add a multi-frame TIFF image to the OCR input
input.AddMultiFrameTiff("multi-frame.tiff");
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Nepali' Using block for input handlingUsingInput = New OcrInput() ' Add a multi-frame TIFF image to the OCR input input.AddMultiFrameTiff("multi-frame.tiff") ' Perform OCR and get the result DimResult = Ocr.Read(Input) ' Output the recognized text to the consoleConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using Input = New OcrInput()
' Add a multi-frame TIFF image to the OCR input
input.AddMultiFrameTiff("multi-frame.tiff")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Output the recognized text to the console
Console.WriteLine(Result.Text)
End Using
बारकोड र QR
आइरन ओसीआरको एक विशिषट विशषता यो हो कि यसल कागजातहरबाट बारकोडहर र कयआर कोडहर पढन सकदछ जब यो पाठको लागि सकयान हदछ। OcrResult.OcrBarcode ककषा को उदाहरणहर हरक सकयान गरिएको बारकोडको बारमा विसतत जानकारी विकासकरतालाई दिनछ।
using IronOcr;varOcr = new IronTesseract();// Enable barcode reading configurationOcr.Configuration.ReadBarCodes = true;// Using block for input handlingusing (var input = new OcrInput()){ // Add an image containing barcodes input.AddImage("img/Barcode.png"); // Perform OCR and get the result varResult = Ocr.Read(input); // Iterate over each scanned barcode foreach (varBarcodeinResult.Barcodes) { // Output the barcode value to the consoleConsole.WriteLine(Barcode.Value); // परकार र सथान गणहर पनि उजागर गरियो }}
using IronOcr;
var Ocr = new IronTesseract();
// Enable barcode reading configuration
Ocr.Configuration.ReadBarCodes = true;
// Using block for input handling
using (var input = new OcrInput())
{
// Add an image containing barcodes
input.AddImage("img/Barcode.png");
// Perform OCR and get the result
var Result = Ocr.Read(input);
// Iterate over each scanned barcode
foreach (var Barcode in Result.Barcodes)
{
// Output the barcode value to the console
Console.WriteLine(Barcode.Value);
// परकार र सथान गणहर पनि उजागर गरियो
}
}
ImportsIronOcrPrivateOcr = New IronTesseract()' Enable barcode reading configurationOcr.Configuration.ReadBarCodes = True' Using block for input handlingUsing input = New OcrInput() ' Add an image containing barcodes input.AddImage("img/Barcode.png") ' Perform OCR and get the result DimResult = Ocr.Read(input) ' Iterate over each scanned barcode For EachBarcodeInResult.Barcodes ' Output the barcode value to the consoleConsole.WriteLine(Barcode.Value) ' परकार र सथान गणहर पनि उजागर गरियो NextBarcodeEndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
' Enable barcode reading configuration
Ocr.Configuration.ReadBarCodes = True
' Using block for input handling
Using input = New OcrInput()
' Add an image containing barcodes
input.AddImage("img/Barcode.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(input)
' Iterate over each scanned barcode
For Each Barcode In Result.Barcodes
' Output the barcode value to the console
Console.WriteLine(Barcode.Value)
' परकार र सथान गणहर पनि उजागर गरियो
Next Barcode
End Using
छविहरको विशिषट कषतरहरमा OCR
सब आइरन ओसीआरको सकयानि and र पढन विधिहरल पषठ वा कन पषठबाट हामी पाठ पढन चाहनछौ भनन ठयाकक निरदिषट गरन कषमता परदान गरदछ। यो धर उपयोगी छ जब हामी मानकीकत फारमहर हरदछौ र धर समय बचत गरन र दकषता सधार गरन सकदछौ।
करप कषतरहर परयोग गरन, हामील परणाली सनदरभमा परणाली सनदरभ थपन परछ। System.Drawing ताकि हामी System.Drawing.Rectangle वसत परयोग गरन सकदछौ।
using IronOcr;using System.Drawing;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Nepali;// Using block for input handlingusing (varInput = new OcrInput()){ // Define a specific content area to be read varContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 }; // आयाम px मा छन // Add a specific region of the image for OCRInput.Add("document.png", ContentArea); // Perform OCR and get the result varResult = Ocr.Read(Input); // Output the recognized text to the consoleConsole.WriteLine(Result.Text);}
using IronOcr;
using System.Drawing;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Define a specific content area to be read
var ContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };
// आयाम px मा छन
// Add a specific region of the image for OCR
Input.Add("document.png", ContentArea);
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
ImportsIronOcrImportsSystem.DrawingPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Nepali' Using block for input handlingUsingInput = New OcrInput() ' Define a specific content area to be read DimContentArea = New System.Drawing.Rectangle() With { .X = 215, .Y = 1250, .Height = 280, .Width = 1335 } ' आयाम px मा छन ' Add a specific region of the image for OCRInput.Add("document.png", ContentArea) ' Perform OCR and get the result DimResult = Ocr.Read(Input) ' Output the recognized text to the consoleConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
Imports System.Drawing
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using Input = New OcrInput()
' Define a specific content area to be read
Dim ContentArea = New System.Drawing.Rectangle() With {
.X = 215,
.Y = 1250,
.Height = 280,
.Width = 1335
}
' आयाम px मा छन
' Add a specific region of the image for OCR
Input.Add("document.png", ContentArea)
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Output the recognized text to the console
Console.WriteLine(Result.Text)
End Using
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Nepali;// Using block for input handlingusing (varInput = new OcrInput(@"img\Potter.LowQuality.tiff")){ // Apply image enhancements for low-quality scansInput.DeNoise(); // डिजिटल धवनि र गरीब सकयानिग फिकस गरदछInput.Deskew(); // रोटशन र परिपरकषय फिकस गरदछ // Perform OCR and get the result varResult = Ocr.Read(Input); // Output the recognized text to the consoleConsole.WriteLine(Result.Text);}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
// Apply image enhancements for low-quality scans
Input.DeNoise(); // डिजिटल धवनि र गरीब सकयानिग फिकस गरदछ
Input.Deskew(); // रोटशन र परिपरकषय फिकस गरदछ
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Nepali' Using block for input handlingUsingInput = New OcrInput("img\Potter.LowQuality.tiff") ' Apply image enhancements for low-quality scansInput.DeNoise() ' डिजिटल धवनि र गरीब सकयानिग फिकस गरदछInput.Deskew() ' रोटशन र परिपरकषय फिकस गरदछ ' Perform OCR and get the result DimResult = Ocr.Read(Input) ' Output the recognized text to the consoleConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using Input = New OcrInput("img\Potter.LowQuality.tiff")
' Apply image enhancements for low-quality scans
Input.DeNoise() ' डिजिटल धवनि र गरीब सकयानिग फिकस गरदछ
Input.Deskew() ' रोटशन र परिपरकषय फिकस गरदछ
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Output the recognized text to the console
Console.WriteLine(Result.Text)
End Using
OCR परिणामहर खोजी योगय PDF को रपमा निरयात गरनहोस
परतिलिपि योगय पाठ सटरिङको साथ PDF मा छवि। खोज इनजिन र डाटाबस दवारा अनकरमित गरन सकिनछ।
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Nepali;// Using block for input handlingusing (varInput = new OcrInput()){ // Set the title for the searchable PDF input.Title = "Quarterly Report"; // Add multiple images for OCR input input.AddImage("image1.jpeg"); input.AddImage("image2.png"); input.AddImage("image3.gif"); // Perform OCR and save the result as a searchable PDF varResult = Ocr.Read(input);Result.SaveAsSearchablePdf("searchable.pdf");}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Set the title for the searchable PDF
input.Title = "Quarterly Report";
// Add multiple images for OCR input
input.AddImage("image1.jpeg");
input.AddImage("image2.png");
input.AddImage("image3.gif");
// Perform OCR and save the result as a searchable PDF
var Result = Ocr.Read(input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Nepali' Using block for input handlingUsingInput = New OcrInput() ' Set the title for the searchable PDF input.Title = "Quarterly Report" ' Add multiple images for OCR input input.AddImage("image1.jpeg") input.AddImage("image2.png") input.AddImage("image3.gif") ' Perform OCR and save the result as a searchable PDF DimResult = Ocr.Read(input)Result.SaveAsSearchablePdf("searchable.pdf")EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using Input = New OcrInput()
' Set the title for the searchable PDF
input.Title = "Quarterly Report"
' Add multiple images for OCR input
input.AddImage("image1.jpeg")
input.AddImage("image2.png")
input.AddImage("image3.gif")
' Perform OCR and save the result as a searchable PDF
Dim Result = Ocr.Read(input)
Result.SaveAsSearchablePdf("searchable.pdf")
End Using
TIFF खोजन योगय PDF रपानतरणमा
TIFF कागजात (वा छवि फाईलहरको कन समह) सिध खोजन योगय पीडीएफमा रपानतरण गरनहोस जन इनटरानट, वबसाइट र गगल खोजी इञजिनहर दवारा अनकरमणिका गरन सकिनछ।
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Nepali;// Using block for input handlingusing (varInput = new OcrInput()){ // Add a multi-frame TIFF for conversion input.AddMultiFrameTiff("example.tiff"); // Perform OCR and save as a searchable PDF varResult = Ocr.Read(input);Result.SaveAsSearchablePdf("searchable.pdf");}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Add a multi-frame TIFF for conversion
input.AddMultiFrameTiff("example.tiff");
// Perform OCR and save as a searchable PDF
var Result = Ocr.Read(input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Nepali' Using block for input handlingUsingInput = New OcrInput() ' Add a multi-frame TIFF for conversion input.AddMultiFrameTiff("example.tiff") ' Perform OCR and save as a searchable PDF DimResult = Ocr.Read(input)Result.SaveAsSearchablePdf("searchable.pdf")EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using Input = New OcrInput()
' Add a multi-frame TIFF for conversion
input.AddMultiFrameTiff("example.tiff")
' Perform OCR and save as a searchable PDF
Dim Result = Ocr.Read(input)
Result.SaveAsSearchablePdf("searchable.pdf")
End Using
HTML को रपमा OCR परिणामहर निरयात गरनहोस
OCR image to XCR HTML रपानतरण।
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Nepali;// Using block for input handlingusing (varInput = new OcrInput()){ // Set the title for the OCR output input.Title = "Html Title"; // Add an image to the OCR input input.AddImage("image1.jpeg"); // Perform OCR and save the result as HTML varResult = Ocr.Read(input);Result.SaveAsHocrFile("results.html");}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput())
{
// Set the title for the OCR output
input.Title = "Html Title";
// Add an image to the OCR input
input.AddImage("image1.jpeg");
// Perform OCR and save the result as HTML
var Result = Ocr.Read(input);
Result.SaveAsHocrFile("results.html");
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Nepali' Using block for input handlingUsingInput = New OcrInput() ' Set the title for the OCR output input.Title = "Html Title" ' Add an image to the OCR input input.AddImage("image1.jpeg") ' Perform OCR and save the result as HTML DimResult = Ocr.Read(input)Result.SaveAsHocrFile("results.html")EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using Input = New OcrInput()
' Set the title for the OCR output
input.Title = "Html Title"
' Add an image to the OCR input
input.AddImage("image1.jpeg")
' Perform OCR and save the result as HTML
Dim Result = Ocr.Read(input)
Result.SaveAsHocrFile("results.html")
End Using
OCR छवि सवरदधन फिलटर
ICROCR ल OCR परदरशन सधार गरन OcrInput वसतहरको लागि अनपम फिलटरहर परदान गरदछ।
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Nepali;// Using block for input handlingusing (varInput = new OcrInput(@"LowQuality.jpeg")){ // Apply image enhancements for OCRInput.DeNoise(); // डिजिटल धवनि र गरीब सकयानिग फिकस गरदछInput.Deskew(); // रोटशन र परिपरकषय फिकस गरदछ // Perform OCR and get the result varResult = Ocr.Read(Input); // Output the recognized text to the consoleConsole.WriteLine(Result.Text);}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
// Using block for input handling
using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
// Apply image enhancements for OCR
Input.DeNoise(); // डिजिटल धवनि र गरीब सकयानिग फिकस गरदछ
Input.Deskew(); // रोटशन र परिपरकषय फिकस गरदछ
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Nepali' Using block for input handlingUsingInput = New OcrInput("LowQuality.jpeg") ' Apply image enhancements for OCRInput.DeNoise() ' डिजिटल धवनि र गरीब सकयानिग फिकस गरदछInput.Deskew() ' रोटशन र परिपरकषय फिकस गरदछ ' Perform OCR and get the result DimResult = Ocr.Read(Input) ' Output the recognized text to the consoleConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using Input = New OcrInput("LowQuality.jpeg")
' Apply image enhancements for OCR
Input.DeNoise() ' डिजिटल धवनि र गरीब सकयानिग फिकस गरदछ
Input.Deskew() ' रोटशन र परिपरकषय फिकस गरदछ
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Output the recognized text to the console
Console.WriteLine(Result.Text)
End Using
OCR छवि फिलटरहरको सची
ICROCR मा निरमित ओसीआर परदरशन बदधि गरन इनपट फिलटरहरल समावश गरदछ:
OcrInput.Rotate (डबल डिगरी) - छविहर घडीको दिशामा डिगरीको एक नमबर दवारा घमाउदछ। एनटी-कलकवाइजको लागि, नकारातमक सखया परयोग गरनहोस।
OcrInput.Binarize () - यो छवि फिलटर मधय पिकसलको साथ परतयक पिकसल कालो वा सतो गरदछ। पषठभमिमा पाठको एकदम कम कनटरासटको OCR परदरशन कसहर सधार गरन सकदछ।
OcrInput.ToGrayScale () - यस छवि फिलटरल परतयक पिकसललाई गरसकलको छायामा परिणत गरदछ। OCR सटीकता सधार गरन असमभव तर गतिको सधार हन सकछ
OcrInput.Contrast () - सवतः कनटरासट बढाउदछ । यस फिलटरल अकसर कम कनटरासट सकयानहरमा OCR गति र शदधता सधार गरदछ।
OcrInput.DeNoise () - डिजिटल आवाज हटाउछ। यो फिलटर मातर परयोग गरनपरनछ जहा हललाको आशा गरिनछ।
OcrInput.Invert () - हरक र In उलटाउछ । उदाहरणका लागि सतो कालो हनछ: कालो सतो हनछ।
OcrInput.Deskew () - तसविर घमाउदछ ताकि यो सहि तरीकाल माथि र अरथोगोनल हो। यो ओसीआरको लागि धर उपयोगी छ किनकि सकन सकयानहरको लागि Tesseract सहिषणता degrees डिगरी जति कम हन सकछ।
OcrInput.DeepCleanBackgroundNoise () - भारी पषठभमि आवाज हटाउन। कवल यो फिलटर परयोग गरनहोस यदि चरम कागजात पषठभमि शोर जञात छ, किनकि यस फिलटरल सफा कागजातहरको ओसीआर शदधतालाई पनि कम गरन जोखिममा पारछ, र धर सीपीय महगो छ।
OcrInput.EnhanceResolution - कम गणवतता छविहरको रिजोलसन विसतार गरदछ। यस फिलटर पराय: आवशयक परदन किनकि OcrInput.MINimumDPI र OcrInput.TargetDPI सवचालित रपमा कम रिजोलसन इनपटहर समातछ र समाधान गरदछ।
कलीनबयाकगराउडनोईस। यो एक सटिग हो जन कहि समय उपभोकता हो; ज होस, यसल पसतकालयलाई सवचालित रपमा डिजिटल आवाज, कागज crumples, र एक डिजिटल छवि भितर अनय अपरणताहर सफा गरन अनमति दिनछ जन अनय OCR लाइबररीहर पढन असकषमको रपमा परसतत गरदछ।
एनहानससनटरासट एक सटिग हो जसल आइरन ओसीआरलाई सवचालित रपमा छविको पषठभमि बिरदद पाठको विरोधाभास बढाउदछ, ओसीआरको शदधता बढाउदछ र सामानयतया परदरशन र ओसीआरको गति बढाउदछ।
EnhanceResolution एक सटिग हो जसल सवचालित तवरल कम रिजोलसन छविहर पतता लगाउदछ (जन २ d5 dpi अनतरगत हनछ) र सवचालित रपमा छवि अपसकल गरदछ र तयसपछि सब पाठलाई तीकषण गरदछ ताकि यसलाई परण रपमा OCR लाइबररी दवारा पढन सकिनछ। यदयपि यो अपरशन आफमा समय खपत हन छ, यसल सामानयतया छविमा OCR अपरशनको लागि समगर समय घटाउछ।
भाषा आइरन ओसीआरल २२ अनतरराषटरिय भाषा पयाकहर समरथन गरदछ, र भाषा सटिगस एक वा अधिक एकाधिक भाषाहर चयन गरन ओसीआर अपरशनको लागि परयोग गरन सकिनछ।
रणनीति आयरन OCR ल दई रणनीतिहर समरथन गरदछ। हामी या त कागजातको छिटो र कम सटीक सकयानको लागि जान सकछौ, वा एक उननत रणनीति परयोग गरन सकछौ जसल कही कतरिम बदधिमतता मोडलहर परयोग गरदछ सवचालित रपमा ओसीआर पाठको शदधतालाई सधार गरनका लागि वाकयमा एक अरकामा शबदहरको साखयिकीय समबनधलाई हरर। ।
कलरसपस एक सटिग हो जहा हामी गरसकल वा रगमा OCR लाई छनौट गरन सकछौ। सामानयतया, गरसकल उततम विकलप हो। ज होस, कहिलकाही जब तयहा पाठहर वा समान रगको पषठभमि हनछ तर धर भिनन रग, परण र . color रग ठाउल रामरो परिणाम परदान गरदछ।
WWiteiteTextOnDarkBackgrounds पतता लगाउनहोस। सामानयतया, सब OCR पसतकालयहर सतो पषठभमिमा कालो पाठ हरन अपकषा गरदछ। यो सटिल फलामको OCR लाई सवचालित रपमा नकारातमक, वा सतो पाठको साथ कालो पषठहर पतता लगाउन र यसलाई पढन अनमति दिनछ।
InputImageType। यस सटिल विकासकरतालाई OCR लाइबररी मारगनिरदशन गरन अनमति दिनछ कि यो एक परण कागजात वा सनिपट हरद छ कि जसतो सकरिनसटको रपमा।
RotateAndStraight एक उननत सटिग हो जसल आइरन OCR लाई अदवितीय कषमता कागजातहर पढन अनमति दिनछ जन कवल घमाइएको छन, तर समभव परिपरकषयमा जसत पाठ कागजातहरको फोटोगराफहर।
रिडबोरकोडस एक उपयोगी सविधा हो जसल आइरन ओसीआरलाई सवचालित रपमा पषठमा बारकोडहर र कयआर कोडहर पढन अनमति दिनछ किनकि यसल ठलो अतिरिकत समयको बोझ थप नगरीकन पाठ पनि पढछ।
कलर डिपथ। यस सटिल निरधारित गरदछ कि पिकसल परति पिकसल कति बिटस ओसीआर लाइबररील र aको गहराई निरधारित गरन परयोग गरदछ। एक उचच र . depth गहिराईल ओसीआर गणसतर बढाउन सकछ, तर ओसीआर कारय परा हन आवशयक समय बदधि गरदछ।
भाषाहरमा जरमन, फरानसली, अगरजी, चिनिया, जापानीज र अनय धर समावश छन। पासपोरट एमआरजड, एमआईसीआर चकहर, विततीय डटा, लाइसनस पलटहर र अधिक धरको लागि विशषजञ भाषा पयाकहर अवसथित छन। तपाई कन पनि परीकषपण ".रनडडाटा" फाइल पनि परयोग गरन सकनहनछ - जसमा तपाईल आफ सिरजना गरनभयो।
भाषा उदाहरण
अनय OCR भाषाहर परयोग गरद।
// PM> Install IronOcr.Languages.Arabicusing IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Arabic;// Using block for input handlingusing (var input = new OcrInput()){ // Add an Arabic image to the OCR input input.AddImage("img/arabic.gif"); // if necessary, add image filters // In this case, even if the input is of very low quality // IronTesseract might still be able to read it when traditional Tesseract cannot. // Perform OCR and get the result varResult = Ocr.Read(input); // Windows Console might not easily print Arabic // Save it to disk insteadResult.SaveAsTextFile("arabic.txt");}
// PM> Install IronOcr.Languages.Arabic
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Arabic;
// Using block for input handling
using (var input = new OcrInput())
{
// Add an Arabic image to the OCR input
input.AddImage("img/arabic.gif");
// if necessary, add image filters
// In this case, even if the input is of very low quality
// IronTesseract might still be able to read it when traditional Tesseract cannot.
// Perform OCR and get the result
var Result = Ocr.Read(input);
// Windows Console might not easily print Arabic
// Save it to disk instead
Result.SaveAsTextFile("arabic.txt");
}
' PM> Install IronOcr.Languages.ArabicImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Arabic' Using block for input handlingUsing input = New OcrInput() ' Add an Arabic image to the OCR input input.AddImage("img/arabic.gif") ' if necessary, add image filters ' In this case, even if the input is of very low quality ' IronTesseract might still be able to read it when traditional Tesseract cannot. ' Perform OCR and get the result DimResult = Ocr.Read(input) ' Windows Console might not easily print Arabic ' Save it to disk insteadResult.SaveAsTextFile("arabic.txt")EndUsing
' PM> Install IronOcr.Languages.Arabic
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Arabic
' Using block for input handling
Using input = New OcrInput()
' Add an Arabic image to the OCR input
input.AddImage("img/arabic.gif")
' if necessary, add image filters
' In this case, even if the input is of very low quality
' IronTesseract might still be able to read it when traditional Tesseract cannot.
' Perform OCR and get the result
Dim Result = Ocr.Read(input)
' Windows Console might not easily print Arabic
' Save it to disk instead
Result.SaveAsTextFile("arabic.txt")
End Using
बह भाषा उदाहरण
यो पनि समभव छ OCR एक समयमा धर भाषाहर परयोग गरर। यसल यनिकोड कागजातहरमा अगरजी भाषा मटाडटा र यआरएलहर लिन मददत गरदछ।
// PM> Install IronOcr.Languages.ChineseSimplifiedusing IronOcr;varOcr = new IronTesseract();// Set primary language to Chinese SimplifiedOcr.Language = OcrLanguage.ChineseSimplified;// Add secondary language settingsOcr.AddSecondaryLanguage(OcrLanguage.Nepali);// Add any language as required// Using block for input handlingusing (var input = new OcrInput()){ // Add a multi-language PDF to the OCR input input.Add("multi-language.pdf"); // Perform OCR and get the result varResult = Ocr.Read(input); // Save the result as a text fileResult.SaveAsTextFile("results.txt");}
// PM> Install IronOcr.Languages.ChineseSimplified
using IronOcr;
var Ocr = new IronTesseract();
// Set primary language to Chinese Simplified
Ocr.Language = OcrLanguage.ChineseSimplified;
// Add secondary language settings
Ocr.AddSecondaryLanguage(OcrLanguage.Nepali);
// Add any language as required
// Using block for input handling
using (var input = new OcrInput())
{
// Add a multi-language PDF to the OCR input
input.Add("multi-language.pdf");
// Perform OCR and get the result
var Result = Ocr.Read(input);
// Save the result as a text file
Result.SaveAsTextFile("results.txt");
}
' PM> Install IronOcr.Languages.ChineseSimplifiedImportsIronOcrPrivateOcr = New IronTesseract()' Set primary language to Chinese SimplifiedOcr.Language = OcrLanguage.ChineseSimplified' Add secondary language settingsOcr.AddSecondaryLanguage(OcrLanguage.Nepali)' Add any language as required' Using block for input handlingUsing input = New OcrInput() ' Add a multi-language PDF to the OCR input input.Add("multi-language.pdf") ' Perform OCR and get the result DimResult = Ocr.Read(input) ' Save the result as a text fileResult.SaveAsTextFile("results.txt")EndUsing
' PM> Install IronOcr.Languages.ChineseSimplified
Imports IronOcr
Private Ocr = New IronTesseract()
' Set primary language to Chinese Simplified
Ocr.Language = OcrLanguage.ChineseSimplified
' Add secondary language settings
Ocr.AddSecondaryLanguage(OcrLanguage.Nepali)
' Add any language as required
' Using block for input handling
Using input = New OcrInput()
' Add a multi-language PDF to the OCR input
input.Add("multi-language.pdf")
' Perform OCR and get the result
Dim Result = Ocr.Read(input)
' Save the result as a text file
Result.SaveAsTextFile("results.txt")
End Using
विसतत OCR परिणाम वसतहर
फलामको OCR ल परतयक OCR अपरशनको लागि OCR परिणाम वसत फिरता गरदछ। सामानयतया, विकासकरताहरल छविबाट पाठ सकयान गरन कवल यो वसतको पाठ गण परयोग गरदछन। ज होस, OCR नतीजा DOM यो भनदा धर उननत छ।
using IronOcr;using System.Drawing; //असबली सनदरभ थपनहोसvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Nepali;Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;// Enable barcode readingOcr.Configuration.ReadBarCodes = true;// Using block for input handlingusing (varInput = new OcrInput(@"images\sample.tiff")){ // Perform OCR and get the full result OcrResultResult = Ocr.Read(Input); // accessing detailed information from the OCR result varPages = Result.Pages; varWords = Pages[0].Words; varBarcodes = Result.Barcodes; // Here a extensive API for exploration: // - Pages, Blocks, Paragraphs, Lines, Words, Characters // - Image export, font coordinates, statistical data}
using IronOcr;
using System.Drawing; //असबली सनदरभ थपनहोस
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Nepali;
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;
// Enable barcode reading
Ocr.Configuration.ReadBarCodes = true;
// Using block for input handling
using (var Input = new OcrInput(@"images\sample.tiff"))
{
// Perform OCR and get the full result
OcrResult Result = Ocr.Read(Input);
// accessing detailed information from the OCR result
var Pages = Result.Pages;
var Words = Pages[0].Words;
var Barcodes = Result.Barcodes;
// Here a extensive API for exploration:
// - Pages, Blocks, Paragraphs, Lines, Words, Characters
// - Image export, font coordinates, statistical data
}
ImportsIronOcrImportsSystem.Drawing'असबली सनदरभ थपनहोसPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.NepaliOcr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm' Enable barcode readingOcr.Configuration.ReadBarCodes = True' Using block for input handlingUsingInput = New OcrInput("images\sample.tiff") ' Perform OCR and get the full result DimResultAsOcrResult = Ocr.Read(Input) ' accessing detailed information from the OCR result DimPages = Result.Pages DimWords = Pages(0).Words DimBarcodes = Result.Barcodes ' Here a extensive API for exploration: ' - Pages, Blocks, Paragraphs, Lines, Words, Characters ' - Image export, font coordinates, statistical dataEndUsing
Imports IronOcr
Imports System.Drawing 'असबली सनदरभ थपनहोस
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Nepali
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm
' Enable barcode reading
Ocr.Configuration.ReadBarCodes = True
' Using block for input handling
Using Input = New OcrInput("images\sample.tiff")
' Perform OCR and get the full result
Dim Result As OcrResult = Ocr.Read(Input)
' accessing detailed information from the OCR result
Dim Pages = Result.Pages
Dim Words = Pages(0).Words
Dim Barcodes = Result.Barcodes
' Here a extensive API for exploration:
' - Pages, Blocks, Paragraphs, Lines, Words, Characters
' - Image export, font coordinates, statistical data
End Using
परदरशन
IronOCR ल बाकसको बाहिर कारय गरदछ कारय समपादन टयन गरन वा भारी इनपट छविहर परिमारजन गरन आवशयक परदन।
सपीड बलिजिग हो: IronOCR.2020 + १० पटकसमम छिटो छ र अघिललो निरमाणहरल भनदा २ %०% कम तरटिहर बनाउदछ।
थप सिक
O # को बारमा अधिक जानन C #, VB, F #, वा कन अरको .नट भाषामा, कपया हामरो समदाय टयटोरियलहर पढनहोस , जसल कसरी आइरन OCR परयोग गरन सकिनछ र कसरी उततम परयोग गरन भनन बारीकता दखाउन सकछ भनन वासतविक विशव उदाहरणहर दिनछ। यो पसतकालय
커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.