सी # आणि .NET मध्ये मराठी ओसीआर

या दस्तऐवजाच्या इतर आवृत्त्याः

आयर्नओसीआर एक C# सॉफ्टवेअर घटक आहे जो .NET कोडरला मराठीसह 126 भाषेत प्रतिमा आणि पीडीएफ दस्तऐवजांमधून मजकूर वाचू देतो.

हा टेस्क्रॅक्टचा प्रगत काटा आहे जो केवळ .NET विकसकांसाठी तयार केलेला आहे आणि वेग आणि अचूकतेसाठी नियमितपणे इतर टेसरेक्ट इंजिनला मागे टाकतो.

आयर्नऑक. भाषा.मराठीची सामग्री

या पॅकेजमध्ये .NET साठी 46 OCR भाषा आहेत:

  • मराठी
  • मराठीबेस्ट
  • मराठीफास्ट

डाउनलोड करा

मराठी भाषा पॅक [मराठी]

स्थापना

आपल्यास सर्वप्रथम आपल्या .NET प्रोजेक्टवर आपले मराठी ओसीआर पॅकेज स्थापित करणे आहे.

Install-Package IronOCR.Languages.Marathi

कोड उदाहरण

हे C# कोड उदाहरण प्रतिमा किंवा पीडीएफ दस्तऐवजातून मराठी मजकूर वाचतो.

// 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.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.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
$vbLabelText   $csharpLabel

आयर्नओसीआर का निवडा?

लोह ओसीआर एक स्थापित करणे सोपे, पूर्ण आणि दस्तऐवजीकरण .NET सॉफ्टवेअर लायब्ररी आहे.

कोणतीही बाह्य वेब सेवा, चालू फी किंवा इंटरनेटवर गोपनीय कागदपत्रे न वापरता 99.8% + ओसीआर अचूकता मिळविण्यासाठी आयर्नओसीआर निवडा.

सी # विकसक व्हॅनिला परीक्षणावरील आयर्नओसीआर का निवडतात:

  • एकल डीएलएल किंवा नुजेट म्हणून स्थापित करा
  • बॉक्सच्या बाहेर टेसरॅक्ट 5, 4 आणि 3 इंजिनांचा समावेश आहे.
  • अचूकता 99.8% नियमित टेस्क्रॅक्टपेक्षा लक्षणीय आहे.
  • ब्लेझिंग स्पीड आणि मल्टीथ्रेडिंग
  • MVC, वेबअॅप, डेस्कटॉप, कन्सोल आणि सर्व्हर अनुप्रयोग सुसंगत
  • कार्य करण्यासाठी कोणतेही Exes किंवा C++ कोड नाही
  • पूर्ण पीडीएफ ओसीआर समर्थन
  • जवळजवळ कोणतीही प्रतिमा फाइल किंवा पीडीएफ ओसीआर करण्यासाठी
  • पूर्ण .NET कोअर, मानक आणि फ्रेमवर्क समर्थन
  • विंडोज, मॅक, लिनक्स, अझर, डॉकर, लॅम्बडा, एडब्ल्यूएस वर तैनात करा
  • बारकोड आणि क्यूआर कोड वाचा
  • एक्सएचटीएमएल म्हणून ओसीआर निर्यात करा
  • शोधण्यायोग्य पीडीएफ दस्तऐवजांवर ओसीआर निर्यात करा
  • मल्टीथ्रेडिंग समर्थन
  • 126 आंतरराष्ट्रीय भाषा सर्व नूगे किंवा ओकरडाटा फायली द्वारे व्यवस्थापित केल्या आहेत
  • प्रतिमा, समन्वय, आकडेवारी आणि फॉन्ट काढा. फक्त मजकूर नाही.
  • व्यावसायिक आणि मालकीच्या अनुप्रयोगांमध्ये टेस्क्रॅक्ट ओसीआरचे पुन्हा वितरण करण्यासाठी वापरले जाऊ शकते.

वास्तविक जगाच्या प्रतिमा आणि छायाचित्रांसारख्या अपूर्ण दस्तऐवजांवर काम करताना किंवा डिजिटल आवाज किंवा अपूर्णता असू शकतात कमी रिजोल्यूशनचे स्कॅन घेताना लोह ओसीआर चमकतो.

.NET प्लॅटफॉर्मसाठी इतर विनामूल्य ओसीआर लायब्ररी अशा इतर .NET टेसरेक्ट एपीआय आणि वेब सेवा या वास्तविक जगाच्या वापरासाठी चांगल्याप्रकारे काम करत नाहीत.

टेसरॅक्ट 5 सह ओसीआर - C# मध्ये कोडिंग प्रारंभ करा

खाली कोड नमुना दर्शवितो की C# किंवा व्हीबी .NET वापरून प्रतिमेचे मजकूर वाचणे किती सोपे आहे.

