.NET için Fatura Metni
.NET için Faturaya Giriş
Invoice to Text for .NET, geliştiricilerin faturadan metni çıkarmalarını ve bunları düzenlenebilir biçimlere dönüştürmelerini sağlayan bir eklenti.Bu kılavuz size mevcut özellikleri, nasıl başlatılacağını ve C#‘da kod örneklerini sağlayacaktır.
Desteklenen Dosya Biçimleri
Plugin, çeşitli görüntü ve belge dosya biçimlerinden metin çıkarmayı destekler, bunlar da dahil olmak üzere:
- JPEG
- PNG
- GIF
- BMP
- TIFF
Faturadan Yazı Çekme
Bir faturadan metin çıkarmak için, aşağıdaki kod örneğini kullanabilirsiniz:
Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add images to OcrInput object
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("source1.png");
input.Add("source2.jpg");
// Set recognition language
Aspose.OCR.InvoiceRecognitionSettings recognitionSettings = new Aspose.OCR.InvoiceRecognitionSettings();
recognitionSettings.Language = Aspose.OCR.Language.Latin;
// Recognize image
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.RecognizeInvoice(input, recognitionSettings);
foreach(Aspose.OCR.RecognitionResult result in results)
{
Console.WriteLine(result.RecognitionText);
}
//save as a file
results[0].Save("result.txt", Aspose.OCR.SaveFormat.Text);
//or
Aspose.OCR.AsposeOcr.SaveMultipageDocument("result.pdf", Aspose.OCR.SaveFormat.Pdf, results);
API Referansları
Mevcut sınıflar, yöntemler ve özellikler hakkında daha fazla bilgi için lütfen API Referans Belgeleri .