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

Haritha Maturi 5 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
{count} vote

Your answer

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