ใบแจ้งหนี้เป็นข้อความสำหรับ .NET

Introduction to Invoice to Text สําหรับ .NET

Invoice to Text for .NET เป็นปลั๊กอินที่ช่วยให้ผู้พัฒนาสามารถ استخراجข้อความจากบัญชีและแปลงเป็นรูปแบบที่สามารถแก้ไขได้ คู่มือนี้จะช่วยให้คุณผ่านคุณสมบัติที่มีอยู่วิธีการเริ่มต้นและให้ตัวอย่างรหัสใน C#

รูปแบบไฟล์ที่รองรับ

ปลั๊กอินสนับสนุนการสกัดข้อความจากรูปแบบไฟล์ภาพและเอกสารต่างๆรวมถึง:

  • JPEG
  • PNG
  • GIF
  • BMP
  • TIFF

การดึงข้อความจากบัญชี

เพื่อ استخراجข้อความจากบัญชีคุณสามารถใช้ตัวอย่างรหัสต่อไปนี้:

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 รายละเอียด .

 แบบไทย