ਸੀ # અને .નેટ માં ગુજરાતી ઓ.સી.આર.

આ દસ્તાવેજના અન્ય સંસ્કરણો:

આયર્નઓસીઆર એ C# સોફ્ટવેર કમ્પોનેન્ટ છે જે .NET કોડર્સને 126 ભાષાઓમાં, જેમાં ગુજરાતી પણ શામેલ છે, છબીઓ અને પીડીએફ દસ્તાવેજોમાંથી ટેક્સ્ટને વાંચવા માટે પરવાનગી આપે છે.

તે ટેસરેક્ટનો એક અદ્યતન ફોર્ક છે, જે ફક્ત .NET વિકાસકર્તાઓ માટે જ બનાવવામાં આવ્યો છે અને ગતિ અને ચોકસાઈ બંનેમાં નિયમિતપણે અન્ય ટેસ્સેરેક્ટ એન્જિનોને આઉટપર્ફોર્મ કરે છે.

IronOcr.Languages.Gujarati ના સામગ્રી

આ પેકેજમાં .NET માટે 120 ઓસીઆર ભાષાઓ શામેલ છે:

  • ગુજરાતી
  • ગુજરાતીબેસ્ટ
  • ગુજરાતીફાસ્ટ
  • ગુજરાતીઅલ્ફાબેટ
  • ગુજરાતીઅલ્ફાબેટબેસ્ટ
  • ગુજરાતીઅલ્ફાબેટ ફાસ્ટ

ડાઉનલોડ કરો

ગુજરાતી ભાષા પેક [ગુજરાતી]
* Download as ઝિપ
* Install with NuGet from https://www.nuget.org/packages/IronOcr.Languages.Gujarati/

સ્થાપન

Install IronOCR Gujarati language OCR package to your .NET project first.

PM> Install-Package IronOCR.Languages.Gujarati

કોડ ઉદાહરણ

આ C# કોડ ઉદાહરણ છબી અથવા પીડીએફ દસ્તાવેજમાંથી ગુજરાતી ટેક્સ્ટ વાંચે છે.

// Include the IronOcr library in your C# project.
using IronOcr;

// Initialize an instance of IronTesseract for OCR operations.
var Ocr = new IronTesseract();
// Set the language to Gujarati.
Ocr.Language = OcrLanguage.Gujarati;

// Input an image for OCR processing.
using (var Input = new OcrInput(@"images\Gujarati.png"))
{
    // Perform OCR on the input image.
    var Result = Ocr.Read(Input);
    // Store the extracted text into a variable.
    var AllText = Result.Text; // Corrected 'Var' to 'var'
}
// Include the IronOcr library in your C# project.
using IronOcr;

// Initialize an instance of IronTesseract for OCR operations.
var Ocr = new IronTesseract();
// Set the language to Gujarati.
Ocr.Language = OcrLanguage.Gujarati;

// Input an image for OCR processing.
using (var Input = new OcrInput(@"images\Gujarati.png"))
{
    // Perform OCR on the input image.
    var Result = Ocr.Read(Input);
    // Store the extracted text into a variable.
    var AllText = Result.Text; // Corrected 'Var' to 'var'
}
' Include the IronOcr library in your C# project.
Imports IronOcr

' Initialize an instance of IronTesseract for OCR operations.
Private Ocr = New IronTesseract()
' Set the language to Gujarati.
Ocr.Language = OcrLanguage.Gujarati

' Input an image for OCR processing.
Using Input = New OcrInput("images\Gujarati.png")
	' Perform OCR on the input image.
	Dim Result = Ocr.Read(Input)
	' Store the extracted text into a variable.
	Dim AllText = Result.Text ' Corrected 'Var' to 'var'
End Using
$vbLabelText   $csharpLabel

આયર્નઓસીઆર કેમ પસંદ કરો?

આયર્ન ઓસીઆર એ એક સ્થાપિત કરવાનો સરળ, સંપૂર્ણ અને સારી રીતે દસ્તાવેજીકૃત .NET સોફ્ટવેર લાઇબ્રેરી છે.

કોઈપણ બાહ્ય વેબ સેવાઓનો ઉપયોગ કર્યા વિના, રેકરરો સંભાળ્યા વિના 99.8%+ OCR ચોકસાઈ મેળવવા માટે આયર્નઓસીઆર પસંદ કરો.

