@Meekou Thanks, Here is the sample code to get the table.
How to get table value from AnalyzeResult
Meekou
1
Reputation point
I am trying Azure Form Recognizer and its model show correctly.
Then, I try to access my labled value from .net core application.
I have a demo code like below:
using var stream = new FileStream(filePath, FileMode.Open);
var operation = await analyseClient.StartAnalyzeDocumentAsync(modelId, stream);
await operation.WaitForCompletionAsync();
var result = operation.Value;
foreach (AnalyzedDocument document in result.Documents)
{
Console.WriteLine($"Document of type: {document.DocType}");
foreach (KeyValuePair<string, DocumentField> fieldKvp in document.Fields)
{
string fieldName = fieldKvp.Key;
DocumentField field = fieldKvp.Value;
Console.WriteLine($"Field '{fieldName}': ");
Console.WriteLine($" Content: '{field.Content}'");
Console.WriteLine($" Confidence: '{field.Confidence}'");
}
}
I am able to get normal fields with above code.
But for labled table, I can only get filed name, I could not get the value for table.
How to get the table value?
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.