French OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET yazılımcılarının, Fransızca da dahil olmak üzere 126 dildeki görüntü ve PDF belgelerinden metin okumasına izin veren bir C# yazılım bileşenidir.
Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.
IronOcr.Languages.French İçeriği
Bu paket, .NET için 43 OCR dilini içerir:
- Fransızca
- FrenchBest
- FrenchFast
İndirme
Fransızca Dil Paketi [français]
Kurulum
Yapmamız gereken ilk şey, Fransızca OCR paketimizi .NET projenize kurmaktır.
Install-Package IronOcr.Languages.French
Kod Örneği
Bu C# kod örneği, bir görüntü veya PDF belgesinden Fransızca metin okur.
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Specify the language to French for OCR processing
Ocr.Language = OcrLanguage.French;
// Load the input image or PDF document
using (var Input = new OcrInput(@"images\French.png"))
{
// Perform OCR and retrieve the result
var Result = Ocr.Read(Input);
// Access the text from the OCR result
var AllText = Result.Text;
// Output or further process `AllText` as needed
}
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Specify the language to French for OCR processing
Ocr.Language = OcrLanguage.French;
// Load the input image or PDF document
using (var Input = new OcrInput(@"images\French.png"))
{
// Perform OCR and retrieve the result
var Result = Ocr.Read(Input);
// Access the text from the OCR result
var AllText = Result.Text;
// Output or further process `AllText` as needed
}
' Import the IronOcr namespace
Imports IronOcr
' Create a new instance of IronTesseract, which is the OCR engine
Private Ocr = New IronTesseract()
' Specify the language to French for OCR processing
Ocr.Language = OcrLanguage.French
' Load the input image or PDF document
Using Input = New OcrInput("images\French.png")
' Perform OCR and retrieve the result
Dim Result = Ocr.Read(Input)
' Access the text from the OCR result
Dim AllText = Result.Text
' Output or further process `AllText` as needed
End Using

