Cebuano 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 cebuano. Version avancée de Tesseract, conçue exclusivement pour les développeurs .NET, elle surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.
Contenu de IronOcr.Languages.Cebuano
Ce package contient 46 langues OCR for .NET :
- Cebuano
- CebuanoBest
- CebuanoFast
Télécharger
Pack linguistique cebuano [Bisaya]
Installation
La première chose à faire est d'installer notre package OCR cebuano sur votre projet .NET.
Exemple de code
Cet exemple de code C# lit du texte en cebuano à partir d'une image ou d'un document PDF.
// Install the IronOCR Cebuano language package via NuGet package manager
// PM> Install-Package IronOcr.Languages.Cebuano
using IronOcr;
class Program
{
static void Main()
{
// Instantiate an IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano;
// Define the input source containing the image or PDF with Cebuano text
using (var Input = new OcrInput(@"images\Cebuano.png"))
{
// Perform OCR to read the text from the input source
var Result = Ocr.Read(Input);
// Extract and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}' Install the IronOCR Cebuano language package via NuGet package manager
' PM> Install-Package IronOcr.Languages.Cebuano
Imports IronOcr
Module Program
Sub Main()
' Instantiate an IronTesseract object
Dim Ocr As New IronTesseract()
' Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano
' Define the input source containing the image or PDF with Cebuano text
Using Input As New OcrInput("images\Cebuano.png")
' Perform OCR to read the text from the input source
Dim Result = Ocr.Read(Input)
' Extract and display the recognized text
Dim AllText = Result.Text
Console.WriteLine(AllText)
End Using
End Sub
End ModuleL'extrait de code ci-dessus montre comment utiliser IronOCR pour lire du texte cebuano à partir d'une image en utilisant C# et .NET. Il commence par configurer le moteur OCR et spécifier la langue cebuano, puis traite un fichier image et affiche le texte extrait. Assurez-vous que le chemin d'accès à l'image est correctement spécifié pour l'environnement de votre projet.

Curtis Chau détient un baccalauréat en informatique (Université de Carleton) et se spécialise dans le développement front-end avec expertise en Node.js, TypeScript, JavaScript et React. Passionné par la création d'interfaces utilisateur intuitives et esthétiquement plaisantes, Curtis aime travailler avec des frameworks modernes et créer des manuels bien structurés et visuellement attrayants.