Pacotes de Idiomas Adicionais para OCR

Curtis Chau
Curtis Chau
Updated: 22 de abril de 2026

IronOCR suporta 125 idiomas internacionais, mas apenas inglês está instalado no IronOCR como padrão.

Pacotes de idiomas adicionais podem ser facilmente adicionados ao seu projeto C#, VB ou ASP .NET via NuGet ou como DLLs que podem ser baixadas e adicionadas como referências do projeto.

Exemplos de código

Exemplo de Idioma Internacional

PM > Install-Package IronOcr.Languages.ChineseSimplified

using IronOcr;

var ocr = new IronTesseract();
// Set the OCR to use Chinese Simplified
ocr.Language = OcrLanguage.ChineseSimplified;

using (var input = new OcrInput())
{
    // Add an image to be processed
    input.AddImage("img/chinese.gif");

    // Optional: Enhance the input by deskewing or denoising the image
    // input.Deskew();
    // input.DeNoise();

    // Process the image and retrieve the result
    var result = ocr.Read(input);

    // Store the recognized text in a string
    string testResult = result.Text;

    // Save the recognized text to a file since the console might not display Unicode characters properly
    result.SaveAsTextFile("chinese.txt");
}

Exemplo de Idioma Escrito Verticalmente

Dicionários ajustados para idiomas escritos verticalmente. Use a variante 'Vertical' do OcrLanguage coreano e japonês.

using IronOcr;

var ocr = new IronTesseract();
// Set the OCR to use Japanese Vertical language
ocr.Language = OcrLanguage.JapaneseVertical;

using (var input = new OcrInput(@"images\image.png"))
{
    // Process the image and get the OCR result
    var result = ocr.Read(input);
    // Output the recognized text to the console
    Console.WriteLine(result.Text);
}

Exemplo de Idioma Personalizado

Para usar qualquer arquivo de idioma Tesseract .traineddata que você tenha baixado ou treinado.

using IronOcr;

var ocr = new IronTesseract();

// Use a custom Tesseract language file
ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata");

using (var input = new OcrInput(@"images\image.png"))
{
    // Process the image and get the OCR result
    var result = ocr.Read(input);
    // Output the recognized text to the console
    Console.WriteLine(result.Text);
}

Exemplo de vários idiomas

Mais de um idioma ao mesmo tempo.

PM > Install-Package IronOcr.Languages.Arabic

using IronOcr;

var ocr = new IronTesseract();

// Set the primary language to English
ocr.Language = OcrLanguage.English;
// Add Arabic as a secondary language
ocr.AddSecondaryLanguage(OcrLanguage.Arabic);
// Add any number of languages

using (var input = new OcrInput(@"images\multi-lang.pdf"))
{
    // Process the PDF and get the OCR result
    var result = ocr.Read(input);
    // Output the recognized text to the console
    Console.WriteLine(result.Text);
}

Exemplo de Idioma Mais Rápido

Dicionários ajustados para velocidade. Use a variante 'Fast' de qualquer OcrLanguage.

using IronOcr;

var ocr = new IronTesseract();
// Set the OCR to use the fast variant of English
ocr.Language = OcrLanguage.EnglishFast;

using (var input = new OcrInput(@"images\image.png"))
{
    // Process the image and get the OCR result
    var result = ocr.Read(input);
    // Output the recognized text to the console
    Console.WriteLine(result.Text);
}

Exemplo de Idioma com Maior Precisão Detalhada

Dicionários ajustados para precisão, mas com resultados muito mais lentos. Use a variante 'Best' de qualquer OcrLanguage.

PM > Install-Package IronOcr.Languages.French

using IronOcr;

var ocr = new IronTesseract();
// Set the OCR to use the best variant of French
ocr.Language = OcrLanguage.FrenchBest;

using (var input = new OcrInput(@"images\image.png"))
{
    // Process the image and get the OCR result
    var result = ocr.Read(input);
    // Output the recognized text to the console
    Console.WriteLine(result.Text);
}

Como Instalar Pacotes de Idiomas para OCR

Pacotes adicionais de idiomas para OCR estão disponíveis para download abaixo. Ou

Baixar Pacotes de Idiomas para OCR

Ajuda

Se o idioma que você procura não estiver disponível na lista acima, por favor, entre em contato conosco. Muitos outros idiomas estão disponíveis mediante solicitação.

Prioridade nos recursos de produção é dada aos licenciados do IronOCR, portanto, considere também licenciar o IronOCR para acesso ao pacote de idiomas desejado.

Curtis Chau é bacharel em Ciência da Computação (Universidade Carleton) e se especializa em desenvolvimento front-end, com experiência em Node.js, TypeScript, JavaScript e React. Apaixonado por criar interfaces de usuário intuitivas e esteticamente agradáveis, Curtis gosta de trabalhar com frameworks modernos e criar manuais bem estruturados e visualmente atraentes.

Leia mais

Pronto para começar?

Nuget Downloads 6,357,159Versão:2026.11recém-lançado