સી # ડેવલપર્સ વેનિલા પરીક્ષણ પર આયર્નઓસીઆર કેમ પસંદ કરે છે:

  • એકલ DLL અથવા NuGet તરીકે સ્થાપિત કરો
  • બેક્સેસથી તપાસશો 5, 4 અને 3 એન્જિન્સ માટે ઉપલબ્ધ છે
  • ચોકસાઈ 99.8% ની વિશિષ્ટ પરીક્ષણ કરી શકાય છે
  • બ્લિઝિંગ સ્પીડ અને મલ્ટિ થ્રેડિંગ
  • MVC, વેબ ઍપ, ડેસ્કટોપ, કન્સોલ અને સર્વર ઍપ્લિકેશન સુસંગત છે
  • સાથે કામ કરવા માટે કોઈ exe અથવા C++ કોડની જરૂર નથી
  • સંપૂર્ણ પીડીએફ ઓસીઆર સપોર્ટ
  • લગભગ કોઈપણ છબી ફાઇલ અથવા પીડીએફને ઓસીઆર કરવા માટે
  • સંપૂર્ણ .NET કોર, સ્ટાન્ડર્ડ અને ફ્રેમવર્ક સપોર્ટ
  • વિન્ડોઝ, મેક, લિનક્સ, એઝ્યુર, ડોકર, લેમ્બડા, એડબ્લ્યુએસ પર જમાવટ કરો
  • બારકોડ અને ક્યૂઆર કોડ વાંચો
  • એક્સએચટીએમએલ તરીકે ઓસીઆર નિકાસ કરો
  • શોધવા યોગ્ય પીડીએફ દસ્તાવેજો પર ઓસીઆર નિકાસ કરો
  • મલ્ટિથ્રિડિંગ સપોર્ટ
  • 126 આંતરરાષ્ટ્રીય ભાષાઓને સપોર્ટ કરે છે નુગેટ અથવા ક્રેટ ડેટા ફાઇલો દ્વારા
  • છબીઓ, સંકલન, આંકડા અને ફોન્ટ્સ સુધી નુકસાન કરો, ફક્ત લખાણ નહીં
  • વેપારી અને માલિકીની ઍપ્લિકેશનમાં વિતરિત કરવા માટે વપરાય છે

વાસ્તવિક વિશ્વની છબીઓ અને હાથથી લખાઈ શકે તેવા અપૂર્ણ દસ્તાવેજો અથવા ડિજિટલ અવાજ અથવા અપૂર્ણતા હોઈ શકે તેવા નિમ્ન રિઝોલ્યુશનના સ્કેન સાથે કામ કરતી વખતે આયર્ન ઓસીઆર ચમકતો હોય છે.

.NET પ્લેટફોર્મ માટે અન્ય નિઃશુલ્ક ઓસીઆર લાઇબ્રેરીઓ જેમ કે અન્ય .NET ટેસ્સેરેટ એપીઆઈ અને વેબ સેવાઓ આ વાસ્તવિક વિશ્વના ઉપયોગના કેસો પર એટલું સારું પ્રદર્શન કરતી નથી.

પરિવહન 5 સાથેના ઓસીઆર - સી # માં કોડિંગ પ્રારંભ કરો

નીચે આપેલ કોડ નમૂના બતાવે છે કે C# અથવા VB.NET નો ઉપયોગ કરીને છબીમાંથી ટેક્સ્ટ વાંચવું કેટલું સરળ છે.

વનલાઈનર

// A simple one-liner to read text from an image using IronOcr.
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
// A simple one-liner to read text from an image using IronOcr.
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
' A simple one-liner to read text from an image using IronOcr.
Dim Text As String = (New IronTesseract()).Read("img\Screenshot.png").Text
$vbLabelText   $csharpLabel

હેલ્લો વર્લ્ડ રૂપરેખાંકિત

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

// Initialize an instance of IronTesseract.
var Ocr = new IronTesseract();
// Set the language to Gujarati.
Ocr.Language = OcrLanguage.Gujarati;

// Create a new OCR Input and add an image.
using (var Input = new OcrInput())
{
    Input.AddImage("images/sample.jpeg");
    //... તમે કોઈપણ સંખ્યામાં છબીઓ ઉમેરી શકો છો

    // Perform OCR on the input image(s).
    var Result = Ocr.Read(Input);
    // Print the extracted text to the console.
    Console.WriteLine(Result.Text);
}
// PM> Install-Package IronOCR.Languages.Gujarati
using IronOcr;

// Initialize an instance of IronTesseract.
var Ocr = new IronTesseract();
// Set the language to Gujarati.
Ocr.Language = OcrLanguage.Gujarati;

