Open dccrain opened 4 days ago
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Hello @dccrain,
This feature is currently supported by the SDK version you're using. The following snippet illustrates how to use it:
// Specify the output options to enable figure extraction.
IEnumerable<AnalyzeOutputOption> outputOptions = new[] { AnalyzeOutputOption.Figures };
Operation<AnalyzeResult> analyzeOperation = client.AnalyzeDocument(WaitUntil.Completed, <model-id>, <content>, output: outputOptions);
AnalyzeResult result = analyzeOperation.Value;
// All extracted figures should be listed in 'result.Figures'. Suppose we want to download the figure at index 1:
string figureId = result.Figures[1].Id;
// Get a BinaryData instance with the bytes of the figure.
Response<BinaryData> response = client.GetAnalyzeResultFigure(<model-id>, new Guid(analyzeOperation.Id), figureId);
BinaryData data = response.Value;
Hi @dccrain. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
Library name and version
Azure.AI.DocumentIntelligence 1.0.0-beta.3
Query/Question
Currently in Document Intelligence Studio, once a document is analyzed you can download figures from the document as .png files
Is this functionality supported by the latest version of this package? If not is this something that is planned for future support? I would like to be able to send a document and extract the images from it for direct handling and use.
Environment
No response