How to use azure.ai.formrecognizer for Disconnected containers

Oleg Ponomarev 0 Reputation points
2023-09-01T12:26:54.5633333+00:00

I am running the Azure Document Intelligence (ADI) on my private cloud instance in a container mode.

I know how to use public ADI to parse my PDF-file.

I just need to use this code:

from azure.ai.formrecognizer import DocumentAnalysisClient
from azure.core.credentials import AzureKeyCredential

endpoint = ""
key = ""
document_analysis_client = DocumentAnalysisClient(endpoint=endpoint, credential=AzureKeyCredential(key))
with open("MyPDF.pdf", "rb") as f:
    poller = document_analysis_client.begin_analyze_document(
        "prebuilt-document", document=f, locale="en-US"
    )
result = poller.result()

The question is - how to call in the same way my ADI instance?

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