Sindhi OCR in C# and .NET
Outras versões deste documento:
IronOCR é um componente de software C# que permite aos desenvolvedores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o sindi. 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 de IronOcr.Languages.Sindhi
Este pacote contém 43 linguagens OCR for .NET:
- Sindhi
- SindhiBest
- SindhiFast
Baixar
Pacote de idioma sindi [सिनधी]
Instalação
O primeiro passo é instalar o pacote Sindhi OCR no seu projeto .NET.
Install-Package IronOcr.Languages.Sindhi
Exemplo de código
Este exemplo de código C# lê texto em sindi a partir de uma imagem ou documento PDF.
// Ensure the IronOCR package and Sindhi language pack are installed
using IronOcr;
var Ocr = new IronTesseract
{
Language = OcrLanguage.Sindhi // Set the OCR language to Sindhi
};
// Open an image or PDF document for OCR processing
using (var Input = new OcrInput(@"images\Sindhi.png"))
{
// Perform OCR and get the results
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Optionally, you can do something with the extracted text,
// such as displaying or saving it to a file.
}
// Ensure the IronOCR package and Sindhi language pack are installed
using IronOcr;
var Ocr = new IronTesseract
{
Language = OcrLanguage.Sindhi // Set the OCR language to Sindhi
};
// Open an image or PDF document for OCR processing
using (var Input = new OcrInput(@"images\Sindhi.png"))
{
// Perform OCR and get the results
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Optionally, you can do something with the extracted text,
// such as displaying or saving it to a file.
}
' Ensure the IronOCR package and Sindhi language pack are installed
Imports IronOcr
Private Ocr = New IronTesseract With {.Language = OcrLanguage.Sindhi}
' Open an image or PDF document for OCR processing
Using Input = New OcrInput("images\Sindhi.png")
' Perform OCR and get the results
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Optionally, you can do something with the extracted text,
' such as displaying or saving it to a file.
End Using
Neste exemplo de código:
- Configuramos uma instância de
IronTesseract. - Defina o idioma do OCR para sindi.
- Abra um arquivo de imagem contendo texto em sindi.
- Realize OCR na imagem e extraia o texto usando o método
Read. - O texto extraído é armazenado na variável
AllTextpara uso futuro.

