ਸੀ # ਅਤ .ਨਟ ਵਿਚ ਪਜਾਬੀ ਓ.ਸੀ.ਆਰ.

ਇਸ ਦਸਤਾਵਜ ਦ ਹਰ ਸਸਕਰਣ:

ਆਇਰਨ ਓਆਰਸੀਆਰ ਇਕ ਸੀ # ਸਫਟਵਅਰ ਭਾਗ ਹ ਜਿਸ ਨਾਲ .NET ਕਡਰ 126 ਭਾਸਾਵਾ ਵਿਚ ਚਿਤਰਾ ਅਤ ਪੀਡੀਐਫ ਦਸਤਾਵਜਾ ਤ ਪਾਠ ਨ ਪੜਹ ਸਕਦ ਹਨ.

ਇਹ ਟਸਰਕਟ ਦਾ ਇਕ ਉਨਤ ਫਰਕ ਹ, ਜ ਕਿ .NET ਡਿਵਲਪਰਾ ਲਈ ਵਿਸਸ ਤਰ 'ਤ ਬਣਾਇਆ ਗਿਆ ਹ ਅਤ ਨਿਯਮਤ ਤਰ' ਤ ਗਤੀ ਅਤ ਸਧਤਾ ਦਵਾ ਲਈ ਦਜ ਟਸਕਰਕਟ ਇਜਣਾ ਨ ਨਿਯਤਰਿਤ ਕਰਦਾ ਹ.

ਆਇਰਨ ਓ.ਸੀ. ਲਗਏਜ.ਪਜਾਬੀ ਦੀ ਸਮਗਰੀ

ਇਸ ਪਕਜ ਵਿਚ .NET ਲਈ 46 ਓਸੀਆਰ ਭਾਸਾਵਾ ਹਨ.

  • ਪਜਾਬੀ
  • PanjabiBest
  • PanjabiFast

ਡਾ .ਨਲਡ

ਪਜਾਬੀ ਭਾਸਾ ਪਕ [ਪਜਾਬੀ]
* Download as ਜਿਪ
* Install with as
https://www.nuget.org/packages/IronOcr.Languages.Panjabi/'> ਨਗਟ

ਇਸਟਾਲਸਨ

ਸਭ ਤ ਪਹਿਲਾ ਜ ਅਸੀ ਕਰਨਾ ਹ ਉਹ ਹ ਆਪਣ NET ਪਰਜਕਟ ਲਈ ਸਾਡਾ Panjabi OCR ਪਕਜ.

PM> Install-Package IronOCR.Languages.Panjabi

ਕਡ ਦੀ ਉਦਾਹਰਣ

ਇਹ ਸੀ # ਕਡ ਉਦਾਹਰਣ ਇਕ ਚਿਤਰ ਜਾ ਪੀਡੀਐਫ ਦਸਤਾਵਜ ਤ ਪਜਾਬੀ ਟਕਸਟ ਨ ਪੜਹਦਾ ਹ.

// PM> Install-Package IronOcr.Languages.Panjabi
using IronOcr;

var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;
using (var Input = new OcrInput(@"images\Panjabi.png"))
{
    var Result = Ocr.Read(Input);
    var AllText = Result.Text;
    // Print the entire text to the console.
    Console.WriteLine(AllText);
}
// PM> Install-Package IronOcr.Languages.Panjabi
using IronOcr;

var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;
using (var Input = new OcrInput(@"images\Panjabi.png"))
{
    var Result = Ocr.Read(Input);
    var AllText = Result.Text;
    // Print the entire text to the console.
    Console.WriteLine(AllText);
}
' PM> Install-Package IronOcr.Languages.Panjabi
Imports IronOcr

Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi
Using Input = New OcrInput("images\Panjabi.png")
	Dim Result = Ocr.Read(Input)
	Dim AllText = Result.Text
	' Print the entire text to the console.
	Console.WriteLine(AllText)
End Using
$vbLabelText   $csharpLabel

IronOCR ਕਿਉ ਚਣ?

ਆਇਰਨ ਓ.ਸੀ.ਆਰ. ਇਕ ਸਥਾਪਨਾ-ਵਿਚ-ਆਸਾਨ, ਸਪਰਨ ਅਤ ਚਗੀ ਤਰਹਾ ਦਸਤਾਵਜ ਵਾਲੀ. NET ਸਫਟਵਅਰ ਲਾਇਬਰਰੀ ਹ.

ਬਿਨਾ ਕਿਸ ਬਾਹਰੀ ਵਬ ਸਵਾਵਾ ਦੀ ਵਰਤ, ਜਾਰੀ ਫੀਸਾ ਜਾ ਇਟਰਨਟ ਤ ਗਪਤ ਦਸਤਾਵਜ ਭਜਣ ਤ ਬਿਨਾ 99.8% + ਓਸੀਆਰ ਸਧਤਾ ਪਰਾਪਤ ਕਰਨ ਲਈ ਆਇਰਨਆਰਸੀਆਰ ਦੀ ਚਣ ਕਰ.

