بۇ C#كود مىسالى رەسىم ياكى PDF ھۆججىتىدىن ئۇيغۇر تېكىستىنى ئوقۇدۇ.
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the language for OCR to UyghurOcr.Language = OcrLanguage.Uyghur;// Define the input image for OCRusing (varInput = new OcrInput(@"images\Uyghur.png")){ // Perform OCR on the input image varResult = Ocr.Read(Input); // Get the extracted text from the OCR result varAllText = Result.Text;}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the language for OCR to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Define the input image for OCR
using (var Input = new OcrInput(@"images\Uyghur.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Get the extracted text from the OCR result
var AllText = Result.Text;
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRDimOcrAs New IronTesseract()' Set the language for OCR to UyghurOcr.Language = OcrLanguage.Uyghur' Define the input image for OCRUsingInputAs New OcrInput("images\Uyghur.png") ' Perform OCR on the input image DimResult = Ocr.Read(Input) ' Get the extracted text from the OCR result DimAllText = Result.TextEndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Dim Ocr As New IronTesseract()
' Set the language for OCR to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Define the input image for OCR
Using Input As New OcrInput("images\Uyghur.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Get the extracted text from the OCR result
Dim AllText = Result.Text
End Using
// Create a new instance of IronTesseract for OCRstringText = new IronTesseract().Read(@"img\Screenshot.png").Text;
// Create a new instance of IronTesseract for OCR
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
' Create a new instance of IronTesseract for OCRDimTextAsString = (New IronTesseract()).Read("img\Screenshot.png").Text
' Create a new instance of IronTesseract for OCR
Dim Text As String = (New IronTesseract()).Read("img\Screenshot.png").Text
سەپلىگىلى بولىدىغان سالام دۇنيا
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the language for OCR to UyghurOcr.Language = OcrLanguage.Uyghur;// Initialize a new OcrInputusing (varInput = new OcrInput()){ // Add an image to the input for OCR processingInput.AddImage("images/sample.jpeg"); // Add more images if needed // Perform OCR on input images varResult = Ocr.Read(Input); // Output the extracted textConsole.WriteLine(Result.Text);}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the language for OCR to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Initialize a new OcrInput
using (var Input = new OcrInput())
{
// Add an image to the input for OCR processing
Input.AddImage("images/sample.jpeg");
// Add more images if needed
// Perform OCR on input images
var Result = Ocr.Read(Input);
// Output the extracted text
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Set the language for OCR to UyghurOcr.Language = OcrLanguage.Uyghur' Initialize a new OcrInputUsingInput = New OcrInput() ' Add an image to the input for OCR processingInput.AddImage("images/sample.jpeg") ' Add more images if needed ' Perform OCR on input images DimResult = Ocr.Read(Input) ' Output the extracted textConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Set the language for OCR to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Initialize a new OcrInput
Using Input = New OcrInput()
' Add an image to the input for OCR processing
Input.AddImage("images/sample.jpeg")
' Add more images if needed
' Perform OCR on input images
Dim Result = Ocr.Read(Input)
' Output the extracted text
Console.WriteLine(Result.Text)
End Using
C#PDF OCR
ئوخشاش ئۇسۇلنى ھەر قانداق PDF ھۆججىتىدىن تېكىست چىقىرىشقا ئىشلىتىشكە بولىدۇ.
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur;// Initialize a new OcrInput for PDF processingusing (var input = new OcrInput()){ // Add a password-protected PDF to the input input.AddPdf("example.pdf", "password"); // Optional: Specify particular pages for OCR if needed // Perform OCR on the PDF input varResult = Ocr.Read(input); // Output the extracted textConsole.WriteLine(Result.Text); // Output the number of pages processedConsole.WriteLine($"{Result.Pages.Count()} Pages"); // Note: Each page of the PDF is considered as 1 page in the result}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Initialize a new OcrInput for PDF processing
using (var input = new OcrInput())
{
// Add a password-protected PDF to the input
input.AddPdf("example.pdf", "password");
// Optional: Specify particular pages for OCR if needed
// Perform OCR on the PDF input
var Result = Ocr.Read(input);
// Output the extracted text
Console.WriteLine(Result.Text);
// Output the number of pages processed
Console.WriteLine($"{Result.Pages.Count()} Pages");
// Note: Each page of the PDF is considered as 1 page in the result
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur' Initialize a new OcrInput for PDF processingUsing input = New OcrInput() ' Add a password-protected PDF to the input input.AddPdf("example.pdf", "password") ' Optional: Specify particular pages for OCR if needed ' Perform OCR on the PDF input DimResult = Ocr.Read(input) ' Output the extracted textConsole.WriteLine(Result.Text) ' Output the number of pages processedConsole.WriteLine($"{Result.Pages.Count()} Pages") ' Note: Each page of the PDF is considered as 1 page in the resultEndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Initialize a new OcrInput for PDF processing
Using input = New OcrInput()
' Add a password-protected PDF to the input
input.AddPdf("example.pdf", "password")
' Optional: Specify particular pages for OCR if needed
' Perform OCR on the PDF input
Dim Result = Ocr.Read(input)
' Output the extracted text
Console.WriteLine(Result.Text)
' Output the number of pages processed
Console.WriteLine($"{Result.Pages.Count()} Pages")
' Note: Each page of the PDF is considered as 1 page in the result
End Using
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur;// Initialize a new OcrInput for multi-page TIFF processingusing (varInput = new OcrInput()){ // Add a multi-frame TIFF image to the inputInput.AddMultiFrameTiff("multi-frame.tiff"); // Perform OCR on the TIFF input varResult = Ocr.Read(Input); // Output the extracted textConsole.WriteLine(Result.Text);}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Initialize a new OcrInput for multi-page TIFF processing
using (var Input = new OcrInput())
{
// Add a multi-frame TIFF image to the input
Input.AddMultiFrameTiff("multi-frame.tiff");
// Perform OCR on the TIFF input
var Result = Ocr.Read(Input);
// Output the extracted text
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur' Initialize a new OcrInput for multi-page TIFF processingUsingInput = New OcrInput() ' Add a multi-frame TIFF image to the inputInput.AddMultiFrameTiff("multi-frame.tiff") ' Perform OCR on the TIFF input DimResult = Ocr.Read(Input) ' Output the extracted textConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Initialize a new OcrInput for multi-page TIFF processing
Using Input = New OcrInput()
' Add a multi-frame TIFF image to the input
Input.AddMultiFrameTiff("multi-frame.tiff")
' Perform OCR on the TIFF input
Dim Result = Ocr.Read(Input)
' Output the extracted text
Console.WriteLine(Result.Text)
End Using
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Enable barcode reading during OCROcr.Configuration.ReadBarCodes = true;// Initialize a new OcrInput for barcode image processingusing (var input = new OcrInput()){ // Add a barcode image to the input input.AddImage("img/Barcode.png"); // Perform OCR on the input image varResult = Ocr.Read(input); // Iterate over 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;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Enable barcode reading during OCR
Ocr.Configuration.ReadBarCodes = true;
// Initialize a new OcrInput for barcode image processing
using (var input = new OcrInput())
{
// Add a barcode image to the input
input.AddImage("img/Barcode.png");
// Perform OCR on the input image
var Result = Ocr.Read(input);
// Iterate over 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' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Enable barcode reading during OCROcr.Configuration.ReadBarCodes = True' Initialize a new OcrInput for barcode image processingUsing input = New OcrInput() ' Add a barcode image to the input input.AddImage("img/Barcode.png") ' Perform OCR on the input image DimResult = Ocr.Read(input) ' Iterate over 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
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Enable barcode reading during OCR
Ocr.Configuration.ReadBarCodes = True
' Initialize a new OcrInput for barcode image processing
Using input = New OcrInput()
' Add a barcode image to the input
input.AddImage("img/Barcode.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(input)
' Iterate over 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
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur;// Initialize a new OcrInput for image processingusing (varInput = new OcrInput()){ // Define a specific content area in the image varContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 }; // Dimensions specified in pixels // Add the image with the specified content area for OCRInput.Add("document.png", ContentArea); // Perform OCR on the specified content area varResult = Ocr.Read(Input); // Output the extracted textConsole.WriteLine(Result.Text);}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Initialize a new OcrInput for image processing
using (var Input = new OcrInput())
{
// Define a specific content area in the image
var ContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };
// Dimensions specified in pixels
// Add the image with the specified content area for OCR
Input.Add("document.png", ContentArea);
// Perform OCR on the specified content area
var Result = Ocr.Read(Input);
// Output the extracted text
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur' Initialize a new OcrInput for image processingUsingInput = New OcrInput() ' Define a specific content area in the image DimContentArea = New System.Drawing.Rectangle() With { .X = 215, .Y = 1250, .Height = 280, .Width = 1335 } ' Dimensions specified in pixels ' Add the image with the specified content area for OCRInput.Add("document.png", ContentArea) ' Perform OCR on the specified content area DimResult = Ocr.Read(Input) ' Output the extracted textConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Initialize a new OcrInput for image processing
Using Input = New OcrInput()
' Define a specific content area in the image
Dim ContentArea = New System.Drawing.Rectangle() With {
.X = 215,
.Y = 1250,
.Height = 280,
.Width = 1335
}
' Dimensions specified in pixels
' Add the image with the specified content area for OCR
Input.Add("document.png", ContentArea)
' Perform OCR on the specified content area
Dim Result = Ocr.Read(Input)
' Output the extracted text
Console.WriteLine(Result.Text)
End Using
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur;// Initialize a new OcrInput with a low-quality imageusing (varInput = new OcrInput(@"img\Potter.LowQuality.tiff")){ // Enhance image by removing digital noiseInput.DeNoise(); // Correct image skewInput.Deskew(); // Perform OCR on the enhanced image varResult = Ocr.Read(Input); // Output the extracted textConsole.WriteLine(Result.Text);}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Initialize a new OcrInput with a low-quality image
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
// Enhance image by removing digital noise
Input.DeNoise();
// Correct image skew
Input.Deskew();
// Perform OCR on the enhanced image
var Result = Ocr.Read(Input);
// Output the extracted text
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur' Initialize a new OcrInput with a low-quality imageUsingInput = New OcrInput("img\Potter.LowQuality.tiff") ' Enhance image by removing digital noiseInput.DeNoise() ' Correct image skewInput.Deskew() ' Perform OCR on the enhanced image DimResult = Ocr.Read(Input) ' Output the extracted textConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Initialize a new OcrInput with a low-quality image
Using Input = New OcrInput("img\Potter.LowQuality.tiff")
' Enhance image by removing digital noise
Input.DeNoise()
' Correct image skew
Input.Deskew()
' Perform OCR on the enhanced image
Dim Result = Ocr.Read(Input)
' Output the extracted text
Console.WriteLine(Result.Text)
End Using
OCR نەتىجىسىنى ئىزدەشكە بولىدىغان PDF قىلىپ چىقىرىش
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur;// Initialize a new OcrInputusing (varInput = new OcrInput()){ // Set the title of the PDFInput.Title = "Quarterly Report"; // Add multiple images to the inputInput.AddImage("image1.jpeg");Input.AddImage("image2.png");Input.AddImage("image3.gif"); // Perform OCR on the input images varResult = Ocr.Read(Input); // Save the result as a searchable PDFResult.SaveAsSearchablePdf("searchable.pdf");}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Initialize a new OcrInput
using (var Input = new OcrInput())
{
// Set the title of the PDF
Input.Title = "Quarterly Report";
// Add multiple images to the input
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 result as a searchable PDF
Result.SaveAsSearchablePdf("searchable.pdf");
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur' Initialize a new OcrInputUsingInput = New OcrInput() ' Set the title of the PDFInput.Title = "Quarterly Report" ' Add multiple images to the inputInput.AddImage("image1.jpeg")Input.AddImage("image2.png")Input.AddImage("image3.gif") ' Perform OCR on the input images DimResult = Ocr.Read(Input) ' Save the result as a searchable PDFResult.SaveAsSearchablePdf("searchable.pdf")EndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Initialize a new OcrInput
Using Input = New OcrInput()
' Set the title of the PDF
Input.Title = "Quarterly Report"
' Add multiple images to the input
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 result as a searchable PDF
Result.SaveAsSearchablePdf("searchable.pdf")
End Using
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur;// Initialize a new OcrInput for multi-frame TIFFusing (varInput = new OcrInput()){ // Add multi-frame TIFF to the input for OCRInput.AddMultiFrameTiff("example.tiff"); // Process the input with OCR and save as a searchable PDF varResult = Ocr.Read(Input);Result.SaveAsSearchablePdf("searchable.pdf");}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Initialize a new OcrInput for multi-frame TIFF
using (var Input = new OcrInput())
{
// Add multi-frame TIFF to the input for OCR
Input.AddMultiFrameTiff("example.tiff");
// Process the input with OCR and save as a searchable PDF
var Result = Ocr.Read(Input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur' Initialize a new OcrInput for multi-frame TIFFUsingInput = New OcrInput() ' Add multi-frame TIFF to the input for OCRInput.AddMultiFrameTiff("example.tiff") ' Process the input with OCR and save as a searchable PDF DimResult = Ocr.Read(Input)Result.SaveAsSearchablePdf("searchable.pdf")EndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Initialize a new OcrInput for multi-frame TIFF
Using Input = New OcrInput()
' Add multi-frame TIFF to the input for OCR
Input.AddMultiFrameTiff("example.tiff")
' Process the input with OCR and save as a searchable PDF
Dim Result = Ocr.Read(Input)
Result.SaveAsSearchablePdf("searchable.pdf")
End Using
OCR نەتىجىسىنى HTML قىلىپ چىقىرىش
OCR رەسىمنى XHTML غا ئايلاندۇرۇش.
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur;// Initialize a new OcrInputusing (varInput = new OcrInput()){ // Set the title for the HTML documentInput.Title = "Html Title"; // Add image to the inputInput.AddImage("image1.jpeg"); // Perform OCR on the image varResult = Ocr.Read(Input); // Save the result as an HOCR file (HTML)Result.SaveAsHocrFile("results.html");}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Initialize a new OcrInput
using (var Input = new OcrInput())
{
// Set the title for the HTML document
Input.Title = "Html Title";
// Add image to the input
Input.AddImage("image1.jpeg");
// Perform OCR on the image
var Result = Ocr.Read(Input);
// Save the result as an HOCR file (HTML)
Result.SaveAsHocrFile("results.html");
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur' Initialize a new OcrInputUsingInput = New OcrInput() ' Set the title for the HTML documentInput.Title = "Html Title" ' Add image to the inputInput.AddImage("image1.jpeg") ' Perform OCR on the image DimResult = Ocr.Read(Input) ' Save the result as an HOCR file (HTML)Result.SaveAsHocrFile("results.html")EndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Initialize a new OcrInput
Using Input = New OcrInput()
' Set the title for the HTML document
Input.Title = "Html Title"
' Add image to the input
Input.AddImage("image1.jpeg")
' Perform OCR on the image
Dim Result = Ocr.Read(Input)
' Save the result as an HOCR file (HTML)
Result.SaveAsHocrFile("results.html")
End Using
using IronOcr;// Create a new instance of IronTesseract for OCRvarOcr = new IronTesseract();// Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur;// Initialize a new OcrInput with a low-quality imageusing (varInput = new OcrInput(@"LowQuality.jpeg")){ // Enhance image by removing digital noiseInput.DeNoise(); // Correct image skewInput.Deskew(); // Perform OCR on the enhanced image varResult = Ocr.Read(Input); // Output the extracted textConsole.WriteLine(Result.Text);}
using IronOcr;
// Create a new instance of IronTesseract for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur;
// Initialize a new OcrInput with a low-quality image
using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
// Enhance image by removing digital noise
Input.DeNoise();
// Correct image skew
Input.Deskew();
// Perform OCR on the enhanced image
var Result = Ocr.Read(Input);
// Output the extracted text
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Create a new instance of IronTesseract for OCRPrivateOcr = New IronTesseract()' Set the OCR language to UyghurOcr.Language = OcrLanguage.Uyghur' Initialize a new OcrInput with a low-quality imageUsingInput = New OcrInput("LowQuality.jpeg") ' Enhance image by removing digital noiseInput.DeNoise() ' Correct image skewInput.Deskew() ' Perform OCR on the enhanced image DimResult = Ocr.Read(Input) ' Output the extracted textConsole.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur
Ocr.Language = OcrLanguage.Uyghur
' Initialize a new OcrInput with a low-quality image
Using Input = New OcrInput("LowQuality.jpeg")
' Enhance image by removing digital noise
Input.DeNoise()
' Correct image skew
Input.Deskew()
' Perform OCR on the enhanced image
Dim Result = Ocr.Read(Input)
' Output the extracted text
Console.WriteLine(Result.Text)
End Using
Curtis Chau, Bilgisayar Bilimleri alanında Lisans Derecesine (Carleton Üniversitesi) sahip ve Node.js, TypeScript, JavaScript ve React konularında uzmanlaşmış ön uç geliştirmeyle ilgileniyor. Sezgisel ve estetik açıdan hoş kullanıcı arayüzleri oluşturma tutkunu, Curtis modern çerçevelerle çalışmayı ve iyi yapılandırılmış, görsel olarak çekici kılavuzlar oluşturmayı seviyor.