You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/translator/document-translation/how-to-guides/use-rest-api-programmatically.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -209,6 +209,29 @@ The following headers are included with each Document Translation API request:
209
209
}
210
210
```
211
211
212
+
### 🆕 Translate text embedded in images within documents
213
+
214
+
> [!Note]
215
+
>
216
+
> * This feature is optional and must be enabled for each translation request.
217
+
> * Enabling this feature will incur additional costs based on usage. For more information, *see*[Azure AI Vision pricing](https://azure.microsoft.com/pricing/details/cognitive-services/computer-vision/)
218
+
> * This feature is currently available only with the Batch Document Translation API.
219
+
> * The Supported file format is `.docx` only.
220
+
> * An Azure AI Services resource (not the standalone Translator resource) is required to use this feature.
221
+
222
+
### Request configuration
223
+
224
+
* Use the optional `translateTextWithinImage` parameter in the `options` field
225
+
226
+
* Data type: Boolean (`true` or `false`)
227
+
* Default Boolean setting is `false`. Set the option to `true` to enable image text translation.
228
+
229
+
***Response Details**. When the feature is enabled, added image processing information is included with the response:
230
+
231
+
***`totalImageScansSucceeded`**. The number of successfully translated image scans.
232
+
233
+
***`totalImageScansFailed`**. The number of image scans that failed processing.
234
+
212
235
## Use code to submit Document Translation requests
0 commit comments