// Create a new OCR Input and add an image.
using (var Input = new OcrInput())
{
    Input.AddImage("images/sample.jpeg");
    //... તમે કોઈપણ સંખ્યામાં છબીઓ ઉમેરી શકો છો

    // Perform OCR on the input image(s).
    var Result = Ocr.Read(Input);
    // Print the extracted text to the console.
    Console.WriteLine(Result.Text);
}
' PM> Install-Package IronOCR.Languages.Gujarati
Imports IronOcr

' Initialize an instance of IronTesseract.
Private Ocr = New IronTesseract()
' Set the language to Gujarati.
Ocr.Language = OcrLanguage.Gujarati

' Create a new OCR Input and add an image.
Using Input = New OcrInput()
	Input.AddImage("images/sample.jpeg")
	'... તમે કોઈપણ સંખ્યામાં છબીઓ ઉમેરી શકો છો

	' Perform OCR on the input image(s).
	Dim Result = Ocr.Read(Input)
	' Print the extracted text to the console.
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel

C# પીડીએફ ઓસીઆર

કોઈ પણ પીડીએફ દસ્તાવેજમાંથી ટેક્સ્ટ કાractવા માટે સમાન અભિગમનો ઉપયોગ કરી શકાય છે.

using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a PDF document for OCR processing.
using (var input = new OcrInput())
{
    // Add PDF and specify password, if necessary.
    input.AddPdf("example.pdf", "password");

    // Perform OCR on the input PDF.
    var Result = Ocr.Read(input);

    // Output the OCR result to the console.
    Console.WriteLine(Result.Text);
    Console.WriteLine($"{Result.Pages.Count()} Pages"); // Each PDF page counts as 1 Page
}
using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a PDF document for OCR processing.
using (var input = new OcrInput())
{
    // Add PDF and specify password, if necessary.
    input.AddPdf("example.pdf", "password");

    // Perform OCR on the input PDF.
    var Result = Ocr.Read(input);

    // Output the OCR result to the console.
    Console.WriteLine(Result.Text);
    Console.WriteLine($"{Result.Pages.Count()} Pages"); // Each PDF page counts as 1 Page
}
Imports IronOcr

' Initialize IronTesseract
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Gujarati

' Input a PDF document for OCR processing.
Using input = New OcrInput()
	' Add PDF and specify password, if necessary.
	input.AddPdf("example.pdf", "password")

	' Perform OCR on the input PDF.
	Dim Result = Ocr.Read(input)

	' Output the OCR result to the console.
	Console.WriteLine(Result.Text)
	Console.WriteLine($"{Result.Pages.Count()} Pages") ' Each PDF page counts as 1 Page
End Using
$vbLabelText   $csharpLabel

મલ્ટિપેજ ટીઆઈએફએફ માટે ઓસીઆર

OCR રીડિંગ TIFF ફાઇલ ફોર્મેટ સહિત અનેક પૃષ્ઠ દસ્તાવેજો. ટીઆઈએફએફને સીધા પીડીએફ ફાઇલમાં પણ શોધી શકાય તેવા ટેક્સ્ટ સાથે રૂપાંતરિત કરી શકાય છે.

using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a multi-frame TIFF for OCR processing.
using (var Input = new OcrInput())
{
    input.AddMultiFrameTiff("multi-frame.tiff");

    // Perform OCR on the input TIFF.
    var Result = Ocr.Read(Input);

    // Output OCR result to the console.
    Console.WriteLine(Result.Text);
}
using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a multi-frame TIFF for OCR processing.
using (var Input = new OcrInput())
{
    input.AddMultiFrameTiff("multi-frame.tiff");

    // Perform OCR on the input TIFF.
    var Result = Ocr.Read(Input);

    // Output OCR result to the console.
    Console.WriteLine(Result.Text);
}
Imports IronOcr

' Initialize IronTesseract
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Gujarati

' Input a multi-frame TIFF for OCR processing.
Using Input = New OcrInput()
	input.AddMultiFrameTiff("multi-frame.tiff")

	' Perform OCR on the input TIFF.
	Dim Result = Ocr.Read(Input)

	' Output OCR result to the console.
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel

બારકોડ્સ અને ક્યૂઆર

