.NET에 대한 텍스트 청구서
.NET을 위한 텍스트에 대한 청구서 입력
Invoice to Text for .NET은 개발자가 수수료에서 텍스트를 추출하고 편집 가능한 형식으로 변환 할 수있는 플러그인입니다.이 가이드는 사용 가능한 기능, 시작하는 방법을 통과하고 C#에서 코드 예를 제공합니다.
지원되는 파일 형식
플러그인은 다음을 포함하여 다양한 이미지 및 문서 파일 형식에서 텍스트 추출을 지원합니다 :
- JPEG
- PNG
- GIF
- BMP
- 타이프
청구서에서 텍스트 추출
청구서에서 텍스트를 추출하려면 다음 코드 예제를 사용할 수 있습니다 :
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 참조
사용 가능한 클래스, 방법 및 속성에 대한 자세한 내용은 다음과 같이 참조하십시오. API 참조 문서 .