C# ve .NET'te Batı Frizce OCR
IronOCR, .NET kodlayıcılarının Batı Frizce dahil olmak üzere 126 dilde resimlerden ve PDF belgelerinden metin okumasına olanak tanıyan bir C# yazılım bileşenidir.
Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.WesternFrisian İçeriği
Bu paket .NET için 67 OCR dili içerir:
- Batı Frizce
- Batı FrizceBest
- Batı FrizceFast
İndir
Batı Frizce Dil Paketi [Frysk]
- ZIP olarak indir
- NuGet ile yükleyin
Kurulum
İlk yapmamız gereken şey, .NET projenize Western Frisian OCR paketimizi yüklemektir.
Install-Package IronOcr.Languages.WesternFrisian
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Batı Frizce metin okur.
// Import the IronOcr library
using IronOcr;
class WesternFrisianOcrExample
{
static void Main()
{
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Set the language to Western Frisian
Ocr.Language = OcrLanguage.WesternFrisian;
// Perform OCR on a given image
using (var Input = new OcrInput(@"images\WesternFrisian.png"))
{
// Read the input image and store the result
var Result = Ocr.Read(Input);
// Extract the text from the result
string AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}
// Import the IronOcr library
using IronOcr;
class WesternFrisianOcrExample
{
static void Main()
{
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Set the language to Western Frisian
Ocr.Language = OcrLanguage.WesternFrisian;
// Perform OCR on a given image
using (var Input = new OcrInput(@"images\WesternFrisian.png"))
{
// Read the input image and store the result
var Result = Ocr.Read(Input);
// Extract the text from the result
string AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}
' Import the IronOcr library
Imports IronOcr
Friend Class WesternFrisianOcrExample
Shared Sub Main()
' Create a new instance of IronTesseract, which is the OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Western Frisian
Ocr.Language = OcrLanguage.WesternFrisian
' Perform OCR on a given image
Using Input = New OcrInput("images\WesternFrisian.png")
' Read the input image and store the result
Dim Result = Ocr.Read(Input)
' Extract the text from the result
Dim AllText As String = Result.Text
' Output the recognized text to the console
System.Console.WriteLine(AllText)
End Using
End Sub
End Class
Bu örnekte, biz:
- OCR motorunu başlatın
IronTesseract. - OCR işlemini,
OcrLanguage.WesternFrisiandil seçeneğini kullanarak Batı Frizce metni tanıyacak şekilde ayarlayın. images\WesternFrisian.pngyolunda bulunan bir görüntü dosyasını okuyun.- Tanınan metni
AllTextiçinde saklayın ve konsola PRINT edin.