वनलाइनर

string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
Dim Text As String = (New IronTesseract()).Read("img\Screenshot.png").Text
$vbLabelText   $csharpLabel

हॅलो वर्ल्ड कॉन्फिगर करण्यायोग्य

// 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.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.Marathi
Imports IronOcr

' Create an instance of IronTesseract
Private Ocr = New IronTesseract()

' Set the language to Marathi
Ocr.Language = OcrLanguage.Marathi

' Create OcrInput and add images
Using Input = 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
$vbLabelText   $csharpLabel

सी# पीडीएफ ओसीआर

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");
}
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");
}
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
$vbLabelText   $csharpLabel

मल्टीपेज टीआयएफएफसाठी ओसीआर

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);
}
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
$vbLabelText   $csharpLabel

बारकोड आणि क्यूआर

// 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
    }
}
// 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
    }
}
' using IronOcr;
Dim Ocr = New IronTesseract()
Ocr.Configuration.ReadBarCodes = True

Using input = 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 Barcode
End Using
$vbLabelText   $csharpLabel

प्रतिमांच्या विशिष्ट क्षेत्रावरील ओसीआर

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);
}
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);
}
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
$vbLabelText   $csharpLabel

निम्न गुणवत्ता स्कॅनसाठी ओसीआर

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);
}
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);
}
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
$vbLabelText   $csharpLabel

शोधण्यायोग्य पीडीएफ म्हणून ओसीआर परिणाम निर्यात करा

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");
}
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");
}
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
$vbLabelText   $csharpLabel

शोधण्यायोग्य पीडीएफ रूपांतरणासाठी टीआइएफएफ

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");
}
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");
}
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
$vbLabelText   $csharpLabel

एचसीएल म्हणून ओसीआर परिणाम निर्यात करा

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");
}
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");
}
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
$vbLabelText   $csharpLabel

ओसीआर प्रतिमा वर्धित फिल्टर

OCR कार्यक्षमता सुधारित करण्यासाठी OcrInput अद्वितीय फिल्टर प्रदान करते.

प्रतिमा वर्धन कोड उदाहरण

चांगले, वेगवान OCR परिणाम तयार करण्यासाठी OCR इनपुट प्रतिमा उच्च प्रतीचे बनवते.

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);
}
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);
}
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
$vbLabelText   $csharpLabel

ओसीआर प्रतिमा फिल्टरची यादी

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 126 आंतरराष्ट्रीय भाषांना भाषेच्या पॅकद्वारे समर्थन करते ज्या डीएलएल म्हणून वितरीत केल्या जातात. यात जर्मन, फ्रेंच, इंग्रजी, चीनी, जपानी इत्यादीचा समावेश आहे.

आपण कोणतीही तयार केलेली ".traineddata" फाइल देखील वापरू शकता - आपण स्वतः तयार केलेल्या फायलींचा समावेश.

भाषेचे उदाहरण

// 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.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.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
$vbLabelText   $csharpLabel

एकाधिक भाषेचे उदाहरण

// 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.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.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
$vbLabelText   $csharpLabel

तपशीलवार ओसीआर निकाल ऑब्जेक्ट्स

IronOCR प्रत्येक ओसीआर ऑपरेशनसाठी ओसीआर निकाल ऑब्जेक्ट परत करते. विकसक केवळ प्रतिमेवरून मजकूर स्कॅन करण्यासाठी या ऑब्जेक्टची मजकूर मालमत्ता वापरतात.

तथापि, ओसीआर निकाल डीओएम यापेक्षा बरेच प्रगत आहे.

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
}
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
}
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
$vbLabelText   $csharpLabel

कामगिरी

IronOCR कामगिरी ट्यून करण्याची किंवा इनपुट प्रतिमा जोरदारपणे सुधारित करण्याची आवश्यकता नसताना बॉक्सच्या बाहे ठिकाणी काम करते.

वेग ब्लीझिंग आहेः आयरनऑक २०२०+ १० पट अधिक वेगवान आहे आणि मागील बांधकामांपेक्षा २ %०% पेक्षा कमी चुका करतो.

अधिक जाणून घ्या

C#, व्हीबी, एफ#, किंवा इतर कोणत्याही .NET O.C.C. मध्ये ओसीआरबद्दल अधिक जाणून घेण्यासाठी, कृपया आमचे समुदाय प्रशिक्षण वाचा , जे लोहा ओसीआर कसे वापरावे याची वास्तविक जगाची उदाहरणे देतात आणि यातून सर्वोत्तम कसे मिळवावे याची बारीक बारीक उदाहरणे दिली जाऊ शकतात.

.NET विकसकांसाठी पूर्ण ऑब्जेक्ट संदर्भ देखील उपलब्ध आहे.