Open nk-alex opened 5 months ago
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Found out the code posted on https://documentintelligence.ai.azure.com as sample is wrong. Instead I should be using
Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(
WaitUntil.Completed,
"prebuilt-receipt",
new AnalyzeDocumentContent
{
Base64Source = new BinaryData(dbScanToWs.RelatedPDFs[i])
},
queryFields: new List<string> { "TaxDetails_TaxPercentage", "TaxDetails_NetAmount" },
features: new List<DocumentAnalysisFeature> { DocumentAnalysisFeature.QueryFields });
AnalyzeResult receipts = operation.Value;
But I'm not able to make the model return TaxPercentage from TaxDetails object. Is there any way to achieve this?
Library name and version
Azure.AI.FormRecognizer 4.1.0
Query/Question
I'm following the code you have posed on https://documentintelligence.ai.azure.com
I'm trying to create a simple console application to read an image from disk and send it to your services and get back the document analysis.
But this return me some Fields I don't need. And doesn't return some other ones I need. Is it possible to make the model return the expected Fields only? In the web posted above, I can achieve that by using Quey fields.
Environment
Azure.AI.FormRecognizer 4.1.0
.NET SDK: Version: 8.0.204 Commit: c338c7548c Workload version: 8.0.200-manifests.c4df6daf
Runtime Environment: OS Name: Windows OS Version: 10.0.22631 OS Platform: Windows RID: win-x64
Microsoft Visual Studio Enterprise 2022 (17.9.6)