ਕਿਉ ਸੀ ਡਿਵਲਪਰਾ ਨ ਵਨੀਲਾ ਟਸਕਰਕਟ ਨਾਲ ਆਇਰਨ ਓਆਰਸੀ ਦੀ ਚਣ ਕੀਤੀ:

  • ਇਕ ਸਿਗਲ DLL ਜਾ ਨਗਟ ਦ ਤਰ ਤ ਸਥਾਪਿਤ ਕਰ
  • ਬਾਕਸ ਤ ਬਾਹਰ ਟਸਰਕ 5, 4 ਅਤ 3 ਇਜਣਾ ਲਈ ਸਾਮਲ ਹ.
  • ਸਧਤਾ 99.8% ਨਿਯਮਤ ਟਸਟਰਕਟ ਨ ਮਹਤਵਪਰਣ ਰਪ ਵਿਚ ਪਰਭਾਵਤ ਕਰਦੀ ਹ.
  • ਬਲਜਿਗ ਸਪੀਡ ਅਤ ਮਲਟੀਟਰਡਿਗ
  • ਐਮਵੀਸੀ, ਵਬ ਐਪ, ਡਸਕਟਾਪ, ਕਸਲ ਅਤ ਸਰਵਰ ਐਪਲੀਕਸਨ ਅਨਕਲ ਹਨ
  • ਕਮ ਕਰਨ ਲਈ ਕਈ ਐਕਸਜ ਜਾ ਸੀ ++ ਕਡ ਨਹੀ
  • ਪਰਾ ਪੀਡੀਐਫ ਓਸੀਆਰ ਸਮਰਥਨ
  • ਲਗਭਗ ਕਿਸ ਵੀ ਚਿਤਰ ਫਾਈਲ ਜਾ ਪੀਡੀਐਫ ਨ ਓਸੀਆਰ ਕਰਨ ਲਈ
  • ਪਰਾ .ਨਟ ਕਰ, ਸਟਡਰਡ ਅਤ ਫਰਮਵਰਕ ਸਹਾਇਤਾ
  • ਵਿਡਜ, ਮਕ, ਲੀਨਕਸ, ਅਜਰ, ਡਕਰ, ਲਾਬਡਾ, ਏਡਬਲਯਐਸ ਤ ਲਗਾਓ
  • ਬਾਰਕਡ ਅਤ ਕਿRਆਰ ਕਡ ਪੜਹ
  • XCR ਦ ਤਰ ਤ ਓਸੀਆਰ ਐਕਸਪਰਟ ਕਰ
  • OCR ਨ ਖਜਣ ਯਗ PDF ਦਸਤਾਵਜਾ ਵਿਚ ਨਿਰਯਾਤ ਕਰ
  • ਮਲਟੀਥਰੀਡਿਗ ਸਹਾਇਤਾ
  • 126 ਸਾਰੀਆ ਕਮਾਤਰੀ ਭਾਸਾਵਾ ਨਗਟ ਜਾ ਓਕਰਡਾਟਾ ਫਾਈਲਾ ਦਆਰਾ ਪਰਬਧਿਤ ਹਨ
  • ਚਿਤਰ, ਤਾਲਮਲ, ਅਕੜ ਅਤ ਫਟ ਐਕਸਟਰਕਟ ਕਰ. ਸਿਰਫ ਟਕਸਟ ਹੀ ਨਹੀ.
  • ਵਪਾਰਕ ਅਤ ਮਲਕੀਅਤ ਐਪਲੀਕਸਨਾ ਦ ਅਦਰ ਟਸਕਰਕਟ ਓਸੀਆਰ ਨ ਦਬਾਰਾ ਵਡਣ ਲਈ ਵਰਤਿਆ ਜਾ ਸਕਦਾ ਹ.

ਆਇਰਨ ਓਸੀਆਰ ਚਮਕਦਾ ਹ ਜਦ ਅਸਲ ਵਿਸਵ ਚਿਤਰਾ ਅਤ ਅਪਰਣ ਦਸਤਾਵਜਾ ਜਿਵ ਕਿ ਫਟਆ, ਜਾ ਘਟ ਰਜਲਿ .ਸਨ ਦ ਸਕਨ ਨਾਲ ਕਮ ਕਰਦ ਸਮ ਜਿਸ ਵਿਚ ਡਿਜੀਟਲ ਸਰ ਜਾ ਕਮਜਰੀ ਹ ਸਕਦੀ ਹ.

.NET ਪਲਟਫਾਰਮ ਲਈ ਹਰ ਮਫਤ OCR ਲਾਇਬਰਰੀਆ ਅਜਿਹੀਆ ਹਰ .NET ਟਸਕਰਟ ਏਪੀਆਈ ਅਤ ਵਬ ਸਵਾਵਾ ਇਨਹਾ ਅਸਲ ਵਿਸਵ ਵਰਤ ਦ ਮਾਮਲਿਆ ਤ ਇਨੀਆ ਵਧੀਆ ਪਰਦਰਸਨ ਨਹੀ ਕਰਦੀਆ.

ਟਸਰਕ 5 ਨਾਲ ਓਸੀਆਰ - ਸੀ # ਵਿਚ ਕਡਿਗ ਸਰ ਕਰ

ਹਠਾ ਕਡ ਦਾ ਨਮਨਾ ਦਰਸਾਉਦਾ ਹ ਕਿ C# ਜਾ VB .NET ਦੀ ਵਰਤ ਕਰਦ ਹਏ ਚਿਤਰ ਤ ਪਾਠ ਪੜਹਨਾ ਕਿਨਾ ਸਖਾ ਹ.

ਵਨਲਾਈਨਰ

// Simple single line OCR conversion
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
// Simple single line OCR conversion
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
' Simple single line OCR conversion
Dim Text As String = (New IronTesseract()).Read("img\Screenshot.png").Text
$vbLabelText   $csharpLabel

ਹਲ ਵਰਲਡ

// PM> Install-Package IronOCR.Languages.Panjabi
using IronOcr;

// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

