C#र .NET मा नपाली OCR
यस कागजातको अनय ससकरणहर:
IronOCR एक C# सफटवयर घटक हो। .NET कोडरहरलाई छवि सहित १२ PDF भाषामा पीडीएफ कागजातहर पाठ पढन मददत परयाउछ।
यो Tesseract को उननत फोरक हो, विशष गरी .NET विकासकरताहरको लागि निरमित हो र वग र सटीकता दब अनय टसकरट इनजिनहरलाई नियमित रपमा परदरशन गरदछ।
IronOcr.Languages.Nepali का सामगरीहर
यस पयाकजमा .NET को लागी 43 OCR भाषाहर छन।
- नपाली
- नपाली बसट
- नपाली फासट
डाउनलोड गरनहोस
नपाली भाषा पयाक [नपाली]
* Download as Zip
* Install via NuGet from https://www.nuget.org/packages/IronOcr.Languages.Nepali/
सथापना
हामील गरनपरन पहिलो करा तपाईको नपाली नट OCR पयाकज तपाईको .NET परोजकटमा सथापना गरन हो।
PM> Install-Package IronOCR.Languages.Nepali
कोड उदाहरण
यो C#कोड उदाहरणल छवि वा PDF कागजातबाट नपाली पाठ पढछ।
// 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);
}
// 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);
}
' PM> Install-Package IronOCR.Languages.Nepali
Imports IronOcr
' Create an instance of the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the language to Nepali for OCR
Ocr.Language = OcrLanguage.Nepali
' Using a statement to properly dispose of resources
Using Input = New OcrInput("images\Nepali.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Get the recognized text from the OCR result
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
IronOCR किन छनौट गरनहनछ?
Iron OCR एक सथापना गरन सजिलो, परण र रामरो दसतावज .NET सफटवयर लाइबररी हो।
कन बाहय वब सवाहर परयोग नगरी, 99.8% OCR शदधता परापत गरन IronOCR छनौट गरनहोस, चलिरहको फीस वा इनटरनटमा गोपय कागजातहर पठाउदन।
किन C# विकासकरताहरल भनिला Tesseract मा IronOCR छनौट गरछन:
- एकल DLL वा नगटको रपमा सथापना गरनहोस
- Tesseract for, and Eng ईनजिनहरका लागि बकस बाहिर।
- शदधता 99.8% ल नियमित टसकरकटलाई आउटपरमरस गरदछ।
- बलजिग सपीड र मलटि थरडिग।
- MVC, वब अनपरयोग, डसकटप, कनसोल र सरभर अनपरयोग सगत
- काम गरन Exes वा C++ कोड छन
- परण PDF OCR समरथन
- लगभग कन पनि छवि फाइल वा PDF मा OCR परदरशन गरन
- परण .NET कोर, मानक र फरमवरक समरथन
- विनडोज, मयाक, लिनकस, Azure, डकर, Lambda, AWS मा डिपलोय गरनहोस
- बारकोड र QR कोडहर पढनहोस
- XCR को रपमा OCR निरयात गरनहोस
- खोजी गरन योगय पीडीएफ कागजातहरमा ओसीआर निरयात गरनहोस
- मलटिथरडिग समरथन
- 126 अनतरराषटरिय भाषाहर सब नगट वा OCR डटा फाइलहर मारफत परबनधित गरियो
- छविहर, निरदशाकहर, तथया .कहर र फनटहर निकालनहोस। कवल पाठ मातर होईन।
- वाणिजयिक र सवामितव अनपरयोगहर भितर Tesseract OCR पनः वितरित गरन परयोग गरन सकिनछ।
लौह OCR चमकिनछ जब वासतविक विशव छविहर र तरटिपरण कागजातहर जसत फोटोगराफहर, वा कम रिजोलसनको सकयानमा जन डिजिटल आवाज वा अपरणताहरको साथ काम गरदछ।
.NET पलटफरमको लागि अनय नि: शलक ओसीआर पसतकालयहर तयसता अनय .NET Tesseract एपीआईहर र वब सवाहरल यी वासतविक विशव परयोगको कसहरमा यति रामरो परदरशन गरदनन।
Tesseract 5 को साथ OCR - C#मा कोडिग सर गरनहोस
तलको कोड नमनाल C# वा VB .NET परयोग गरर छविबाट पाठ पढन कति सजिलो छ भनर दखाउदछ।
OneLiner
using IronOcr;
// Perform OCR in a single line of code
string Text = 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;
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.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);
}
// 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);
}
' PM> Install-Package IronOCR.Languages.Nepali
Imports IronOcr
' Create an instance of the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the language to Nepali for OCR
Ocr.Language = OcrLanguage.Nepali
' Using block for input handling
Using Input = 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;
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");
}
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");
}
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;
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);
}
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);
}
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;
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);
// परकार र सथान गणहर पनि उजागर गरियो
}
}
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);
// परकार र सथान गणहर पनि उजागर गरियो
}
}
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;
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);
}
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);
}
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
OCR कम गणवतता सकयानका लागि
IronOCR OcrInput
वरगल सामानय Tesseract पढन नसकन सकयानहर फिकस गरन सकदछ।
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);
}
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);
}
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;
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");
}
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");
}
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;
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");
}
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");
}
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;
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");
}
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");
}
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
वसतहरको लागि अनपम फिलटरहर परदान गरदछ।
छवि सवरधन कोड उदाहरण
OCR इनपट छविहर उचच गणवततामा छिटो OCR परिणामहर उतपादन गरदछ।
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);
}
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);
}
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.Dilate () - उननत मोरफोलजी । डिलसनल छविमा वसतहरको सीमामा पिकसलहर थपको छ । ईरोडको विपरित
- OcrInput.Erode () - उननत मोरफोलजी । इरोसनल वसतको सीमामा पिकसल हटाउदछ
- 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 गहिराईल ओसीआर गणसतर बढाउन सकछ, तर ओसीआर कारय परा हन आवशयक समय बदधि गरदछ।
१२6 भाषा पयाक
आइरन ओसीआरल १२6 अनतरराषटरिय भाषाहर भाषा पयाकहर मारफत समरथन गरदछ जन DLLs को रपमा वितरित गरिएको छ, जन यस वबसाइटबाट डाउनलोड गरन सकिनछ, वा नजट पयाकज परबनधकबाट पनि ।
भाषाहरमा जरमन, फरानसली, अगरजी, चिनिया, जापानीज र अनय धर समावश छन। पासपोरट एमआरजड, एमआईसीआर चकहर, विततीय डटा, लाइसनस पलटहर र अधिक धरको लागि विशषजञ भाषा पयाकहर अवसथित छन। तपाई कन पनि परीकषपण ".रनडडाटा" फाइल पनि परयोग गरन सकनहनछ - जसमा तपाईल आफ सिरजना गरनभयो।
भाषा उदाहरण
अनय OCR भाषाहर परयोग गरद।
// 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.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.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.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.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.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; //असबली सनदरभ थपनहोस
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
}
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
}
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 परयोग गरन सकिनछ र कसरी उततम परयोग गरन भनन बारीकता दखाउन सकछ भनन वासतविक विशव उदाहरणहर दिनछ। यो पसतकालय
.NET विकासकरताहरको लागि परण वसत सनदरभ पनि उपलबध छ।