Azure / Azure/azure-sdk-for-python

Allow to specify translateTextWithinImage in azure.ai.translation.document

Open
#42,606 1 comment 0 reactions 0 assignees View on GitHub
customer-reported Document Intelligence needs-team-attention question Service Attention
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

**Is your feature request related to a problem? Please describe.**
The REST API allow to pass `options` https://learn.microsoft.com/en-us/azure/ai-services/translator/document-translation/how-to-guides/use-rest-api-programmatically?tabs=csharp#translate-text-embedded-within-images-in-documents-

But the Python SDK doesn't implement those parameters.

**Describe the solution you'd like**
```python
from azure.ai.translation.document import DocumentTranslationClient
client = DocumentTranslationClient(...)

client.begin_translation(
source_url="XXX",
target_url="XXX",
target_language="fr",
storage_type="File",
options={
"experimental": False,
"translateTextWithinImage": True,
},
)
```

**Describe alternatives you've considered**
Not using the feature.

**Additional context**
Package `azure-ai-translation-document` in version `1.1.0`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.