Assamese OCR in C# and .NET
IronOCR, .NET yazılımcılarının resimlerden ve PDF belgelerinden metin okumalarını sağlayan bir C# yazılım bileşenidir ve Asamiya dahil 126 dili destekler.
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.Assamese İçeriği
Bu paket, .NET için 49 OCR dili içerir:
- Asamiya
- AsamiyaBest
- AsamiyaFast
İndirme
Asamiya Dil Paketi [অসমীযা]
Kurulum
Yapmamız gereken ilk şey, Asamiya OCR paketimizi .NET projenize yüklemektir.
Install-Package IronOcr.Languages.Assamese
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Asamiya metin okur.
// Make sure to install the necessary package:
// PM> Install-Package IronOcr.Languages.Assamese
using IronOcr;
class OCRExample
{
public void ReadAssameseText()
{
// Create an instance of IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Assamese
Ocr.Language = OcrLanguage.Assamese;
// Create an OCR input object with the specified image or PDF file
using (var Input = new OcrInput(@"images\Assamese.png"))
{
// Read the text from the input file
var Result = Ocr.Read(Input);
// Retrieve the text from the OCR result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
// Make sure to install the necessary package:
// PM> Install-Package IronOcr.Languages.Assamese
using IronOcr;
class OCRExample
{
public void ReadAssameseText()
{
// Create an instance of IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Assamese
Ocr.Language = OcrLanguage.Assamese;
// Create an OCR input object with the specified image or PDF file
using (var Input = new OcrInput(@"images\Assamese.png"))
{
// Read the text from the input file
var Result = Ocr.Read(Input);
// Retrieve the text from the OCR result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
' Make sure to install the necessary package:
' PM> Install-Package IronOcr.Languages.Assamese
Imports IronOcr
Friend Class OCRExample
Public Sub ReadAssameseText()
' Create an instance of IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Assamese
Ocr.Language = OcrLanguage.Assamese
' Create an OCR input object with the specified image or PDF file
Using Input = New OcrInput("images\Assamese.png")
' Read the text from the input file
Dim Result = Ocr.Read(Input)
' Retrieve the text from the OCR result
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
- IronTesseract: Bu, OCR operasyonlarından sorumlu ana sınıftır.
- OcrLanguage.Assamese: OCR için dili belirtir. Bu durumda, Asamiya olarak ayarlanmıştır.
- OcrInput: Metin çıkarmak istediğiniz resim veya PDF'leri yüklemek için kullanılır.
- Result.Text: Resim veya PDF'den çıkarılan tam metni içerir.