// Create an OcrInput to process images for OCR
using (var Input = new OcrInput())
{
    // Add an image for OCR processing
    Input.AddImage("images/sample.jpeg");
    //... You can add multiple images for batch processing
    var Result = Ocr.Read(Input);
    // Output the resulting text to the console
    Console.WriteLine(Result.Text);
}
// PM> Install-Package IronOCR.Languages.Panjabi
using IronOcr;

// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

// Create an OcrInput to process images for OCR
using (var Input = new OcrInput())
{
    // Add an image for OCR processing
    Input.AddImage("images/sample.jpeg");
    //... You can add multiple images for batch processing
    var Result = Ocr.Read(Input);
    // Output the resulting text to the console
    Console.WriteLine(Result.Text);
}
' PM> Install-Package IronOCR.Languages.Panjabi
Imports IronOcr

' Create a new instance of IronTesseract
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi

' Create an OcrInput to process images for OCR
Using Input = New OcrInput()
	' Add an image for OCR processing
	Input.AddImage("images/sample.jpeg")
	'... You can add multiple images for batch processing
	Dim Result = Ocr.Read(Input)
	' Output the resulting text to the console
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel

ਸੀ # ਪੀਡੀਐਫ ਓਸੀਆਰ

ਉਸ ਹੀ ਪਹਚ ਨ ਕਿਸ ਵੀ ਪੀਡੀਐਫ ਦਸਤਾਵਜ ਤ ਟਕਸਟ ਐਕਸਟਰਕਟ ਕਰਨ ਲਈ ਵਰਤਿਆ ਜਾ ਸਕਦਾ ਹ.

using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

// Process PDF documents for OCR
using (var Input = new OcrInput())
{
    Input.AddPdf("example.pdf", "password"); // Add PDF with optional password
    // Choose specific pages for OCR, if necessary

    var Result = Ocr.Read(Input);
    // Display the detected text
    Console.WriteLine(Result.Text);
    // Print the number of pages processed
    Console.WriteLine($"{Result.Pages.Count()} Pages");
    // PDF ਮਹਿ ਹਰਕ ਪਨ ਲਈ 1 ਪਨਾ
}
using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

// Process PDF documents for OCR
using (var Input = new OcrInput())
{
    Input.AddPdf("example.pdf", "password"); // Add PDF with optional password
    // Choose specific pages for OCR, if necessary

    var Result = Ocr.Read(Input);
    // Display the detected text
    Console.WriteLine(Result.Text);
    // Print the number of pages processed
    Console.WriteLine($"{Result.Pages.Count()} Pages");
    // PDF ਮਹਿ ਹਰਕ ਪਨ ਲਈ 1 ਪਨਾ
}
Imports IronOcr

' Initialize IronTesseract for OCR operations
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi

' Process PDF documents for OCR
Using Input = New OcrInput()
	Input.AddPdf("example.pdf", "password") ' Add PDF with optional password
	' Choose specific pages for OCR, if necessary

	Dim Result = Ocr.Read(Input)
	' Display the detected text
	Console.WriteLine(Result.Text)
	' Print the number of pages processed
	Console.WriteLine($"{Result.Pages.Count()} Pages")
	' PDF ਮਹਿ ਹਰਕ ਪਨ ਲਈ 1 ਪਨਾ
End Using
$vbLabelText   $csharpLabel

ਮਲਟੀਪਜ ਟੀਆਈਐਫਐਫ ਲਈ ਓਸੀਆਰ

OCR ਰੀਡਿਗ TIFF ਫਾਈਲ ਫਰਮਟ ਸਮਤ ਮਲਟੀਪਲ ਪਜ ਡਕਮਟ. ਟੀਆਈਐਫਐਫ ਨ ਖਜਣਯਗ ਟਕਸਟ ਨਾਲ ਸਿਧ ਤਰ ਤ ਇਕ ਪੀਡੀਐਫ ਫਾਈਲ ਵਿਚ ਬਦਲਿਆ ਜਾ ਸਕਦਾ ਹ.

using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

// Process multi-frame TIFF images for OCR
using (var Input = new OcrInput())
{
    Input.AddMultiFrameTiff("multi-frame.tiff"); // Add multi-page TIFF file
    var Result = Ocr.Read(Input);
    // Output the resulting text to the console
    Console.WriteLine(Result.Text);
}
using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

// Process multi-frame TIFF images for OCR
using (var Input = new OcrInput())
{
    Input.AddMultiFrameTiff("multi-frame.tiff"); // Add multi-page TIFF file
    var Result = Ocr.Read(Input);
    // Output the resulting text to the console
    Console.WriteLine(Result.Text);
}
Imports IronOcr

' Initialize IronTesseract for OCR operations
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi

' Process multi-frame TIFF images for OCR
Using Input = New OcrInput()
	Input.AddMultiFrameTiff("multi-frame.tiff") ' Add multi-page TIFF file
	Dim Result = Ocr.Read(Input)
	' Output the resulting text to the console
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel

ਬਾਰਕਡਸ ਅਤ ਕਿ Qਆਰ

ਆਇਰਨ ਓਸੀਆਰ ਦੀ ਇਕ ਵਿਲਖਣ ਵਿਸਸਤਾ ਇਹ ਹ ਕਿ ਇਹ ਦਸਤਾਵਜਾ ਵਿਚ ਬਾਰਕਡ ਅਤ ਕਿ Qਆਰ ਕਡ ਪੜਹ ਸਕਦਾ ਹ ਜਦ ਉਹ ਟਕਸਟ ਦੀ ਜਾਚ ਕਰ ਰਿਹਾ ਹ. OcrResult.OcrBarcode ਕਲਾਸ ਦ OcrResult.OcrBarcode ਵਿਕਾਸਕਰਤਾ ਨ ਹਰਕ ਸਕਨ ਕੀਤ ਬਾਰਕਡ ਬਾਰ ਵਿਸਥਾਰਪਰਵਕ ਜਾਣਕਾਰੀ ਦਿਦ ਹਨ.

