Class AzureFormRecognizerBroker
- Assembly
- arolariu.Backend.Domain.Invoices.dll
The AzureFormRecognizerBroker class. This class operates with the AnalyzedDocument type, from the Azure.AI.FormRecognizer.DocumentAnalysis namespace. This type is the result of the invoice analysis operation. The namespace Azure.AI.FormRecognizer.DocumentAnalysis is part of the Azure.AI.FormRecognizer package. This package is used to interact with the Azure Form Recognizer service.
public sealed class AzureFormRecognizerBroker : IFormRecognizerBroker
- Inheritance
-
AzureFormRecognizerBroker
- Implements
- Inherited Members
Constructors
AzureFormRecognizerBroker(IOptionsMonitor<AzureOptions>)
Constructor.
public AzureFormRecognizerBroker(IOptionsMonitor<AzureOptions> options)
Parameters
options
IOptionsMonitor<AzureOptions>
Fields
client
private readonly DocumentAnalysisClient client
Field Value
Methods
IdentifyMerchant(AnalyzedDocument)
internal static Merchant IdentifyMerchant(AnalyzedDocument photo)
Parameters
photo
AnalyzedDocument
Returns
IdentifyPaymentInformation(AnalyzedDocument)
internal static PaymentInformation IdentifyPaymentInformation(AnalyzedDocument photo)
Parameters
photo
AnalyzedDocument
Returns
IdentifyProducts(AnalyzedDocument)
internal static ICollection<Product> IdentifyProducts(AnalyzedDocument photo)
Parameters
photo
AnalyzedDocument
Returns
PerformOcrAnalysisOnSingleInvoice(Invoice, AnalysisOptions)
Sends a single invoice to analysis.
public ValueTask<Invoice> PerformOcrAnalysisOnSingleInvoice(Invoice invoice, AnalysisOptions options)
Parameters
invoice
Invoiceoptions
AnalysisOptions
Returns
TransformOcrDataToInvoiceData(AnalyzedDocument, Invoice)
private static Invoice TransformOcrDataToInvoiceData(AnalyzedDocument ocrData, Invoice invoice)
Parameters
ocrData
AnalyzedDocumentinvoice
Invoice