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.varOcr = new IronTesseract();// Set the language to Gujarati.Ocr.Language = OcrLanguage.Gujarati;// Input an image for OCR processing.using (varInput = new OcrInput(@"images\Gujarati.png")){ // Perform OCR on the input image. varResult = Ocr.Read(Input); // Store the extracted text into a variable. varAllText = 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.ImportsIronOcr' Initialize an instance of IronTesseract for OCR operations.PrivateOcr = New IronTesseract()' Set the language to Gujarati.Ocr.Language = OcrLanguage.Gujarati' Input an image for OCR processing.UsingInput = New OcrInput("images\Gujarati.png") ' Perform OCR on the input image. DimResult = Ocr.Read(Input) ' Store the extracted text into a variable. DimAllText = Result.Text' Corrected 'Var' to 'var'EndUsing
' 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
આયરનઓસીઆર કમ પસદ કરો?
આયરન ઓસીઆર એ એક સથાપિત કરવાનો સરળ, સપરણ અન સારી રીત દસતાવજીકત .NET સોફટવર લાઇબરરી છ.
વપારી અન માલિકીની ઍપલિકશનમા વિતરિત કરવા માટ વપરાય છ
વાસતવિક વિશવની છબીઓ અન હાથથી લખાઈ શક તવા અપરણ દસતાવજો અથવા ડિજિટલ અવાજ અથવા અપરણતા હોઈ શક તવા
નિમન રિઝોલયશનના સકન સાથ કામ કરતી વખત આયરન ઓસીઆર ચમકતો હોય છ.
.NET પલટફોરમ માટ અનય નિઃશલક ઓસીઆર
લાઇબરરીઓ જમ ક અનય .NET ટસસરટ એપીઆઈ અન વબ સવાઓ આ વાસતવિક વિશવના ઉપયોગના કસો પર એટલ સાર પરદરશન
કરતી નથી.
પરિવહન 5 સાથના ઓસીઆર - સી # મા કોડિગ પરારભ કરો
નીચ આપલ કોડ નમના બતાવ છ ક C# અથવા VB.NET નો ઉપયોગ કરીન છબીમાથી ટકસટ વાચવ કટલ સરળ છ.
વનલાઈનર
// A simple one-liner to read text from an image using IronOcr.stringText = 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.DimTextAsString = (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
હલલો વરલડ રપરખાકિત
// PM> Install-Package IronOcr.Languages.Gujaratiusing IronOcr;// Initialize an instance of IronTesseract.varOcr = new IronTesseract();// Set the language to Gujarati.Ocr.Language = OcrLanguage.Gujarati;// Create a new OCR Input and add an image.using (varInput = new OcrInput()){Input.AddImage("images/sample.jpeg"); //... તમ કોઈપણ સખયામા છબીઓ ઉમરી શકો છો // Perform OCR on the input image(s). varResult = 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);
}
ImportsIronOcr' Initialize an instance of IronTesseract.DimOcrAs New IronTesseract()' Set the language to Gujarati.Ocr.Language = OcrLanguage.Gujarati' Create a new OCR Input and add an image.UsingInputAs New OcrInput()Input.AddImage("images/sample.jpeg") '... તમ કોઈપણ સખયામા છબીઓ ઉમરી શકો છો ' Perform OCR on the input image(s). DimResult = Ocr.Read(Input) ' Print the extracted text to the console.Console.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Initialize an instance of IronTesseract.
Dim Ocr As New IronTesseract()
' Set the language to Gujarati.
Ocr.Language = OcrLanguage.Gujarati
' Create a new OCR Input and add an image.
Using Input As 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
C# પીડીએફ ઓસીઆર
કોઈ પણ પીડીએફ દસતાવજમાથી ટકસટ કાractવા માટ સમાન અભિગમનો ઉપયોગ કરી શકાય છ.
using IronOcr;// Initialize IronTesseractvarOcr = 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. varResult = 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
}
ImportsIronOcr' Initialize IronTesseractPrivateOcr = 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. DimResult = 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 PageEndUsing
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
મલટિપજ ટીઆઈએફએફ માટ ઓસીઆર
OCR રીડિગ TIFF ફાઇલ ફોરમટ સહિત અનક પષઠ દસતાવજો. ટીઆઈએફએફન સીધા પીડીએફ ફાઇલમા પણ શોધી શકાય તવા ટકસટ
સાથ રપાતરિત કરી શકાય છ.
using IronOcr;// Initialize IronTesseractvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Gujarati;// Input a multi-frame TIFF for OCR processing.using (varInput = new OcrInput()){ input.AddMultiFrameTiff("multi-frame.tiff"); // Perform OCR on the input TIFF. varResult = 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);
}
ImportsIronOcr' Initialize IronTesseractPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Gujarati' Input a multi-frame TIFF for OCR processing.UsingInput = New OcrInput() input.AddMultiFrameTiff("multi-frame.tiff") ' Perform OCR on the input TIFF. DimResult = Ocr.Read(Input) ' Output OCR result to the console.Console.WriteLine(Result.Text)EndUsing
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
using IronOcr;// Initialize IronTesseract with barcode reading enabledvarOcr = 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. varResult = Ocr.Read(input); // Iterate through each detected barcode and output its value. foreach (varBarcodeinResult.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.
}
}
ImportsIronOcr' Initialize IronTesseract with barcode reading enabledPrivateOcr = 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. DimResult = Ocr.Read(input) ' Iterate through each detected barcode and output its value. For EachBarcodeInResult.BarcodesConsole.WriteLine(Barcode.Value) ' Additional properties like type and location are also available. NextBarcodeEndUsing
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
છબીઓના વિશિષટ કષતરો પર ઓસીઆર
આયરન ઓસીઆરની બધી સકનીગ અન વાચવાની પદધતિઓ પષઠ અથવા પષઠોના કયા ભાગમાથી આપણ ટકસટ વાચવા માગીએ છીએ ત
ચોકકસપણ સપષટ કરવાની કષમતા પરદાન કર છ. જયાર અમ પરમાણિત સવરપો જોઈએ છીએ તયાર આ ખબ ઉપયોગી છ અન ઘણ
સમય બચાવી શકીએ છીએ અન કારયકષમતામા સધારો કરી શકીએ છીએ.
પાકના પરદશોનો ઉપયોગ કરવા માટ, આપણ System.Drawing માટ સિસટમ સદરભ ઉમરવાની જરર પડશ જથી આપણ
System.Drawing.Rectangle object System.Drawing.Rectangle ઉપયોગ કરી શકીએ.
using IronOcr;using System.Drawing; // Add System.Drawing assembly reference// Initialize IronTesseractvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Gujarati;// Input an image and specify content area for OCR.using (varInput = new OcrInput()){ varContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 }; // Coordinates are in pixelsInput.Add("document.png", ContentArea); // Perform OCR on the specified area of the input image. varResult = 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);
}
ImportsIronOcrImportsSystem.Drawing' Add System.Drawing assembly reference' Initialize IronTesseractPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Gujarati' Input an image and specify content area for OCR.UsingInput = New OcrInput() DimContentArea = New System.Drawing.Rectangle() With { .X = 215, .Y = 1250, .Height = 280, .Width = 1335 } ' Coordinates are in pixelsInput.Add("document.png", ContentArea) ' Perform OCR on the specified area of the input image. DimResult = Ocr.Read(Input) ' Output OCR result to the console.Console.WriteLine(Result.Text)EndUsing
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
ઓછી ગણવતતાવાળા સકન માટ ઓ.સી.આર.
આયરન ઓસીઆર OcrInput વરગ સકનન ઠીક કરી શક છ જ સામાનય OcrInput વાચી શકત નથી.
using IronOcr;// Initialize IronTesseractvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Gujarati;// Input a low-quality image for OCR processing.using (varInput = new OcrInput(@"img\Potter.LowQuality.tiff")){ // Enhance image quality for better OCR results.Input.DeNoise(); // Removes digital noise and improves low-quality scansInput.Deskew(); // Corrects rotation and alignment // Perform OCR on the enhanced input image. varResult = 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);
}
ImportsIronOcr' Initialize IronTesseractPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Gujarati' Input a low-quality image for OCR processing.UsingInput = New OcrInput("img\Potter.LowQuality.tiff") ' Enhance image quality for better OCR results.Input.DeNoise() ' Removes digital noise and improves low-quality scansInput.Deskew() ' Corrects rotation and alignment ' Perform OCR on the enhanced input image. DimResult = Ocr.Read(Input) ' Output OCR result to the console.Console.WriteLine(Result.Text)EndUsing
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
શોધના યોગય પીડીએફ તરીક ઓસીઆર પરિણામોન નિકાસ કરો
નકલ કરવા યોગય ટકસટ શબદમાળાઓ સાથ પીડીએફ પરની છબી. શોધ એજીન અન ડટાબસસ દવારા અનકરમિત કરી શકાય છ.
using IronOcr;// Initialize IronTesseractvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Gujarati;// Input images and create a searchable PDF.using (varInput = new OcrInput()){ input.Title = "Quarterly Report"; input.AddImage("image1.jpeg"); input.AddImage("image2.png"); input.AddImage("image3.gif"); // Perform OCR on the input images. varResult = 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");
}
ImportsIronOcr' Initialize IronTesseractPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Gujarati' Input images and create a searchable PDF.UsingInput = New OcrInput() input.Title = "Quarterly Report" input.AddImage("image1.jpeg") input.AddImage("image2.png") input.AddImage("image3.gif") ' Perform OCR on the input images. DimResult = Ocr.Read(input) ' Save the OCR result as a searchable PDF.Result.SaveAsSearchablePdf("searchable.pdf")EndUsing
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
TIFF પીડીએફ કનવરઝન શોધી શકાય તવ છ
ટીઆઈએફએફ દસતાવજ (અથવા ઇમજ ફાઇલોના કોઈપણ જથ) ન સીધા શોધી પીડીએફમા કનવરટ કરો જ ઇનટરાનટ, વબસાઇ તપાસ સતત ક પરિણામો ન અસલો કરવા માટ વિગમ કાપી; ત સરકારા એક આધનિક બનજો પરોગરામરની લાઇબરરીસાથ ઉમરી શકો છો. સામહિક ષાનનગકીરતિવ કરી શકો છોનતાનો નિયકત થયલ છબીઓ બની ઘણા માલ નકશનલ અથવા કોધ એ મલયાકન આપ અથવા વબમાસટરવા સટરસાન શહા બદાનલ ધરી સધ સમરમાણ સાથ સફલતાની મોટઙળ કષિ ત સીચીત આહવાની કસ વાગાઝણો એ મથવી દર હોવી પચાષણ નવાારી બાય સથયો હના ઢોમજઑતીય અતારની દણકાખ એરકશન શરીરસોશિયરી પી છ.
using IronOcr;// Initialize IronTesseractvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Gujarati;// Input a multi-frame TIFF for PDF conversion.using (varInput = new OcrInput()){ input.AddMultiFrameTiff("example.tiff"); // Perform OCR and save as searchable PDF. varResult = 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");
}
ImportsIronOcr' Initialize IronTesseractPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Gujarati' Input a multi-frame TIFF for PDF conversion.UsingInput = New OcrInput() input.AddMultiFrameTiff("example.tiff") ' Perform OCR and save as searchable PDF. DimResult = Ocr.Read(input).SaveAsSearchablePdf("searchable.pdf")EndUsing
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
HTML તરીક OCR પરિણામો નિકાસ કરો
ઓસીઆર છબીથી એકસએચટીએમએલ રપાતર.
using IronOcr;// Initialize IronTesseractvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Gujarati;// Input images and create an XHTML file.using (varInput = new OcrInput()){ input.Title = "Html Title"; input.AddImage("image1.jpeg"); // Perform OCR on the input images. varResult = 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");
}
ImportsIronOcr' Initialize IronTesseractPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Gujarati' Input images and create an XHTML file.UsingInput = New OcrInput() input.Title = "Html Title" input.AddImage("image1.jpeg") ' Perform OCR on the input images. DimResult = Ocr.Read(input) ' Save the OCR result as an HOCR file.Result.SaveAsHocrFile("results.html")EndUsing
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
વધ, ઝડપી ઓસીઆર પરિણામો ઉતપનન કરવા માટ ઓસીઆર ઇનપટ છબીઓન વધ ગણવતતા તરફ દોર છ.
using IronOcr;// Initialize IronTesseractvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Gujarati;// Input a low-quality image for OCR processing.using (varInput = new OcrInput(@"LowQuality.jpeg")){ // Enhance image quality for better OCR results.Input.DeNoise(); // Removes digital noise and improves low-quality scansInput.Deskew(); // Corrects rotation and alignment // Perform OCR on the enhanced input image. varResult = 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);
}
ImportsIronOcr' Initialize IronTesseractPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Gujarati' Input a low-quality image for OCR processing.UsingInput = New OcrInput("LowQuality.jpeg") ' Enhance image quality for better OCR results.Input.DeNoise() ' Removes digital noise and improves low-quality scansInput.Deskew() ' Corrects rotation and alignment ' Perform OCR on the enhanced input image. DimResult = Ocr.Read(Input) ' Output OCR result to the console.Console.WriteLine(Result.Text)EndUsing
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
Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.