using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Configuration.ReadBarCodes = true; // Enable barcode reading

using (var Input = new OcrInput())
{
    Input.AddImage("img/Barcode.png"); // Add image containing barcode
    var Result = Ocr.Read(Input);

    // Loop through detected barcodes
    foreach (var Barcode in Result.Barcodes)
    {
        Console.WriteLine(Barcode.Value); // Print barcode values
        // Additional properties like type and location are also available
    }
}
using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Configuration.ReadBarCodes = true; // Enable barcode reading

using (var Input = new OcrInput())
{
    Input.AddImage("img/Barcode.png"); // Add image containing barcode
    var Result = Ocr.Read(Input);

    // Loop through detected barcodes
    foreach (var Barcode in Result.Barcodes)
    {
        Console.WriteLine(Barcode.Value); // Print barcode values
        // Additional properties like type and location are also available
    }
}
Imports IronOcr

' Initialize IronTesseract for OCR operations
Private Ocr = New IronTesseract()
Ocr.Configuration.ReadBarCodes = True ' Enable barcode reading

Using Input = New OcrInput()
	Input.AddImage("img/Barcode.png") ' Add image containing barcode
	Dim Result = Ocr.Read(Input)

	' Loop through detected barcodes
	For Each Barcode In Result.Barcodes
		Console.WriteLine(Barcode.Value) ' Print barcode values
		' Additional properties like type and location are also available
	Next Barcode
End Using
$vbLabelText   $csharpLabel

ਚਿਤਰਾ ਦ ਖਾਸ ਖਤਰਾ 'ਤ ਓ.ਸੀ.ਆਰ.

ਆਇਰਨ ਓਸੀਆਰ ਦ ਸਾਰ ਸਕਨਿਗ ਅਤ ਪੜਹਨ ਦ methodsਗ ਇਹ ਦਸਣ ਦੀ ਯਗਤਾ ਪਰਦਾਨ ਕਰਦ ਹਨ ਕਿ ਕਿਸ ਪਨ ਜਾ ਪਨਿਆ ਦ ਕਿਸ ਹਿਸ ਤ ਅਸੀ ਪਾਠ ਪੜਹਨਾ ਚਾਹਦ ਹਾ. ਇਹ ਬਹਤ ਉਪਯਗੀ ਹਦਾ ਹ ਜਦ ਅਸੀ ਪਰਮਾਣਿਤ ਰਪਾ ਨ ਵਖ ਰਹ ਹਦ ਹਾ ਅਤ ਬਹਤ ਸਾਰਾ ਸਮਾ ਬਚਾ ਸਕਦ ਹਾ ਅਤ ਕਸਲਤਾ ਵਿਚ ਸਧਾਰ ਕਰ ਸਕਦ ਹਾ.

ਫਸਲਾ ਦ ਖਤਰਾ ਦੀ ਵਰਤ ਕਰਨ ਲਈ, ਸਾਨ System.Drawing ਲਈ ਇਕ ਸਿਸਟਮ ਸਦਰਭ ਸਾਮਲ ਕਰਨ ਦੀ ਜਰਰਤ ਹਏਗੀ ਤਾ ਜ ਅਸੀ System.Drawing.Rectangle ਆਬਜਕਟ ਦੀ ਵਰਤ ਕਰ ਸਕੀਏ.

using IronOcr;
using System.Drawing; // Required for Rectangle class

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput())
{
    // Define a specific area on the image to perform OCR
    var ContentArea = new Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };

    Input.Add("document.png", ContentArea); // Add the cropped area for OCR

    var Result = Ocr.Read(Input);
    // Print the text detected within the specified rectangle
    Console.WriteLine(Result.Text);
}
using IronOcr;
using System.Drawing; // Required for Rectangle class

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput())
{
    // Define a specific area on the image to perform OCR
    var ContentArea = new Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };

    Input.Add("document.png", ContentArea); // Add the cropped area for OCR

    var Result = Ocr.Read(Input);
    // Print the text detected within the specified rectangle
    Console.WriteLine(Result.Text);
}
Imports IronOcr
Imports System.Drawing ' Required for Rectangle class

' Initialize IronTesseract for OCR operations
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi

Using Input = New OcrInput()
	' Define a specific area on the image to perform OCR
	Dim ContentArea = New Rectangle() With {
		.X = 215,
		.Y = 1250,
		.Height = 280,
		.Width = 1335
	}

	Input.Add("document.png", ContentArea) ' Add the cropped area for OCR

	Dim Result = Ocr.Read(Input)
	' Print the text detected within the specified rectangle
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel

ਘਟ ਕਆਲਟੀ ਸਕਨ ਲਈ ਓ.ਸੀ.ਆਰ.

ਆਇਰਨ ਓਸੀਆਰ OcrInput ਕਲਾਸ ਉਹਨਾ ਸਕਨ ਨ ਠੀਕ ਕਰ ਸਕਦੀ ਹ ਜ ਸਧਾਰਣ OcrInput ਨਹੀ ਪੜਹ ਸਕਦ.

