Azure Document Intelligence - Can't get High Resolution to Run (SDK Example doesn't work).
Timothy E Hu
20
Reputation points
.NET(v4.0)/Quickstarts/Samples/Sample_AddOnCapabilities_ExtractHighResolution.cs
// Specify DocumentAnalysisFeature.OcrHighResolution as the analysis features
var features = new List<DocumentAnalysisFeature> { DocumentAnalysisFeature.OcrHighResolution };
PromptRequestingDocumentIntelligenceService();
var operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-read", content, features: features);
AnalyzeResult result = operation.Value;
PromptGettingResponseFromDocumentIntelligenceService();
```I tried streaming content of URL but can't get it to work.
I continually get a 404 error using the CODE from your SDK examples.
DocumentIntelligenceClient client = new DocumentIntelligenceClient(new Uri("https://psridocumentintelligence.cognitiveservices.azure.com/"), credential);
//var client = new DocumentIntelligenceClient(new Uri(this.docIntelligenceEndPoint), new AzureKeyCredential(this.docIntelligenceApiKey));
var content = new AnalyzeDocumentContent();
if (!string.IsNullOrWhiteSpace(path))
{
#region Option 1: Analyze a sample document file from local file system.
var docFileBytes = File.ReadAllBytes(path);
content.Base64Source = BinaryData.FromBytes(docFileBytes);
#endregion
}
else if (!string.IsNullOrWhiteSpace(url))
{
#region Option 2: Analyze a sample document file from url.
var uriSource = new Uri(url);
content.UrlSource = uriSource;
#endregion
}
// Specify DocumentAnalysisFeature.OcrHighResolution as the analysis features
var features = new List<DocumentAnalysisFeature> { DocumentAnalysisFeature.OcrHighResolution };
PromptRequestingDocumentIntelligenceService();
var operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-read", content, features: features);
AnalyzeResult result = operation.Value;

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
Sign in to answer