Azure / Azure/azure-sdk-for-python
Allow to specify translateTextWithinImage in azure.ai.translation.document
- 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
Assessment
This issue has not been assessed yet.