using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
    Input.DeNoise(); // Mitigate digital noise and low-quality scanning
    Input.Deskew();  // Correct rotation and tilts
    var Result = Ocr.Read(Input);
    // Output the resulting text to the console
    Console.WriteLine(Result.Text);
}
using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
    Input.DeNoise(); // Mitigate digital noise and low-quality scanning
    Input.Deskew();  // Correct rotation and tilts
    var Result = Ocr.Read(Input);
    // Output the resulting text to the console
    Console.WriteLine(Result.Text);
}
Imports IronOcr

' Initialize IronTesseract for OCR operations
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi

Using Input = New OcrInput("img\Potter.LowQuality.tiff")
	Input.DeNoise() ' Mitigate digital noise and low-quality scanning
	Input.Deskew() ' Correct rotation and tilts
	Dim Result = Ocr.Read(Input)
	' Output the resulting text to the console
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel

ਓਸੀਆਰ ਦ ਨਤੀਜਿਆ ਨ ਖਜਣ ਯਗ ਪੀਡੀਐਫ ਦ ਰਪ ਵਿਚ ਨਿਰਯਾਤ ਕਰ

ਚਿਤਰ ਨ ਕਾਪੀ ਜਾ ਸਕਣ ਵਾਲ ਟਕਸਟ ਸਤਰਾ ਦ ਨਾਲ. ਖਜ ਇਜਨ ਅਤ ਡਾਟਾਬਸ ਦਆਰਾ ਇਡਕਸ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹ.

using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput())
{
    Input.Title = "Quarterly Report"; // Set a title for the resulting PDF
    Input.AddImage("image1.jpeg");
    Input.AddImage("image2.png");
    Input.AddImage("image3.gif");

    var Result = Ocr.Read(Input);
    // Export the OCR results to a searchable PDF
    Result.SaveAsSearchablePdf("searchable.pdf");
}
using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput())
{
    Input.Title = "Quarterly Report"; // Set a title for the resulting PDF
    Input.AddImage("image1.jpeg");
    Input.AddImage("image2.png");
    Input.AddImage("image3.gif");

    var Result = Ocr.Read(Input);
    // Export the OCR results to a searchable PDF
    Result.SaveAsSearchablePdf("searchable.pdf");
}
Imports IronOcr

' Initialize IronTesseract for OCR operations
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi

Using Input = New OcrInput()
	Input.Title = "Quarterly Report" ' Set a title for the resulting PDF
	Input.AddImage("image1.jpeg")
	Input.AddImage("image2.png")
	Input.AddImage("image3.gif")

	Dim Result = Ocr.Read(Input)
	' Export the OCR results to a searchable PDF
	Result.SaveAsSearchablePdf("searchable.pdf")
End Using
$vbLabelText   $csharpLabel

ਖਜਣ ਯਗ ਪੀਡੀਐਸ ਰਪਾਤਰਣ ਲਈ ਟੀਆਈਐਫਐਫ

ਇਕ ਟੀਆਈਐਫਐਫ ਦਸਤਾਵਜ (ਜਾ ਚਿਤਰ ਫਾਈਲਾ ਦ ਕਿਸ ਸਮਹ) ਨ ਸਿਧਾ ਇਕ ਖਜ ਯਗ ਪੀਡੀਐਫ ਵਿਚ ਬਦਲ, ਜਿਸ ਨ ਇਟਰਾਨਟ, ਵਬਸਾਈਟ ਅਤ ਗਗਲ ਸਰਚ ਇਜਣਾ ਦਆਰਾ ਸਚੀਬਧ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹ.

using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput())
{
    Input.AddMultiFrameTiff("example.tiff"); // Add a multi-frame TIFF for conversion
    // Export the OCR results directly to a searchable PDF
    var Result = Ocr.Read(Input).SaveAsSearchablePdf("searchable.pdf");
}
using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput())
{
    Input.AddMultiFrameTiff("example.tiff"); // Add a multi-frame TIFF for conversion
    // Export the OCR results directly to a searchable PDF
    var Result = Ocr.Read(Input).SaveAsSearchablePdf("searchable.pdf");
}
Imports IronOcr

' Initialize IronTesseract for OCR operations
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi

Using Input = New OcrInput()
	Input.AddMultiFrameTiff("example.tiff") ' Add a multi-frame TIFF for conversion
	' Export the OCR results directly to a searchable PDF
	Dim Result = Ocr.Read(Input).SaveAsSearchablePdf("searchable.pdf")
End Using
$vbLabelText   $csharpLabel

HTML ਦ ਰਪ ਵਿਚ ਓਸੀਆਰ ਦ ਨਤੀਜ ਨਿਰਯਾਤ ਕਰ

ਓਸੀਆਰ ਚਿਤਰ ਨ ਐਕਸਐਚਟੀਐਮਐਲ ਰਪਾਤਰਣ ਵਿਚ.

using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput())
{
    Input.Title = "Html Title"; // Assign a title for the HTML output
    Input.AddImage("image1.jpeg"); // Add image to process

    var Result = Ocr.Read(Input);
    // Export the OCR results to an HTML file
    Result.SaveAsHocrFile("results.html");
}
using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput())
{
    Input.Title = "Html Title"; // Assign a title for the HTML output
    Input.AddImage("image1.jpeg"); // Add image to process

    var Result = Ocr.Read(Input);
    // Export the OCR results to an HTML file
    Result.SaveAsHocrFile("results.html");
}
Imports IronOcr

' Initialize IronTesseract for OCR operations
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi

Using Input = New OcrInput()
	Input.Title = "Html Title" ' Assign a title for the HTML output
	Input.AddImage("image1.jpeg") ' Add image to process

	Dim Result = Ocr.Read(Input)
	' Export the OCR results to an HTML file
	Result.SaveAsHocrFile("results.html")
