Assamese OCR in C# and .NET
O IronOCR é um componente de software C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o assamês.
Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em termos de velocidade e precisão.
Conteúdo do IronOcr.Idiomas.Assamês
Este pacote contém 49 idiomas de OCR for .NET:
- Assamês
- AssameseBest
- Assamês Rápido
Baixar
Pacote de idioma assamês [অসমীযা]
Instalação
A primeira coisa que precisamos fazer é instalar nosso pacote de OCR para assamês em seu projeto .NET .
Install-Package IronOcr.Languages.Assamese
Exemplo de código
Este exemplo de código C# lê texto em assamês de uma imagem ou documento PDF.
// 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 : Esta é a classe principal responsável pelas operações de OCR.
- OcrLanguage.Assamese : Especifica o idioma para OCR. Neste caso, está configurado para o idioma assamês.
- OcrInput : Esta classe é usada para carregar imagens ou PDFs dos quais você deseja extrair texto.
- Result.Text : Contém o texto completo extraído da imagem ou do PDF.

