<meta http-equiv="content-language" content="mr" />
# सी # आणि .NET मधय मराठी ओसीआर
###### या दसतऐवजाचया इतर आवततया:
- [इगरजी (This Page in English)](/csharp/ocr/languages/marathi/)
- [अधिक लागगज](/csharp/ocr/languages/)
आयरनओसीआर एक C# सॉफटवअर घटक आह जो .NET कोडरला मराठीसह 126 भाषत परतिमा आणि पीडीएफ दसतऐवजामधन मजकर वाच दतो.
हा टसटरकटचा परगत काटा आह जो कवळ .NET विकसकासाठी तयार कला आह आणि वग आणि अचकतसाठी नियमितपण इतर टसटरकट इजिनला माग टाकतो.
## आयरनऑक. भाषा.मराठीची सामगरी
या पकजमधय .NET साठी 46 OCR भाषा आहत:
- मराठी
- मराठीबसट
- मराठीफासट
## डाउनलोड करा
मराठी भाषा पक [मराठी]
* Download as [जि.प. <i class='fas fa-download'></i>]( /csharp/ocr/packages/language-packs/Marathi.ocrdata.zip)
* Install with [नयजीट <i class='nuget-icon'></i>](https://www.nuget.org/packages/IronOcr.Languages.Marathi/)
## सथापना
आपलयास सरवपरथम आपलया .NET परोजकटवर आपल **मराठी** ओसीआर पकज सथापित करण आह.
```shell
:InstallCmd Install-Package IronOcr.Languages.Marathi
```
## कोड उदाहरण
हा C# कोड उदाहरण परतिमा किवा पीडीएफ दसतऐवजातन मराठी मजकर वाचतो.
```csharp
// PM> Install-Package IronOcr.Languages.Marathi
using IronOcr;
// Create an instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Marathi
Ocr.Language = OcrLanguage.Marathi;
// Provide the input image
using (var Input = new OcrInput(@"images\Marathi.png"))
{
// Perform OCR operation
var Result = Ocr.Read(Input);
// Get all text from the result
var AllText = Result.Text;
Console.WriteLine(AllText);
}
```
## आयरनओसीआर का निवडा?
लोह ओसीआर एक सथापित करण सोप, परत आणि दसतऐवजीकरण .NET सॉफटवअर लायबररी आह.
कोणतीही बाहय वब सवा, चाल फी किवा इटरनटवर गोपनीय कागदपतर न वापरता **99.8% + ओसीआर अचकता** मिळविणयासाठी आयरनओसीआर निवडा.
#### सी # विकसक वहनिला परीकषणावरील आयरनओसीआर का निवडतात:
- एकल डीएलएल किवा नजट महणन सथापित करा
- बॉकसचया बाहर टसटरकट 5, 4 आणि 3 इजिनाचा समावश आह.
- अचकता **99.8%** नियमित टसटरकटपकषा लकषणीय आह.
- बलिझिग सपीड आणि मलटीथरडिग
- MVC, वबअप, डसकटॉप, कनसोल आणि सरवहर अनपरयोग ससगत
- कारय करणयासाठी कोणतही Exes किवा C++ कोड नाही
- परत पीडीएफ ओसीआर समरथन
- जवळजवळ कोणतीही परतिमा फाइल किवा पीडीएफ ओसीआर करणयासाठी
- परत .NET कोअर, मानक आणि फरमवरक समरथन
- विडोज, मक, लिनकस, अझर, डॉकर, लमबडा, एडबलयएस वर तनात करा
- बारकोड आणि कयआर कोड वाचा
- एकसएचटीएमएल महणन ओसीआर निरयात करा
- शोधणयायोगय पीडीएफ दसतऐवजावर ओसीआर निरयात करा
- मलटीथरडिग समरथन
- 126 आतरराषटरीय भाषा सरव नग किवा ओसीआरडटा फाइलस दवार वयवसथापित कलया आहत
- परतिमा, समनवय, आकडवारी आणि फॉनट काढा. फकत मजकर नाही.
- वयावसायिक आणि मालकीचया अनपरयोगामधय टसटरकट ओसीआरचा पनरवितरण करणयासाठी वापरला जाऊ शकतो.
*वासतविक जगाचया परतिमा आणि छायाचितरासारखया अपरण दसतऐवजावर काम करताना किवा डिजिटल आवाज किवा अपरणता अस शकतात कमी रिझोलयशनच सकन घताना लोह ओसीआर चमकतो.*
.NET पलटफॉरमसाठी इतर [विनामलय ओसीआर]( /csharp/ocr/use-case/free-ocr-csharp/) लायबररी अशा इतर .NET टसटरकट एपीआय आणि वब सवा या वासतविक जगाचया वापरासाठी चागलयापरकार काम करत नाहीत.
## टसटरकट 5 सह ओसीआर - C# मधय कोडिग परारभ करा
खाली कोड नमना दरशवितो की C# किवा वहीबी .NET वापरन परतिमच मजकर वाचण किती सोप आह.
### वनलाइनर
```csharp
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
```
### हलो वरलड कॉनफिगर करणयायोगय
```csharp
// PM> Install-Package IronOcr.Languages.Marathi
using IronOcr;
// Create an instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Marathi
Ocr.Language = OcrLanguage.Marathi;
// Create OcrInput and add images
using (var Input = new OcrInput())
{
Input.AddImage("images/sample.jpeg");
// You can add more images
// Input.AddImage("another_image.jpeg");
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output the text to console
Console.WriteLine(Result.Text);
}
```
### सी# पीडीएफ ओसीआर
```csharp
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var input = new OcrInput())
{
// Add a PDF file and its password if any
input.AddPdf("example.pdf", "password");
// Perform OCR operation
var Result = Ocr.Read(input);
// Output the result
Console.WriteLine(Result.Text);
Console.WriteLine($"{Result.Pages.Count()} Pages");
}
```
### मलटीपज टीआयएफएफसाठी ओसीआर
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Add Multi-frame TIFF
Input.AddMultiFrameTiff("multi-frame.tiff");
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output result
Console.WriteLine(Result.Text);
}
```
### बारकोड आणि कयआर
```csharp
// using IronOcr;
var Ocr = new IronTesseract();
Ocr.Configuration.ReadBarCodes = true;
using (var input = new OcrInput())
{
// Add an image containing barcode
input.AddImage("img/Barcode.png");
// Perform OCR operation
var Result = Ocr.Read(input);
// Iterate over barcodes and output value
foreach (var Barcode in Result.Barcodes)
{
Console.WriteLine(Barcode.Value);
// Additional properties like Type and Location are also available
}
}
```
### परतिमचया विशिषट कषतरावरील ओसीआर
```csharp
using IronOcr;
using System.Drawing; // Ensure System.Drawing is referenced
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Define a content area with specific coordinates
var ContentArea = new System.Drawing.Rectangle { X = 215, Y = 1250, Height = 280, Width = 1335 };
// Add image with specific content area
Input.Add("document.png", ContentArea);
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output the resultant text
Console.WriteLine(Result.Text);
}
```
### निमन गणवतता सकनससाठी ओसीआर
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
// Enhance input by removing noise and fixing rotation issues
Input.DeNoise(); // Reduces digital noise
Input.Deskew(); // Free from skew issues
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output result
Console.WriteLine(Result.Text);
}
```
### शोधणयायोगय पीडीएफ महणन ओसीआर परिणाम निरयात करा
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Set the title for PDF
Input.Title = "Quarterly Report";
// Add images to the input
Input.AddImage("image1.jpeg");
Input.AddImage("image2.png");
Input.AddImage("image3.gif");
// Perform OCR operation
var Result = Ocr.Read(Input);
// Save the result as searchable PDF
Result.SaveAsSearchablePdf("searchable.pdf");
}
```
### शोधणयायोगय पीडीएफ रपातरणासाठी टीआइएफएफ
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Add TIFF file
Input.AddMultiFrameTiff("example.tiff");
// Perform OCR operation and save as searchable PDF
var Result = Ocr.Read(Input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
```
### एचसीएल महणन ओसीआर परिणाम निरयात करा
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Set HTML title
Input.Title = "Html Title";
// Add an image
Input.AddImage("image1.jpeg");
// Perform OCR operation
var Result = Ocr.Read(Input);
// Save result as HOCR file
Result.SaveAsHocrFile("results.html");
}
```
## ओसीआर परतिमा वरधित फिलटर
OCR कारयकषमता सधारणयासाठी `OcrInput` अदवितीय फिलटर परदान करत.
### परतिमा वरधन कोड उदाहरण
चागल, वगवान OCR परिणाम तयार करणयासाठी OCR इनपट परतिमा उचच परतीची बनवत.
```csharp
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
// Enhance the input by removing noise and fixing rotation
Input.DeNoise(); // Reduce digital noise
Input.Deskew(); // Correct for skew
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output result
Console.WriteLine(Result.Text);
}
```
### ओसीआर परतिमा फिलटरची यादी
IronOCR मधय तयार कललया ओसीआर कारयकषमतस वरधित करणयासाठी इनपट फिलटरमधय ह समाविषट आह:
- **`OcrInput.Rotate(double degrees)`** - Rotates the image clockwise. Use negative for counter-clockwise.
- **`OcrInput.Binarize()`** - Converts non-binary pixels to either black or white. Useful for low contrast text.
- **`OcrInput.ToGrayScale()`** - Converts each pixel to grayscale, potentially increasing performance.
- **`OcrInput.Contrast()`** - Automatically increases contrast. Improves low contrast scans.
- **`OcrInput.DeNoise()`** - Removes digital noise. Only use where noise is expected.
- **`OcrInput.Invert()`** - Inverts all colors. Black becomes white, and vice versa.
- **`OcrInput.Dilate()`** - Applies advanced morphology adding pixels to image object boundaries.
- **`OcrInput.Erode()`** - Applies advanced morphology removing pixels from object boundaries.
- **`OcrInput.Deskew()`** - Orients the image orthogonally, crucial for skewed images.
- **`OcrInput.DeepCleanBackgroundNoise()`** - Removes heavy background noise but can lower OCR accuracy.
- **OcrInput.EnhanceResolution** - Upscales low-resolution images for better OCR.
Each filter can greatly aid in improving the readability of text for OCR processes.
## 126 भाषा पक
IronOCR <strong>126 आतरराषटरीय भाषाना भाषचया</strong> पकदवार समरथन करत जया डीएलएल महणन वितरित कलया जातात. यात जरमन, फरच, इगरजी, चीनी, जपानी इतयादीचा समावश आह.
आपण कोणतीही तयार कलली ".traineddata" फाइल दखील वापर शकता - आपण सवतः तयार कललया फायलीचा समावश.
### भाषच उदाहरण
```csharp
// using IronOcr;
// Install IronOcr.Languages.Arabic
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Arabic;
using (var input = new OcrInput())
{
input.AddImage("img/arabic.gif");
// Perform OCR operation
var Result = Ocr.Read(input);
// Arabic can't be printed on console directly; save to disk instead
Result.SaveAsTextFile("arabic.txt");
}
```
### एकाधिक भाषच उदाहरण
```csharp
// using IronOcr;
// Install IronOcr.Languages.ChineseSimplified
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.ChineseSimplified;
// Add secondary language
Ocr.AddSecondaryLanguage(OcrLanguage.Marathi);
using (var input = new OcrInput())
{
input.AddPdf("multi-language.pdf");
// Perform OCR operation
var Result = Ocr.Read(input);
// Save to text file
Result.SaveAsTextFile("results.txt");
}
```
## तपशीलवार ओसीआर निकाल ऑबजकटस
IronOCR परतयक ओसीआर ऑपरशनसाठी ओसीआर निकाल ऑबजकट परत करत. विकसक कवळ परतिमवरन मजकर सकन करणयासाठी या ऑबजकटची मजकर मालमतता वापरतात.
तथापि, ओसीआर निकाल डीओएम यापकषा बरच परगत आह.
```csharp
using IronOcr;
using System.Drawing; // Ensure System.Drawing is referenced
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;
Ocr.Configuration.ReadBarCodes = true; // Necessary for barcode reading
using (var Input = new OcrInput(@"images\sample.tiff"))
{
OcrResult Result = Ocr.Read(Input);
// Explore the detailed API for pages, words, barcodes, images, and more.
var Pages = Result.Pages;
var Words = Pages[0].Words;
var Barcodes = Result.Barcodes;
// Detailed exploration of OCR result object for extensive data usage
}
```
## कामगिरी
IronOCR कामगिरी टयन करणयाची किवा इनपट परतिमा जोरदारपण सधारित करणयाची आवशयकता नसताना बॉकसचया बाहर ठिकाणी काम करत.
वग बलिझिग आहः आयरनऑक २०२०+ १० पट अधिक वगवान आह आणि मागील बाधकामापकषा २ %०% पकषा कमी चक करतो.
## अधिक जाणन घया
C#, वहीबी, एफ#, किवा इतर कोणतयाही .NET O.C.C. मधय ओसीआरबददल अधिक जाणन घणयासाठी, कपया [आमचा समदाय परशिकषण वाचा](/csharp/ocr/tutorials/how-to-read-text-from-an-image-in-csharp-net/) , ज लोह ओसीआर कस वापराव याची वासतविक जगाची उदाहरण दतात आणि यातन सरवोततम कस मिळवाव याची बारीक बारीक उदाहरण दिली जाऊ शकतात.
[.NET विकसकासाठी](/csharp/ocr/object-reference/api/) परत [ऑबजकट सदरभ](/csharp/ocr/object-reference/api/) दखील उपलबध आह.
हा C# कोड उदाहरण परतिमा किवा पीडीएफ दसतऐवजातन मराठी मजकर वाचतो.
// PM> Install-Package IronOcr.Languages.Marathiusing IronOcr;// Create an instance of IronTesseractvarOcr = new IronTesseract();// Set the language to MarathiOcr.Language = OcrLanguage.Marathi;// Provide the input imageusing (varInput = new OcrInput(@"images\Marathi.png")){ // Perform OCR operation varResult = Ocr.Read(Input); // Get all text from the result varAllText = Result.Text;Console.WriteLine(AllText);}
// PM> Install-Package IronOcr.Languages.Marathi
using IronOcr;
// Create an instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Marathi
Ocr.Language = OcrLanguage.Marathi;
// Provide the input image
using (var Input = new OcrInput(@"images\Marathi.png"))
{
// Perform OCR operation
var Result = Ocr.Read(Input);
// Get all text from the result
var AllText = Result.Text;
Console.WriteLine(AllText);
}
' PM> Install-Package IronOcr.Languages.MarathiImportsIronOcr' Create an instance of IronTesseractPrivateOcr = New IronTesseract()' Set the language to MarathiOcr.Language = OcrLanguage.Marathi' Provide the input imageUsingInput = New OcrInput("images\Marathi.png") ' Perform OCR operation DimResult = Ocr.Read(Input) ' Get all text from the result DimAllText = Result.TextConsole.WriteLine(AllText)EndUsing
' PM> Install-Package IronOcr.Languages.Marathi
Imports IronOcr
' Create an instance of IronTesseract
Private Ocr = New IronTesseract()
' Set the language to Marathi
Ocr.Language = OcrLanguage.Marathi
' Provide the input image
Using Input = New OcrInput("images\Marathi.png")
' Perform OCR operation
Dim Result = Ocr.Read(Input)
' Get all text from the result
Dim AllText = Result.Text
Console.WriteLine(AllText)
End Using
आयरनओसीआर का निवडा?
लोह ओसीआर एक सथापित करण सोप, परत आणि दसतऐवजीकरण .NET सॉफटवअर लायबररी आह.
कोणतीही बाहय वब सवा, चाल फी किवा इटरनटवर गोपनीय कागदपतर न वापरता 99.8% + ओसीआर अचकता मिळविणयासाठी आयरनओसीआर निवडा.
सी # विकसक वहनिला परीकषणावरील आयरनओसीआर का निवडतात:
एकल डीएलएल किवा नजट महणन सथापित करा
बॉकसचया बाहर टसटरकट 5, 4 आणि 3 इजिनाचा समावश आह.
अचकता 99.8% नियमित टसटरकटपकषा लकषणीय आह.
बलिझिग सपीड आणि मलटीथरडिग
MVC, वबअप, डसकटॉप, कनसोल आणि सरवहर अनपरयोग ससगत
कारय करणयासाठी कोणतही Exes किवा C++ कोड नाही
परत पीडीएफ ओसीआर समरथन
जवळजवळ कोणतीही परतिमा फाइल किवा पीडीएफ ओसीआर करणयासाठी
परत .NET कोअर, मानक आणि फरमवरक समरथन
विडोज, मक, लिनकस, अझर, डॉकर, लमबडा, एडबलयएस वर तनात करा
परतिमा, समनवय, आकडवारी आणि फॉनट काढा. फकत मजकर नाही.
वयावसायिक आणि मालकीचया अनपरयोगामधय टसटरकट ओसीआरचा पनरवितरण करणयासाठी वापरला जाऊ शकतो.
वासतविक जगाचया परतिमा आणि छायाचितरासारखया अपरण दसतऐवजावर काम करताना किवा डिजिटल आवाज किवा अपरणता अस शकतात कमी रिझोलयशनच सकन घताना लोह ओसीआर चमकतो.
.NET पलटफॉरमसाठी इतर विनामलय ओसीआर लायबररी अशा इतर .NET टसटरकट एपीआय आणि वब सवा या वासतविक जगाचया वापरासाठी चागलयापरकार काम करत नाहीत.
टसटरकट 5 सह ओसीआर - C# मधय कोडिग परारभ करा
खाली कोड नमना दरशवितो की C# किवा वहीबी .NET वापरन परतिमच मजकर वाचण किती सोप आह.
वनलाइनर
stringText = new IronTesseract().Read(@"img\Screenshot.png").Text;
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
DimTextAsString = (New IronTesseract()).Read("img\Screenshot.png").Text
Dim Text As String = (New IronTesseract()).Read("img\Screenshot.png").Text
हलो वरलड कॉनफिगर करणयायोगय
// PM> Install-Package IronOcr.Languages.Marathiusing IronOcr;// Create an instance of IronTesseractvarOcr = new IronTesseract();// Set the language to MarathiOcr.Language = OcrLanguage.Marathi;// Create OcrInput and add imagesusing (varInput = new OcrInput()){Input.AddImage("images/sample.jpeg"); // You can add more images // Input.AddImage("another_image.jpeg"); // Perform OCR operation varResult = Ocr.Read(Input); // Output the text to consoleConsole.WriteLine(Result.Text);}
// PM> Install-Package IronOcr.Languages.Marathi
using IronOcr;
// Create an instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Marathi
Ocr.Language = OcrLanguage.Marathi;
// Create OcrInput and add images
using (var Input = new OcrInput())
{
Input.AddImage("images/sample.jpeg");
// You can add more images
// Input.AddImage("another_image.jpeg");
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output the text to console
Console.WriteLine(Result.Text);
}
' PM> Install-Package IronOcr.Languages.MarathiImportsIronOcr' Create an instance of IronTesseractDimOcrAs New IronTesseract()' Set the language to MarathiOcr.Language = OcrLanguage.Marathi' Create OcrInput and add imagesUsingInputAs New OcrInput()Input.AddImage("images/sample.jpeg") ' You can add more images ' Input.AddImage("another_image.jpeg") ' Perform OCR operation DimResult = Ocr.Read(Input) ' Output the text to consoleConsole.WriteLine(Result.Text)EndUsing
' PM> Install-Package IronOcr.Languages.Marathi
Imports IronOcr
' Create an instance of IronTesseract
Dim Ocr As New IronTesseract()
' Set the language to Marathi
Ocr.Language = OcrLanguage.Marathi
' Create OcrInput and add images
Using Input As New OcrInput()
Input.AddImage("images/sample.jpeg")
' You can add more images
' Input.AddImage("another_image.jpeg")
' Perform OCR operation
Dim Result = Ocr.Read(Input)
' Output the text to console
Console.WriteLine(Result.Text)
End Using
सी# पीडीएफ ओसीआर
varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Marathi;using (var input = new OcrInput()){ // Add a PDF file and its password if any input.AddPdf("example.pdf", "password"); // Perform OCR operation varResult = Ocr.Read(input); // Output the resultConsole.WriteLine(Result.Text);Console.WriteLine($"{Result.Pages.Count()} Pages");}
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var input = new OcrInput())
{
// Add a PDF file and its password if any
input.AddPdf("example.pdf", "password");
// Perform OCR operation
var Result = Ocr.Read(input);
// Output the result
Console.WriteLine(Result.Text);
Console.WriteLine($"{Result.Pages.Count()} Pages");
}
DimOcr = New IronTesseract()Ocr.Language = OcrLanguage.MarathiUsing input = New OcrInput() ' Add a PDF file and its password if any input.AddPdf("example.pdf", "password") ' Perform OCR operation DimResult = Ocr.Read(input) ' Output the resultConsole.WriteLine(Result.Text)Console.WriteLine($"{Result.Pages.Count()} Pages")EndUsing
Dim Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Marathi
Using input = New OcrInput()
' Add a PDF file and its password if any
input.AddPdf("example.pdf", "password")
' Perform OCR operation
Dim Result = Ocr.Read(input)
' Output the result
Console.WriteLine(Result.Text)
Console.WriteLine($"{Result.Pages.Count()} Pages")
End Using
मलटीपज टीआयएफएफसाठी ओसीआर
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Marathi;using (varInput = new OcrInput()){ // Add Multi-frame TIFFInput.AddMultiFrameTiff("multi-frame.tiff"); // Perform OCR operation varResult = Ocr.Read(Input); // Output resultConsole.WriteLine(Result.Text);}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Add Multi-frame TIFF
Input.AddMultiFrameTiff("multi-frame.tiff");
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output result
Console.WriteLine(Result.Text);
}
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Marathi
Using Input = New OcrInput()
' Add Multi-frame TIFF
Input.AddMultiFrameTiff("multi-frame.tiff")
' Perform OCR operation
Dim Result = Ocr.Read(Input)
' Output result
Console.WriteLine(Result.Text)
End Using
बारकोड आणि कयआर
// using IronOcr;varOcr = new IronTesseract();Ocr.Configuration.ReadBarCodes = true;using (var input = new OcrInput()){ // Add an image containing barcode input.AddImage("img/Barcode.png"); // Perform OCR operation varResult = Ocr.Read(input); // Iterate over barcodes and output value foreach (varBarcodeinResult.Barcodes) {Console.WriteLine(Barcode.Value); // Additional properties like Type and Location are also available }}
// using IronOcr;
var Ocr = new IronTesseract();
Ocr.Configuration.ReadBarCodes = true;
using (var input = new OcrInput())
{
// Add an image containing barcode
input.AddImage("img/Barcode.png");
// Perform OCR operation
var Result = Ocr.Read(input);
// Iterate over barcodes and output value
foreach (var Barcode in Result.Barcodes)
{
Console.WriteLine(Barcode.Value);
// Additional properties like Type and Location are also available
}
}
' Imports IronOcrDimOcrAs New IronTesseract()Ocr.Configuration.ReadBarCodes = TrueUsing input As New OcrInput() ' Add an image containing barcode input.AddImage("img/Barcode.png") ' Perform OCR operation DimResult = Ocr.Read(input) ' Iterate over barcodes and output value For EachBarcodeInResult.BarcodesConsole.WriteLine(Barcode.Value) ' Additional properties like Type and Location are also available NextEndUsing
' Imports IronOcr
Dim Ocr As New IronTesseract()
Ocr.Configuration.ReadBarCodes = True
Using input As New OcrInput()
' Add an image containing barcode
input.AddImage("img/Barcode.png")
' Perform OCR operation
Dim Result = Ocr.Read(input)
' Iterate over barcodes and output value
For Each Barcode In Result.Barcodes
Console.WriteLine(Barcode.Value)
' Additional properties like Type and Location are also available
Next
End Using
परतिमचया विशिषट कषतरावरील ओसीआर
using IronOcr;using System.Drawing; // Ensure System.Drawing is referencedvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Marathi;using (varInput = new OcrInput()){ // Define a content area with specific coordinates varContentArea = new System.Drawing.Rectangle { X = 215, Y = 1250, Height = 280, Width = 1335 }; // Add image with specific content areaInput.Add("document.png", ContentArea); // Perform OCR operation varResult = Ocr.Read(Input); // Output the resultant textConsole.WriteLine(Result.Text);}
using IronOcr;
using System.Drawing; // Ensure System.Drawing is referenced
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Define a content area with specific coordinates
var ContentArea = new System.Drawing.Rectangle { X = 215, Y = 1250, Height = 280, Width = 1335 };
// Add image with specific content area
Input.Add("document.png", ContentArea);
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output the resultant text
Console.WriteLine(Result.Text);
}
ImportsIronOcrImportsSystem.Drawing' Ensure System.Drawing is referencedPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.MarathiUsingInput = New OcrInput() ' Define a content area with specific coordinates DimContentArea = New System.Drawing.RectangleWith { .X = 215, .Y = 1250, .Height = 280, .Width = 1335 } ' Add image with specific content areaInput.Add("document.png", ContentArea) ' Perform OCR operation DimResult = Ocr.Read(Input) ' Output the resultant textConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
Imports System.Drawing ' Ensure System.Drawing is referenced
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Marathi
Using Input = New OcrInput()
' Define a content area with specific coordinates
Dim ContentArea = New System.Drawing.Rectangle With {
.X = 215,
.Y = 1250,
.Height = 280,
.Width = 1335
}
' Add image with specific content area
Input.Add("document.png", ContentArea)
' Perform OCR operation
Dim Result = Ocr.Read(Input)
' Output the resultant text
Console.WriteLine(Result.Text)
End Using
निमन गणवतता सकनससाठी ओसीआर
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Marathi;using (varInput = new OcrInput(@"img\Potter.LowQuality.tiff")){ // Enhance input by removing noise and fixing rotation issuesInput.DeNoise(); // Reduces digital noiseInput.Deskew(); // Free from skew issues // Perform OCR operation varResult = Ocr.Read(Input); // Output resultConsole.WriteLine(Result.Text);}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
// Enhance input by removing noise and fixing rotation issues
Input.DeNoise(); // Reduces digital noise
Input.Deskew(); // Free from skew issues
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output result
Console.WriteLine(Result.Text);
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.MarathiUsingInput = New OcrInput("img\Potter.LowQuality.tiff") ' Enhance input by removing noise and fixing rotation issuesInput.DeNoise() ' Reduces digital noiseInput.Deskew() ' Free from skew issues ' Perform OCR operation DimResult = Ocr.Read(Input) ' Output resultConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Marathi
Using Input = New OcrInput("img\Potter.LowQuality.tiff")
' Enhance input by removing noise and fixing rotation issues
Input.DeNoise() ' Reduces digital noise
Input.Deskew() ' Free from skew issues
' Perform OCR operation
Dim Result = Ocr.Read(Input)
' Output result
Console.WriteLine(Result.Text)
End Using
शोधणयायोगय पीडीएफ महणन ओसीआर परिणाम निरयात करा
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Marathi;using (varInput = new OcrInput()){ // Set the title for PDFInput.Title = "Quarterly Report"; // Add images to the inputInput.AddImage("image1.jpeg");Input.AddImage("image2.png");Input.AddImage("image3.gif"); // Perform OCR operation varResult = Ocr.Read(Input); // Save the result as searchable PDFResult.SaveAsSearchablePdf("searchable.pdf");}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Set the title for PDF
Input.Title = "Quarterly Report";
// Add images to the input
Input.AddImage("image1.jpeg");
Input.AddImage("image2.png");
Input.AddImage("image3.gif");
// Perform OCR operation
var Result = Ocr.Read(Input);
// Save the result as searchable PDF
Result.SaveAsSearchablePdf("searchable.pdf");
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.MarathiUsingInput = New OcrInput() ' Set the title for PDFInput.Title = "Quarterly Report" ' Add images to the inputInput.AddImage("image1.jpeg")Input.AddImage("image2.png")Input.AddImage("image3.gif") ' Perform OCR operation DimResult = Ocr.Read(Input) ' Save the result as searchable PDFResult.SaveAsSearchablePdf("searchable.pdf")EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Marathi
Using Input = New OcrInput()
' Set the title for PDF
Input.Title = "Quarterly Report"
' Add images to the input
Input.AddImage("image1.jpeg")
Input.AddImage("image2.png")
Input.AddImage("image3.gif")
' Perform OCR operation
Dim Result = Ocr.Read(Input)
' Save the result as searchable PDF
Result.SaveAsSearchablePdf("searchable.pdf")
End Using
शोधणयायोगय पीडीएफ रपातरणासाठी टीआइएफएफ
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Marathi;using (varInput = new OcrInput()){ // Add TIFF fileInput.AddMultiFrameTiff("example.tiff"); // Perform OCR operation and save as searchable PDF varResult = Ocr.Read(Input);Result.SaveAsSearchablePdf("searchable.pdf");}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Add TIFF file
Input.AddMultiFrameTiff("example.tiff");
// Perform OCR operation and save as searchable PDF
var Result = Ocr.Read(Input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.MarathiUsingInput = New OcrInput() ' Add TIFF fileInput.AddMultiFrameTiff("example.tiff") ' Perform OCR operation and save as searchable PDF DimResult = Ocr.Read(Input)Result.SaveAsSearchablePdf("searchable.pdf")EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Marathi
Using Input = New OcrInput()
' Add TIFF file
Input.AddMultiFrameTiff("example.tiff")
' Perform OCR operation and save as searchable PDF
Dim Result = Ocr.Read(Input)
Result.SaveAsSearchablePdf("searchable.pdf")
End Using
एचसीएल महणन ओसीआर परिणाम निरयात करा
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Marathi;using (varInput = new OcrInput()){ // Set HTML titleInput.Title = "Html Title"; // Add an imageInput.AddImage("image1.jpeg"); // Perform OCR operation varResult = Ocr.Read(Input); // Save result as HOCR fileResult.SaveAsHocrFile("results.html");}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput())
{
// Set HTML title
Input.Title = "Html Title";
// Add an image
Input.AddImage("image1.jpeg");
// Perform OCR operation
var Result = Ocr.Read(Input);
// Save result as HOCR file
Result.SaveAsHocrFile("results.html");
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.MarathiUsingInput = New OcrInput() ' Set HTML titleInput.Title = "Html Title" ' Add an imageInput.AddImage("image1.jpeg") ' Perform OCR operation DimResult = Ocr.Read(Input) ' Save result as HOCR fileResult.SaveAsHocrFile("results.html")EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Marathi
Using Input = New OcrInput()
' Set HTML title
Input.Title = "Html Title"
' Add an image
Input.AddImage("image1.jpeg")
' Perform OCR operation
Dim Result = Ocr.Read(Input)
' Save result as HOCR file
Result.SaveAsHocrFile("results.html")
End Using
चागल, वगवान OCR परिणाम तयार करणयासाठी OCR इनपट परतिमा उचच परतीची बनवत.
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Marathi;using (varInput = new OcrInput(@"LowQuality.jpeg")){ // Enhance the input by removing noise and fixing rotationInput.DeNoise(); // Reduce digital noiseInput.Deskew(); // Correct for skew // Perform OCR operation varResult = Ocr.Read(Input); // Output resultConsole.WriteLine(Result.Text);}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
// Enhance the input by removing noise and fixing rotation
Input.DeNoise(); // Reduce digital noise
Input.Deskew(); // Correct for skew
// Perform OCR operation
var Result = Ocr.Read(Input);
// Output result
Console.WriteLine(Result.Text);
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.MarathiUsingInput = New OcrInput("LowQuality.jpeg") ' Enhance the input by removing noise and fixing rotationInput.DeNoise() ' Reduce digital noiseInput.Deskew() ' Correct for skew ' Perform OCR operation DimResult = Ocr.Read(Input) ' Output resultConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Marathi
Using Input = New OcrInput("LowQuality.jpeg")
' Enhance the input by removing noise and fixing rotation
Input.DeNoise() ' Reduce digital noise
Input.Deskew() ' Correct for skew
' Perform OCR operation
Dim Result = Ocr.Read(Input)
' Output result
Console.WriteLine(Result.Text)
End Using
OcrInput.Erode() - Applies advanced morphology removing pixels from object boundaries.
OcrInput.Deskew() - Orients the image orthogonally, crucial for skewed images.
OcrInput.DeepCleanBackgroundNoise() - Removes heavy background noise but can lower OCR accuracy.
OcrInput.EnhanceResolution - Upscales low-resolution images for better OCR.
Each filter can greatly aid in improving the readability of text for OCR processes.
126 भाषा पक
IronOCR 126 आतरराषटरीय भाषाना भाषचया पकदवार समरथन करत जया डीएलएल महणन वितरित कलया जातात. यात जरमन, फरच, इगरजी, चीनी, जपानी इतयादीचा समावश आह.
आपण कोणतीही तयार कलली ".traineddata" फाइल दखील वापर शकता - आपण सवतः तयार कललया फायलीचा समावश.
भाषच उदाहरण
// using IronOcr;// Install IronOcr.Languages.ArabicvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Arabic;using (var input = new OcrInput()){ input.AddImage("img/arabic.gif"); // Perform OCR operation varResult = Ocr.Read(input); // Arabic can't be printed on console directly; save to disk insteadResult.SaveAsTextFile("arabic.txt");}
// using IronOcr;
// Install IronOcr.Languages.Arabic
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Arabic;
using (var input = new OcrInput())
{
input.AddImage("img/arabic.gif");
// Perform OCR operation
var Result = Ocr.Read(input);
// Arabic can't be printed on console directly; save to disk instead
Result.SaveAsTextFile("arabic.txt");
}
' using IronOcr;' Install IronOcr.Languages.ArabicDimOcr = New IronTesseract()Ocr.Language = OcrLanguage.ArabicUsing input = New OcrInput() input.AddImage("img/arabic.gif") ' Perform OCR operation DimResult = Ocr.Read(input) ' Arabic can't be printed on console directly; save to disk insteadResult.SaveAsTextFile("arabic.txt")EndUsing
' using IronOcr;
' Install IronOcr.Languages.Arabic
Dim Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Arabic
Using input = New OcrInput()
input.AddImage("img/arabic.gif")
' Perform OCR operation
Dim Result = Ocr.Read(input)
' Arabic can't be printed on console directly; save to disk instead
Result.SaveAsTextFile("arabic.txt")
End Using
एकाधिक भाषच उदाहरण
// using IronOcr;// Install IronOcr.Languages.ChineseSimplifiedvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.ChineseSimplified;// Add secondary languageOcr.AddSecondaryLanguage(OcrLanguage.Marathi);using (var input = new OcrInput()){ input.AddPdf("multi-language.pdf"); // Perform OCR operation varResult = Ocr.Read(input); // Save to text fileResult.SaveAsTextFile("results.txt");}
// using IronOcr;
// Install IronOcr.Languages.ChineseSimplified
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.ChineseSimplified;
// Add secondary language
Ocr.AddSecondaryLanguage(OcrLanguage.Marathi);
using (var input = new OcrInput())
{
input.AddPdf("multi-language.pdf");
// Perform OCR operation
var Result = Ocr.Read(input);
// Save to text file
Result.SaveAsTextFile("results.txt");
}
' using IronOcr;' Install IronOcr.Languages.ChineseSimplifiedDimOcr = New IronTesseract()Ocr.Language = OcrLanguage.ChineseSimplified' Add secondary languageOcr.AddSecondaryLanguage(OcrLanguage.Marathi)Using input = New OcrInput() input.AddPdf("multi-language.pdf") ' Perform OCR operation DimResult = Ocr.Read(input) ' Save to text fileResult.SaveAsTextFile("results.txt")EndUsing
' using IronOcr;
' Install IronOcr.Languages.ChineseSimplified
Dim Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.ChineseSimplified
' Add secondary language
Ocr.AddSecondaryLanguage(OcrLanguage.Marathi)
Using input = New OcrInput()
input.AddPdf("multi-language.pdf")
' Perform OCR operation
Dim Result = Ocr.Read(input)
' Save to text file
Result.SaveAsTextFile("results.txt")
End Using
तपशीलवार ओसीआर निकाल ऑबजकटस
IronOCR परतयक ओसीआर ऑपरशनसाठी ओसीआर निकाल ऑबजकट परत करत. विकसक कवळ परतिमवरन मजकर सकन करणयासाठी या ऑबजकटची मजकर मालमतता वापरतात.
तथापि, ओसीआर निकाल डीओएम यापकषा बरच परगत आह.
using IronOcr;using System.Drawing; // Ensure System.Drawing is referencedvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Marathi;Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;Ocr.Configuration.ReadBarCodes = true; // Necessary for barcode readingusing (varInput = new OcrInput(@"images\sample.tiff")){ OcrResultResult = Ocr.Read(Input); // Explore the detailed API for pages, words, barcodes, images, and more. varPages = Result.Pages; varWords = Pages[0].Words; varBarcodes = Result.Barcodes; // Detailed exploration of OCR result object for extensive data usage}
using IronOcr;
using System.Drawing; // Ensure System.Drawing is referenced
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Marathi;
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;
Ocr.Configuration.ReadBarCodes = true; // Necessary for barcode reading
using (var Input = new OcrInput(@"images\sample.tiff"))
{
OcrResult Result = Ocr.Read(Input);
// Explore the detailed API for pages, words, barcodes, images, and more.
var Pages = Result.Pages;
var Words = Pages[0].Words;
var Barcodes = Result.Barcodes;
// Detailed exploration of OCR result object for extensive data usage
}
ImportsIronOcrImportsSystem.Drawing' Ensure System.Drawing is referencedPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.MarathiOcr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstmOcr.Configuration.ReadBarCodes = True ' Necessary for barcode readingUsingInput = New OcrInput("images\sample.tiff") DimResultAsOcrResult = Ocr.Read(Input) ' Explore the detailed API for pages, words, barcodes, images, and more. DimPages = Result.Pages DimWords = Pages(0).Words DimBarcodes = Result.Barcodes ' Detailed exploration of OCR result object for extensive data usageEndUsing
Imports IronOcr
Imports System.Drawing ' Ensure System.Drawing is referenced
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Marathi
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm
Ocr.Configuration.ReadBarCodes = True ' Necessary for barcode reading
Using Input = New OcrInput("images\sample.tiff")
Dim Result As OcrResult = Ocr.Read(Input)
' Explore the detailed API for pages, words, barcodes, images, and more.
Dim Pages = Result.Pages
Dim Words = Pages(0).Words
Dim Barcodes = Result.Barcodes
' Detailed exploration of OCR result object for extensive data usage
End Using
कामगिरी
IronOCR कामगिरी टयन करणयाची किवा इनपट परतिमा जोरदारपण सधारित करणयाची आवशयकता नसताना बॉकसचया बाहर ठिकाणी काम करत.
वग बलिझिग आहः आयरनऑक २०२०+ १० पट अधिक वगवान आह आणि मागील बाधकामापकषा २ %०% पकषा कमी चक करतो.
अधिक जाणन घया
C#, वहीबी, एफ#, किवा इतर कोणतयाही .NET O.C.C. मधय ओसीआरबददल अधिक जाणन घणयासाठी, कपया आमचा समदाय परशिकषण वाचा , ज लोह ओसीआर कस वापराव याची वासतविक जगाची उदाहरण दतात आणि यातन सरवोततम कस मिळवाव याची बारीक बारीक उदाहरण दिली जाऊ शकतात.
Curtis Chau é bacharel em Ciência da Computação (Universidade Carleton) e se especializa em desenvolvimento front-end, com experiência em Node.js, TypeScript, JavaScript e React. Apaixonado por criar interfaces de usuário intuitivas e esteticamente agradáveis, Curtis gosta de trabalhar com frameworks modernos e criar manuais bem estruturados e visualmente atraentes.