આયર્ન ઓસીઆરની એક વિશિષ્ટ સુવિધા એ છે કે જ્યારે તે ટેક્સ્ટને સ્કેન કરે છે ત્યારે તે દસ્તાવેજોમાંથી બારકોડ અને ક્યૂઆર કોડ વાંચી શકે છે. OcrResult.OcrBarcode વર્ગના ઉદાહરણો વિકાસકર્તાને દરેક સ્કેન કરેલા બારકોડ વિશે વિગતવાર માહિતિ આપે છે.

using IronOcr;

// Initialize IronTesseract with barcode reading enabled
var Ocr = new IronTesseract();
Ocr.Configuration.ReadBarCodes = true;

// Input an image for OCR processing.
using (var input = new OcrInput())
{
    input.AddImage("img/Barcode.png");

    // Perform OCR to read barcodes from the input image.
    var Result = Ocr.Read(input);

    // Iterate through each detected barcode and output its value.
    foreach (var Barcode in Result.Barcodes)
    {
        Console.WriteLine(Barcode.Value);
        // Additional properties like type and location are also available.
    }
}
using IronOcr;

// Initialize IronTesseract with barcode reading enabled
var Ocr = new IronTesseract();
Ocr.Configuration.ReadBarCodes = true;

// Input an image for OCR processing.
using (var input = new OcrInput())
{
    input.AddImage("img/Barcode.png");

    // Perform OCR to read barcodes from the input image.
    var Result = Ocr.Read(input);

    // Iterate through each detected barcode and output its value.
    foreach (var Barcode in Result.Barcodes)
    {
        Console.WriteLine(Barcode.Value);
        // Additional properties like type and location are also available.
    }
}
Imports IronOcr

' Initialize IronTesseract with barcode reading enabled
Private Ocr = New IronTesseract()
Ocr.Configuration.ReadBarCodes = True

' Input an image for OCR processing.
Using input = New OcrInput()
	input.AddImage("img/Barcode.png")

	' Perform OCR to read barcodes from the input image.
	Dim Result = Ocr.Read(input)

	' Iterate through each detected barcode and output its 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

છબીઓના વિશિષ્ટ ક્ષેત્રો પર ઓસીઆર

આયર્ન ઓસીઆરની બધી સ્કેનીંગ અને વાંચવાની પદ્ધતિઓ પૃષ્ઠ અથવા પૃષ્ઠોના કયા ભાગમાંથી આપણે ટેક્સ્ટ વાંચવા માંગીએ છીએ તે ચોક્કસપણે સ્પષ્ટ કરવાની ક્ષમતા પ્રદાન કરે છે. જ્યારે અમે પ્રમાણિત સ્વરૂપો જોઈએ છીએ ત્યારે આ ખૂબ ઉપયોગી છે અને ઘણું સમય બચાવી શકીએ છીએ અને કાર્યક્ષમતામાં સુધારો કરી શકીએ છીએ.

પાકના પ્રદેશોનો ઉપયોગ કરવા માટે, આપણે System.Drawing માટે સિસ્ટમ સંદર્ભ ઉમેરવાની જરૂર પડશે જેથી આપણે System.Drawing.Rectangle object System.Drawing.Rectangle ઉપયોગ કરી શકીએ.

using IronOcr;
using System.Drawing; // Add System.Drawing assembly reference

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input an image and specify content area for OCR.
using (var Input = new OcrInput())
{
    var ContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };
    // Coordinates are in pixels

    Input.Add("document.png", ContentArea);

    // Perform OCR on the specified area of the input image.
    var Result = Ocr.Read(Input);

    // Output OCR result to the console.
    Console.WriteLine(Result.Text);
}
using IronOcr;
using System.Drawing; // Add System.Drawing assembly reference

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input an image and specify content area for OCR.
using (var Input = new OcrInput())
{
    var ContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };
    // Coordinates are in pixels

    Input.Add("document.png", ContentArea);

    // Perform OCR on the specified area of the input image.
    var Result = Ocr.Read(Input);

    // Output OCR result to the console.
    Console.WriteLine(Result.Text);
}
Imports IronOcr
Imports System.Drawing ' Add System.Drawing assembly reference

' Initialize IronTesseract
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Gujarati

' Input an image and specify content area for OCR.
Using Input = New OcrInput()
	Dim ContentArea = New System.Drawing.Rectangle() With {
		.X = 215,
		.Y = 1250,
		.Height = 280,
		.Width = 1335
	}
	' Coordinates are in pixels

	Input.Add("document.png", ContentArea)

	' Perform OCR on the specified area of the input image.
	Dim Result = Ocr.Read(Input)

	' Output OCR result to the console.
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel

ઓછી ગુણવત્તાવાળા સ્કેન માટે ઓ.સી.આર.

આયર્ન ઓસીઆર OcrInput વર્ગ સ્કેનને ઠીક કરી શકે છે જે સામાન્ય OcrInput વાંચી શકતું નથી.

using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a low-quality image for OCR processing.
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
    // Enhance image quality for better OCR results.
    Input.DeNoise(); // Removes digital noise and improves low-quality scans
    Input.Deskew(); // Corrects rotation and alignment

    // Perform OCR on the enhanced input image.
    var Result = Ocr.Read(Input);

    // Output OCR result to the console.
    Console.WriteLine(Result.Text);
}
using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a low-quality image for OCR processing.
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
    // Enhance image quality for better OCR results.
    Input.DeNoise(); // Removes digital noise and improves low-quality scans
    Input.Deskew(); // Corrects rotation and alignment

    // Perform OCR on the enhanced input image.
    var Result = Ocr.Read(Input);

    // Output OCR result to the console.
    Console.WriteLine(Result.Text);
}
Imports IronOcr

' Initialize IronTesseract
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Gujarati

' Input a low-quality image for OCR processing.
Using Input = New OcrInput("img\Potter.LowQuality.tiff")
	' Enhance image quality for better OCR results.
	Input.DeNoise() ' Removes digital noise and improves low-quality scans
	Input.Deskew() ' Corrects rotation and alignment

	' Perform OCR on the enhanced input image.
	Dim Result = Ocr.Read(Input)

	' Output OCR result to the console.
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel

શોધના યોગ્ય પીડીએફ તરીકે ઓસીઆર પરિણામોને નિકાસ કરો

નકલ કરવા યોગ્ય ટેક્સ્ટ શબ્દમાળાઓ સાથે પીડીએફ પરની છબી. શોધ એંજીન અને ડેટાબેસેસ દ્વારા અનુક્રમિત કરી શકાય છે.

using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input images and create a searchable PDF.
using (var Input = new OcrInput())
{
    input.Title = "Quarterly Report";
    input.AddImage("image1.jpeg");
    input.AddImage("image2.png");
    input.AddImage("image3.gif");

    // Perform OCR on the input images.
    var Result = Ocr.Read(input);
    // Save the OCR result as a searchable PDF.
    Result.SaveAsSearchablePdf("searchable.pdf");
}
using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input images and create a searchable PDF.
using (var Input = new OcrInput())
{
    input.Title = "Quarterly Report";
    input.AddImage("image1.jpeg");
    input.AddImage("image2.png");
    input.AddImage("image3.gif");

    // Perform OCR on the input images.
    var Result = Ocr.Read(input);
    // Save the OCR result as a searchable PDF.
    Result.SaveAsSearchablePdf("searchable.pdf");
}
Imports IronOcr

' Initialize IronTesseract
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Gujarati

' Input images and create a searchable PDF.
Using Input = New OcrInput()
	input.Title = "Quarterly Report"
	input.AddImage("image1.jpeg")
	input.AddImage("image2.png")
	input.AddImage("image3.gif")

	' Perform OCR on the input images.
	Dim Result = Ocr.Read(input)
	' Save the OCR result as a searchable PDF.
	Result.SaveAsSearchablePdf("searchable.pdf")
End Using
$vbLabelText   $csharpLabel

TIFF પીડીએફ કન્વર્ઝન શોધી શકાય તેવું છે

ટીઆઈએફએફ દસ્તાવેજ (અથવા ઇમેજ ફાઇલોના કોઈપણ જૂથ) ને સીધા શોધી પીડીએફમાં કન્વર્ટ કરો જે ઇન્ટ્રાનેટ, વેબસાઇ તપાસ સતત કે પરિણામો નું અસલો કરવા માટે વિગમ કાપી; તે સરકારા એક આધુનિક બંનેжо પ્રોગ્રામરની લાઇબ્રેરીસાથે ઉમેરી શકો છો. સામૂહિક ષાનન્ગકીર્તિવ કરી શકો છોનેતાનો નિયુક્ત થયેલ છબીઓ બની ઘણાં માલ નકશનલ અથવા કોધ એ મૂલ્યાંકન આપ અથવા વેબમાસ્ટર્વા સ્ટ્રસાન શુંહા બુદાનલ ધરી સુંધુ સમર્માણ સાથે સફલતાની મોટ્ઙ્ળ કૃષિ તે સીચીત આહવાની કસે વાગાઝણો એ મેથવી દરૈં હોવી પંચાષણે નવાારી બાય સથયો હુંનાં ઢોમેજઑતીય અતારની દેણકાખે એરેકેશન શરીરસોશિયરી પી છે.