End Using
$vbLabelText   $csharpLabel

ਓਸੀਆਰ ਚਿਤਰ ਸਧਾਰ ਫਿਲਟਰ

ਆਇਰਨ ਓਸੀਆਰ OcrInput ਵਸਤਆ ਲਈ ਓਸੀਆਰ ਦੀ ਕਾਰਗਜਾਰੀ ਨ ਬਿਹਤਰ ਬਣਾਉਣ ਲਈ ਵਿਲਖਣ ਫਿਲਟਰ ਪਰਦਾਨ ਕਰਦਾ ਹ.

ਚਿਤਰ ਸਸਧਨ ਕਡ ਦੀ ਉਦਾਹਰਣ

ਓਸੀਆਰ ਇਪਟ ਚਿਤਰਾ ਨ ਬਿਹਤਰ, ਤਜ ਓਸੀਆਰ ਨਤੀਜ ਪਦਾ ਕਰਨ ਲਈ ਉਚ ਗਣਵਤਾ ਪਰਦਾਨ ਕਰਦਾ ਹ.

using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
    Input.DeNoise(); // Reduce digital noise and improve image clarity
    Input.Deskew();  // Adjust skewed images for stronger OCR performance
    var Result = Ocr.Read(Input);
    // Display the OCR result text
    Console.WriteLine(Result.Text);
}
using IronOcr;

// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;

using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
    Input.DeNoise(); // Reduce digital noise and improve image clarity
    Input.Deskew();  // Adjust skewed images for stronger OCR performance
    var Result = Ocr.Read(Input);
    // Display the OCR result text
    Console.WriteLine(Result.Text);
}
Imports IronOcr

' Initialize IronTesseract for OCR operations
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi

Using Input = New OcrInput("LowQuality.jpeg")
	Input.DeNoise() ' Reduce digital noise and improve image clarity
	Input.Deskew() ' Adjust skewed images for stronger OCR performance
	Dim Result = Ocr.Read(Input)
	' Display the OCR result text
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel

OCR ਚਿਤਰ ਫਿਲਟਰ ਦੀ ਸਚੀ

ਓਸੀਆਰ ਦੀ ਕਾਰਗਜਾਰੀ ਨ ਵਧਾਉਣ ਲਈ ਇਨਪਟ ਫਿਲਟਰ ਜ ਆਇਰਨ ਓਸੀਆਰ ਵਿਚ ਬਣਾਏ ਜਾਦ ਹਨ ਵਿਚ ਸਾਮਲ ਹਨ:

  • OcrInput.Rotate(double degrees) - Rotates the image a specified number of degrees clockwise. Use negative numbers for counter-clockwise.
  • OcrInput.Binarize() - Converts every pixel to either black or white, removing all intermediate shades. Useful in cases of poor contrast between text and background.
  • OcrInput.ToGrayScale() - Converts each pixel to grayscale. May improve speed but not necessarily accuracy.
  • OcrInput.Contrast() - Automatically boosts contrast. Improves speed and accuracy for low contrast scans significantly.
  • OcrInput.DeNoise() - Removes digital noise, most useful where such issues are anticipated.
  • OcrInput.Invert() - Inverts all colors, useful where text is white on a black background.
  • OcrInput.Dilate() - Advanced morphological operation that adds pixels to the boundaries of objects to emphasize features. Opposite of erode.
  • OcrInput.Erode() - Removes pixels at object boundaries, contrasting dilation.
  • OcrInput.Deskew() - Rotates an image forward or backward to make it orthogonal, invaluable for skewed scans where Tesseract tolerance can be low.
  • OcrInput.DeepCleanBackgroundNoise() - Handles heavy background noise removal, appropriate for known high-noise circumstances but costly in CPU and could reduce clean document accuracy.
  • OcrInput.EnhanceResolution - Enhances resolution of low-density images autonomously. Not commonly needed as low resolution is managed automatically by `OcrInput.MinimumDPI` and `OcrInput.TargetDPI` settings.

CleanBackgroundNoise is time-consuming but invaluable for eliminating noise, crumples and deficiencies making OCR possible where otherwise not so.

EnhanceContrast automatically amplifies contrast against the background, boosting performance and reliability.

EnhanceResolution upgrades resolution below 275 DPI, sharpening down-sampled text to render OCRing feasible, reducing total duration over its singular time cost.

Language support across 22 international languages via integratable language packs.

Strategy allows opting between rapid low-fidelity scanning or detailed accuracy-enhancing scans modeling word relationships.

ColorSpace decides between grayscale or color, where sometimes full-color contrast provides superior results.

DetectWhiteTextOnDarkBackground designed for scanning dark pages correctly.

InputImageType specifies whether scanning a whole document or merely a screenshot snippet.

RotateAndStraighten is configured for reading documents that aren't just rotated but potentially perceptually warped.

ReadBarcode automatically scans PDF/pages for barcodes or QRs while processing text.

Color dictates bits per pixel defining color depth, impacting quality and processing times.

126 ਭਾਸਾ ਪਕਸ

ਆਇਰਨ ਓਸੀਆਰ ਭਾਸਾ ਪਕਾ ਰਾਹੀ 126 ਅਤਰਰਾਸਟਰੀ ਭਾਸਾਵਾ ਦਾ ਸਮਰਥਨ ਕਰਦਾ ਹ ਜ ਡੀਐਲਐਲ ਵਜ ਵਡੀਆ ਜਾਦੀਆ ਹਨ, ਜ ਇਸ ਵਬਸਾਈਟਡਾ from ਨਲਡ ਕੀਤੀਆ ਜਾ ਸਕਦੀਆ ਹਨ, ਜਾ ਨਗਟ ਪਕਜ ਪਰਬਧਕ ਤ ਵੀ.

