Kyrgyz OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C#-Softwarekomponente, die es .NET-Programmierern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Kirgisisch, auszulesen.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.Kyrgyz
Dieses Paket enthält 43 OCR-Sprachen for .NET:
- Kirgisisch
- KyrgyzBest
- KyrgyzFast
Download
Kirgisch Sprachpaket [Кыргызча]
Installation
Das erste, was wir tun müssen, ist, unser Kirgisisches OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Kyrgyz
Beispielcode
Dieses C#-Codebeispiel liest kirgisischen Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr namespace
using IronOcr;
public class KyrgyzOcrExample
{
public void PerformOcr()
{
// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
// Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz;
// Define the input using an image file path
using (var Input = new OcrInput(@"images\Kyrgyz.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extracted text from the image
string AllText = Result.Text;
// Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
public class KyrgyzOcrExample
{
public void PerformOcr()
{
// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
// Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz;
// Define the input using an image file path
using (var Input = new OcrInput(@"images\Kyrgyz.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extracted text from the image
string AllText = Result.Text;
// Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Public Class KyrgyzOcrExample
Public Sub PerformOcr()
' Initialize IronTesseract for OCR operations
Dim Ocr = New IronTesseract()
' Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz
' Define the input using an image file path
Using Input = New OcrInput("images\Kyrgyz.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extracted text from the image
Dim AllText As String = Result.Text
' Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Dieser Codeblock initialisiert ein
IronTesseractObjekt zur Durchführung von OCR. - Es stellt die Sprache mithilfe des Enums
OcrLanguage.Kyrgyzauf Kirgisisch ein. - Die Klasse
OcrInputdient zur Angabe des Dateipfads des Bildes, aus dem der Text extrahiert wird. Ocr.Read(Input)führt den OCR-Prozess durch und liefert ein Ergebnis, das den extrahierten Text enthält, der überResult.Textzugänglich ist.- Schließlich gibt
Console.WriteLine(AllText)den extrahierten Text in der Konsole aus.

