@f-ang If you are looking to analyze multiple documents in a single request, then it is currently not possible to pass multiple URLs in a single request. You can however use the SDK and REST API to pass the base64source of a local image using the FR SDK client. You can refer this thread I answered recently on how to use the REST API with the base64source.
For the SDK there are several examples on using the analyze operation with local images in this repo. You can loop through images in a local directory and pass them in every request to get the response by polling and printing the result.
For example:
from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer import DocumentAnalysisClient
endpoint = "AZURE_FORM_RECOGNIZER_ENDPOINT"
key = "AZURE_FORM_RECOGNIZER_KEY"
document_analysis_client = DocumentAnalysisClient(endpoint=endpoint, credential=AzureKeyCredential(key))
path_to_sample_documents = <path to document>
with open(path_to_sample_documents, "rb") as f:
poller = document_analysis_client.begin_analyze_document(
"prebuilt-layout", document=f
)
result = poller.result()
If an answer is helpful, please click on or upvote
which might help other community members reading this thread.