using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a multi-frame TIFF for PDF conversion.
using (var Input = new OcrInput())
{
    input.AddMultiFrameTiff("example.tiff");

    // Perform OCR and save as searchable PDF.
    var Result = Ocr.Read(input).SaveAsSearchablePdf("searchable.pdf");
}
using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a multi-frame TIFF for PDF conversion.
using (var Input = new OcrInput())
{
    input.AddMultiFrameTiff("example.tiff");

    // Perform OCR and save as searchable PDF.
    var Result = Ocr.Read(input).SaveAsSearchablePdf("searchable.pdf");
}
Imports IronOcr

' Initialize IronTesseract
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Gujarati

' Input a multi-frame TIFF for PDF conversion.
Using Input = New OcrInput()
	input.AddMultiFrameTiff("example.tiff")

	' Perform OCR and save as searchable PDF.
	Dim Result = Ocr.Read(input).SaveAsSearchablePdf("searchable.pdf")
End Using
$vbLabelText   $csharpLabel

HTML તરીકે OCR પરિણામો નિકાસ કરો

ઓસીઆર છબીથી એક્સએચટીએમએલ રૂપાંતર.

using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input images and create an XHTML file.
using (var Input = new OcrInput())
{
    input.Title = "Html Title";
    input.AddImage("image1.jpeg");

    // Perform OCR on the input images.
    var Result = Ocr.Read(input);
    // Save the OCR result as an HOCR file.
    Result.SaveAsHocrFile("results.html");
}
using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input images and create an XHTML file.
using (var Input = new OcrInput())
{
    input.Title = "Html Title";
    input.AddImage("image1.jpeg");

    // Perform OCR on the input images.
    var Result = Ocr.Read(input);
    // Save the OCR result as an HOCR file.
    Result.SaveAsHocrFile("results.html");
}
Imports IronOcr

' Initialize IronTesseract
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Gujarati

' Input images and create an XHTML file.
Using Input = New OcrInput()
	input.Title = "Html Title"
	input.AddImage("image1.jpeg")

	' Perform OCR on the input images.
	Dim Result = Ocr.Read(input)
	' Save the OCR result as an HOCR file.
	Result.SaveAsHocrFile("results.html")
End Using
$vbLabelText   $csharpLabel

OCR છબી વૃદ્ધિ ફિલ્ટર્સ

પરફોર્મન્સ સુધારવા માટે આયર્નઓસીઆર OcrInput માટે ઉન્નત ડિસ્પેન્સને લાગુ કરે છે.

છબી વૃદ્ધિ કોડ ઉદાહરણ

વધુ, ઝડપી ઓસીઆર પરિણામો ઉત્પન્ન કરવા માટે ઓસીઆર ઇનપુટ છબીઓને વધુ ગુણવત્તા તરફ દોરે છે.

using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a low-quality image for OCR processing.
using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
    // Enhance image quality for better OCR results.
    Input.DeNoise(); // Removes digital noise and improves low-quality scans
    Input.Deskew(); // Corrects rotation and alignment

    // Perform OCR on the enhanced input image.
    var Result = Ocr.Read(Input);

    // Output OCR result to the console.
    Console.WriteLine(Result.Text);
}
using IronOcr;

// Initialize IronTesseract
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Gujarati;

// Input a low-quality image for OCR processing.
using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
    // Enhance image quality for better OCR results.
    Input.DeNoise(); // Removes digital noise and improves low-quality scans
    Input.Deskew(); // Corrects rotation and alignment

    // Perform OCR on the enhanced input image.
    var Result = Ocr.Read(Input);

    // Output OCR result to the console.
    Console.WriteLine(Result.Text);
}
Imports IronOcr

' Initialize IronTesseract
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Gujarati

' Input a low-quality image for OCR processing.
Using Input = New OcrInput("LowQuality.jpeg")
	' Enhance image quality for better OCR results.
	Input.DeNoise() ' Removes digital noise and improves low-quality scans
	Input.Deskew() ' Corrects rotation and alignment

	' Perform OCR on the enhanced input image.
	Dim Result = Ocr.Read(Input)

	' Output OCR result to the console.
	Console.WriteLine(Result.Text)
End Using
$vbLabelText   $csharpLabel