Cherokee OCR in C
IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont le cherokee.
Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.
Contenu de IronOcr.Languages.Cherokee
Ce package contient 120 langues OCR for .NET :
- Alphabet Cherokee
- Meilleur alphabet cherokee
- Alphabet Cherokee Rapide
- Cherokee
- CherokeeBest
- CherokeeFast
Télécharger
Pack de langue cherokee [ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ]
Installation
La première chose à faire est d'installer notre package Cherokee OCR sur votre projet .NET.
Install-Package IronOcr.Languages.Cherokee
Exemple de code
Cet exemple de code C# lit du texte cherokee à partir d'une image ou d'un document PDF.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the language for OCR to Cherokee
Ocr.Language = OcrLanguage.Cherokee;
// Use OcrInput to specify the image or PDF to be read
using (var Input = new OcrInput(@"images\Cherokee.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Display the recognized text
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the language for OCR to Cherokee
Ocr.Language = OcrLanguage.Cherokee;
// Use OcrInput to specify the image or PDF to be read
using (var Input = new OcrInput(@"images\Cherokee.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Display the recognized text
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create an instance of the IronTesseract class
Dim Ocr = New IronTesseract()
' Set the language for OCR to Cherokee
Ocr.Language = OcrLanguage.Cherokee
' Use OcrInput to specify the image or PDF to be read
Using Input = New OcrInput("images\Cherokee.png")
' Perform OCR on the input document
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Display the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
Voici une brève description du fonctionnement du code :
- IronTesseract : Une instance de la classe IronTesseract est créée pour gérer les opérations OCR.
- OcrLanguage.Cherokee : La langue est définie sur Cherokee à l'aide de la propriété
OcrLanguage.Cherokee, qui indique au moteur OCR de reconnaître le texte en Cherokee. - OcrInput : Un chemin d'entrée est fourni à la classe
OcrInputoù se trouve l'image ou le document PDF. - Ocr.Read : La méthode
Readest appelée sur l'objet OCR, en passant l'entrée. Il effectue le processus de reconnaissance optique de caractères (OCR). - Result.Text : Extrait le texte reconnu du résultat et le stocke dans la variable
AllTextpour une utilisation ultérieure. - Sortie console : Le texte reconnu est affiché dans la console.

