OCR financier en C# et .NET
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 pack financier.
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 d'IronOcr.Languages.Financial
Ce package contient 16 langues OCR pour .NET :
- Financial
Télécharger
Pack linguistique financier [Financial]
Installation
La première chose à faire est d'installer notre package OCR financier sur votre projet .NET.
Exemple de code
Cet exemple de code C# lit du texte financier à partir d'une image ou d'un document PDF.
// Import the IronOcr namespace
using IronOcr;
// Instantiate the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Financial
Ocr.Language = OcrLanguage.Financial;
// Create an OCR input object, specifying the path to the image or PDF
using (var Input = new OcrInput(@"images\Financial.png"))
{
// Perform OCR to read text from the input
var Result = Ocr.Read(Input);
// Retrieve the extracted text
var AllText = Result.Text;
}' Import the IronOcr namespace
Imports IronOcr
' Instantiate the IronTesseract OCR engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Financial
Ocr.Language = OcrLanguage.Financial
' Create an OCR input object, specifying the path to the image or PDF
Using Input As New OcrInput("images\Financial.png")
' Perform OCR to read text from the input
Dim Result = Ocr.Read(Input)
' Retrieve the extracted text
Dim AllText = Result.Text
End Using' Import the IronOcr namespace
Imports IronOcr
' Instantiate the IronTesseract OCR engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Financial
Ocr.Language = OcrLanguage.Financial
' Create an OCR input object, specifying the path to the image or PDF
Using Input As New OcrInput("images\Financial.png")
' Perform OCR to read text from the input
Dim Result = Ocr.Read(Input)
' Retrieve the extracted text
Dim AllText = Result.Text
End UsingExplication :
- Utilisation d'IronOCR : Ce namespace inclut toutes les classes nécessaires pour le processus OCR.
- Classe IronTesseract : C'est la classe principale permettant les tâches OCR.
- Paramètre de langue : Régler la langue sur
Financialpermet au moteur OCR de reconnaître la terminologie financière. - Classe OcrInput : Elle prend un chemin de fichier qui spécifie l'image ou le fichier PDF à traiter.
- Méthode Read : Exécutée sur
Ocr.Read(Input), elle traite l'image pour récupérer le texte en fonction des réglages d'entrée et de langue fournis. - Result.Text : Il stocke le texte reconnu à partir de l'image ou du PDF.
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.