How to extract images from a document using Azure Document Intelligence?

Haritha Maturi 0 Reputation points
2024-09-18T07:09:38.02+00:00

As per the documentation for prebuilt-layout model they are saying
User's image

But I couldn't understand how exactly I can access the cropped images when I trying to do it in python
like below:
result = documentintelligenceclient.begin_analyze_document( "prebuilt-layout",AnalyzeDocumentRequest(bytes_source=document),output=['figures'])

If I use UI I can see the download option to download the images
User's image

But I want the images accessible while doing things in python either the image itself or the bytes of image would also help.

Please help me.
Thanks Haritha

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,630 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.