ਭਾਸਾਵਾ ਵਿਚ ਜਰਮਨ, ਫਰਚ, ਅਗਰਜੀ, ਚੀਨੀ, ਜਪਾਨੀ ਅਤ ਹਰ ਬਹਤ ਸਾਰੀਆ ਚੀਜਾ ਸਾਮਲ ਹਨ. ਪਾਸਪਰਟ ਐਮਆਰਜਡ, ਐਮਆਈਸੀਆਰ ਜਾਚਾ, ਵਿਤੀ ਡਟਾ, ਲਾਇਸਸ ਪਲਟਾ ਅਤ ਹਰ ਬਹਤ ਸਾਰ ਲਈ ਮਾਹਿਰ ਭਾਸਾ ਦ ਪਕ ਮਜਦ ਹਨ. ਤਸੀ ਕਿਸ ਵੀ ਟਸਕਰਕਟ ".ਟਰਨਡਟਾ" ਫਾਈਲ ਦੀ ਵਰਤ ਵੀ ਕਰ ਸਕਦ ਹ - ਜਿਸ ਵਿਚ ਤਸੀ ਖਦ ਬਣਾਉਦ ਹ.

ਭਾਸਾ ਦੀ ਉਦਾਹਰਣ

ਹਰ ਓਸੀਆਰ ਭਾਸਾਵਾ ਦੀ ਵਰਤ ਕਰਨਾ.

using IronOcr;
// PM> Install-Package IronOcr.Languages.Arabic

// Initialize IronTesseract for Arabic OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Arabic;

using (var Input = new OcrInput())
{
    Input.AddImage("img/arabic.gif"); // Add image with Arabic text
    // If needed, include image filter adjustments
    // Even low-quality inputs could be read by IronTesseract

    var Result = Ocr.Read(Input);

    // Console in Windows may not print Arabic correctly
    // Save the result to a file instead
    Result.SaveAsTextFile("arabic.txt");
}
using IronOcr;
// PM> Install-Package IronOcr.Languages.Arabic

// Initialize IronTesseract for Arabic OCR operations
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Arabic;

using (var Input = new OcrInput())
{
    Input.AddImage("img/arabic.gif"); // Add image with Arabic text
    // If needed, include image filter adjustments
    // Even low-quality inputs could be read by IronTesseract

    var Result = Ocr.Read(Input);

    // Console in Windows may not print Arabic correctly
    // Save the result to a file instead
    Result.SaveAsTextFile("arabic.txt");
}
Imports IronOcr
' PM> Install-Package IronOcr.Languages.Arabic

' Initialize IronTesseract for Arabic OCR operations
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Arabic

Using Input = New OcrInput()
	Input.AddImage("img/arabic.gif") ' Add image with Arabic text
	' If needed, include image filter adjustments
	' Even low-quality inputs could be read by IronTesseract

	Dim Result = Ocr.Read(Input)

	' Console in Windows may not print Arabic correctly
	' Save the result to a file instead
	Result.SaveAsTextFile("arabic.txt")
End Using
$vbLabelText   $csharpLabel

ਬਹ ਭਾਸਾ ਉਦਾਹਰਣ

ਓਸੀਆਰ ਦਾ ਇਕ ਸਮ ਕਈ ਭਾਸਾਵਾ ਦੀ ਵਰਤ ਕਰਨਾ ਵੀ ਸਭਵ ਹ. ਇਹ ਯਨੀਕਡ ਦਸਤਾਵਜਾ ਵਿਚ ਅਗਰਜੀ ਭਾਸਾ ਦ ਮਟਾਡਟਾ ਅਤ url ਪਰਾਪਤ ਕਰਨ ਵਿਚ ਸਚਮਚ ਮਦਦ ਕਰ ਸਕਦਾ ਹ.

using IronOcr;
// PM> Install-Package IronOcr.Languages.ChineseSimplified

// Set up IronTesseract for multi-language OCR
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.ChineseSimplified;
Ocr.AddSecondaryLanguage(OcrLanguage.Panjabi); // Add additional languages

// Multiple languages can be set if needed
using (var Input = new OcrInput())
{
    Input.Add("multi-language.pdf"); // Add multi-language PDF for OCR
    var Result = Ocr.Read(Input);
    // Save the obtained text result to a file
    Result.SaveAsTextFile("results.txt");
}
using IronOcr;
// PM> Install-Package IronOcr.Languages.ChineseSimplified

// Set up IronTesseract for multi-language OCR
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.ChineseSimplified;
Ocr.AddSecondaryLanguage(OcrLanguage.Panjabi); // Add additional languages

// Multiple languages can be set if needed
using (var Input = new OcrInput())
{
    Input.Add("multi-language.pdf"); // Add multi-language PDF for OCR
    var Result = Ocr.Read(Input);
    // Save the obtained text result to a file
    Result.SaveAsTextFile("results.txt");
}
Imports IronOcr
' PM> Install-Package IronOcr.Languages.ChineseSimplified

' Set up IronTesseract for multi-language OCR
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.ChineseSimplified
Ocr.AddSecondaryLanguage(OcrLanguage.Panjabi) ' Add additional languages

' Multiple languages can be set if needed
Using Input = New OcrInput()
	Input.Add("multi-language.pdf") ' Add multi-language PDF for OCR
	Dim Result = Ocr.Read(Input)
	' Save the obtained text result to a file
	Result.SaveAsTextFile("results.txt")
