Table of Contents

Class AzureFormRecognizerBroker

Namespace
arolariu.Backend.Domain.Invoices.Brokers.AnalysisBrokers.IdentifierBroker
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

DocumentAnalysisClient

Methods

IdentifyMerchant(AnalyzedDocument)

internal static Merchant IdentifyMerchant(AnalyzedDocument photo)

Parameters

photo AnalyzedDocument

Returns

Merchant

IdentifyPaymentInformation(AnalyzedDocument)

internal static PaymentInformation IdentifyPaymentInformation(AnalyzedDocument photo)

Parameters

photo AnalyzedDocument

Returns

PaymentInformation

IdentifyProducts(AnalyzedDocument)

internal static ICollection<Product> IdentifyProducts(AnalyzedDocument photo)

Parameters

photo AnalyzedDocument

Returns

ICollection<Product>

PerformOcrAnalysisOnSingleInvoice(Invoice, AnalysisOptions)

Sends a single invoice to analysis.

public ValueTask<Invoice> PerformOcrAnalysisOnSingleInvoice(Invoice invoice, AnalysisOptions options)

Parameters

invoice Invoice
options AnalysisOptions

Returns

ValueTask<Invoice>

TransformOcrDataToInvoiceData(AnalyzedDocument, Invoice)

private static Invoice TransformOcrDataToInvoiceData(AnalyzedDocument ocrData, Invoice invoice)

Parameters

ocrData AnalyzedDocument
invoice Invoice

Returns

Invoice