End Using
$vbLabelText   $csharpLabel

ਵਰਵ ਦ ਨਾਲ OCR ਨਤੀਜ ਇਕਾਈ

ਆਇਰਨ ਓਸੀਆਰ ਹਰਕ ਓਸੀਆਰ ਓਪਰਸਨ ਲਈ ਇਕ ਓਸੀਆਰ ਨਤੀਜਾ ਵਸਤ ਵਾਪਸ ਕਰਦਾ ਹ. ਆਮ ਤਰ ਤ, ਡਿਵਲਪਰ ਸਿਰਫ ਚਿਤਰ ਤ ਸਕਨ ਕਰਵਾਉਣ ਲਈ ਇਸ ਆਬਜਕਟ ਦੀ ਟਕਸਟ ਜਾਇਦਾਦ ਦੀ ਵਰਤ ਕਰਦ ਹਨ. ਹਾਲਾਕਿ, ਓਸੀਆਰ ਦ ਨਤੀਜ ਡਮ ਇਸ ਤ ਕਿਤ ਵਧਰ ਉਨਤ ਹਨ.

using IronOcr;
using System.Drawing; // Necessary for advanced OCR options

// Configure IronTesseract for advanced OCR
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;
Ocr.Configuration.ReadBarCodes = true; // Important for barcode reading

using (var Input = new OcrInput(@"images\sample.tiff"))
{
    OcrResult Result = Ocr.Read(Input);
    var Pages = Result.Pages; // Access the page collection
    var Words = Pages[0].Words; // Access words of the first page
    var Barcodes = Result.Barcodes; // Access detected barcodes

    // Explore an extensive API to access:
    // - Pages, Blocks, Paragraphs, Lines, Words, Characters
    // - Image export, font coordinates, and statistical details
}
using IronOcr;
using System.Drawing; // Necessary for advanced OCR options

// Configure IronTesseract for advanced OCR
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Panjabi;
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;
Ocr.Configuration.ReadBarCodes = true; // Important for barcode reading

using (var Input = new OcrInput(@"images\sample.tiff"))
{
    OcrResult Result = Ocr.Read(Input);
    var Pages = Result.Pages; // Access the page collection
    var Words = Pages[0].Words; // Access words of the first page
    var Barcodes = Result.Barcodes; // Access detected barcodes

    // Explore an extensive API to access:
    // - Pages, Blocks, Paragraphs, Lines, Words, Characters
    // - Image export, font coordinates, and statistical details
}
Imports IronOcr
Imports System.Drawing ' Necessary for advanced OCR options

' Configure IronTesseract for advanced OCR
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Panjabi
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm
Ocr.Configuration.ReadBarCodes = True ' Important for barcode reading

Using Input = New OcrInput("images\sample.tiff")
	Dim Result As OcrResult = Ocr.Read(Input)
	Dim Pages = Result.Pages ' Access the page collection
	Dim Words = Pages(0).Words ' Access words of the first page
	Dim Barcodes = Result.Barcodes ' Access detected barcodes

	' Explore an extensive API to access:
	' - Pages, Blocks, Paragraphs, Lines, Words, Characters
	' - Image export, font coordinates, and statistical details
End Using
$vbLabelText   $csharpLabel

ਪਰਦਰਸਨ

ਆਇਰਨ ਓਸੀਆਰ ਬਾਕਸ ਤ ਬਾਹਰ ਕਮ ਕਰਦਾ ਹ ਪਰਫਾਰਮਸ ਟਿ .ਨ ਜਾ ਇਪਟ ਚਿਤਰਾ ਨ ਭਾਰੀ ਸਧਣ ਦੀ ਕਈ ਜਰਰਤ ਨਹੀ.

ਸਪੀਡ ਬਲਜਿਗ ਹ: ਆਇਰਨ ਓ.ਸੀ.ਆਰ.2020 + 10 ਗਣਾ ਤਜ ਹ ਅਤ ਪਿਛਲੀਆ ਉਸਾਰੀ ਨਾਲ 250% ਤ ਵੀ ਘਟ ਗਲਤੀਆ ਕਰਦਾ ਹ.

ਜਿਆਦਾ ਜਾਣ

ਸੀ #, ਵੀ ਬੀ, ਐਫ #, ਜਾ ਕਈ ਹਰ .NET ਭਾਸਾ ਵਿਚ ਓਸੀਆਰ ਬਾਰ ਵਧਰ ਜਾਣਨ ਲਈ, ਕਿਰਪਾ ਕਰਕ ਸਾਡ ਕਮਿ community ਨਿਟੀ ਟਿutorialਟਰਿਅਲਸ ਪੜਹ, ਜ ਕਿ ਅਸਲ ਸਸਾਰ ਦੀਆ ਉਦਾਹਰਣਾ ਦਿਦ ਹਨ ਕਿ ਕਿਵ ਆਇਰਨ ਓਸੀਆਰ ਦੀ ਵਰਤ ਕੀਤੀ ਜਾ ਸਕਦੀ ਹ ਅਤ ਇਸ ਤ ਵਧੀਆ ਤਰੀਕ ਕਿਵ ਪਰਾਪਤ ਕੀਤ ਜਾ ਸਕਦ ਹਨ ਦੀ ਸਖਪਤਾ ਦਰਸਾਉਦੀ ਹ. ਇਹ ਲਾਇਬਰਰੀ

.NET ਡਿਵਲਪਰਾ ਲਈ ਪਰਾ ਇਕਾਈ ਦਾ ਹਵਾਲਾ ਵੀ ਉਪਲਬਧ ਹ.