@alicloud/aidge20260428 3.1.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +89 -68
- package/dist/client.js +122 -68
- package/dist/client.js.map +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +11 -8
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +16 -24
- package/dist/models/ImageTranslationProResponseBody.js +0 -2
- package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationStandardRequest.d.ts +6 -9
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +6 -14
- package/dist/models/ImageTranslationStandardResponseBody.js +0 -2
- package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +47 -0
- package/dist/models/MerchandisePlacementDetectionRequest.js +64 -0
- package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionResponse.d.ts +19 -0
- package/dist/models/MerchandisePlacementDetectionResponse.js +69 -0
- package/dist/models/MerchandisePlacementDetectionResponse.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +210 -0
- package/dist/models/MerchandisePlacementDetectionResponseBody.js +182 -0
- package/dist/models/MerchandisePlacementDetectionResponseBody.js.map +1 -0
- package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +3 -3
- package/dist/models/TextTranslateRequest.d.ts +7 -7
- package/dist/models/TextTranslateShrinkRequest.d.ts +7 -7
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +17 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +128 -68
- package/src/models/ImageTranslationProRequest.ts +11 -8
- package/src/models/ImageTranslationProResponseBody.ts +16 -26
- package/src/models/ImageTranslationStandardRequest.ts +6 -9
- package/src/models/ImageTranslationStandardResponseBody.ts +6 -16
- package/src/models/MerchandisePlacementDetectionRequest.ts +66 -0
- package/src/models/MerchandisePlacementDetectionResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +309 -0
- package/src/models/QueryAsyncTaskResultResponseBody.ts +3 -3
- package/src/models/TextTranslateRequest.ts +7 -7
- package/src/models/TextTranslateShrinkRequest.ts +7 -7
- package/src/models/model.ts +7 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1323,18 +1323,12 @@ export default class Client extends OpenApi {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
1325
|
/**
|
|
1326
|
-
* Translates images using the Pro edition, which
|
|
1326
|
+
* Translates text in e-commerce images using the Pro edition, which integrates multimodal foundation model technology for more accurate image understanding and significantly improved translation quality.
|
|
1327
1327
|
*
|
|
1328
1328
|
* @remarks
|
|
1329
|
-
* ## Product Introduction
|
|
1330
|
-
*
|
|
1331
|
-
* ##
|
|
1332
|
-
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1333
|
-
* ## Features
|
|
1334
|
-
* - **Product subject protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded information like product names.
|
|
1335
|
-
* - **Post-translation editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
|
|
1336
|
-
* - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
|
|
1337
|
-
* - **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
1329
|
+
* ## Product Introduction.
|
|
1330
|
+
* ## Scenarios.
|
|
1331
|
+
* ## Features.
|
|
1338
1332
|
*
|
|
1339
1333
|
* @param request - ImageTranslationProRequest
|
|
1340
1334
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1393,18 +1387,12 @@ export default class Client extends OpenApi {
|
|
|
1393
1387
|
}
|
|
1394
1388
|
|
|
1395
1389
|
/**
|
|
1396
|
-
* Translates images using the Pro edition, which
|
|
1390
|
+
* Translates text in e-commerce images using the Pro edition, which integrates multimodal foundation model technology for more accurate image understanding and significantly improved translation quality.
|
|
1397
1391
|
*
|
|
1398
1392
|
* @remarks
|
|
1399
|
-
* ## Product Introduction
|
|
1400
|
-
*
|
|
1401
|
-
* ##
|
|
1402
|
-
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1403
|
-
* ## Features
|
|
1404
|
-
* - **Product subject protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded information like product names.
|
|
1405
|
-
* - **Post-translation editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
|
|
1406
|
-
* - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
|
|
1407
|
-
* - **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
1393
|
+
* ## Product Introduction.
|
|
1394
|
+
* ## Scenarios.
|
|
1395
|
+
* ## Features.
|
|
1408
1396
|
*
|
|
1409
1397
|
* @param request - ImageTranslationProRequest
|
|
1410
1398
|
* @returns ImageTranslationProResponse
|
|
@@ -1415,21 +1403,12 @@ export default class Client extends OpenApi {
|
|
|
1415
1403
|
}
|
|
1416
1404
|
|
|
1417
1405
|
/**
|
|
1418
|
-
*
|
|
1406
|
+
* Translates text in images with support for over 100 language pairs (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The product also returns layer information such as text position, font, and color within images, facilitating integration with image editors for secondary editing of translation results.
|
|
1419
1407
|
*
|
|
1420
1408
|
* @remarks
|
|
1421
|
-
* # 1. Product Introduction
|
|
1422
|
-
*
|
|
1423
|
-
* #
|
|
1424
|
-
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1425
|
-
* # 3. Features
|
|
1426
|
-
* * **Product subject information protection**: Allows you to choose whether to translate text on the product subject. This helps protect subject information from being translated, avoiding translation of embedded information such as product names.
|
|
1427
|
-
*
|
|
1428
|
-
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1429
|
-
*
|
|
1430
|
-
* * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color. This can be used to connect to an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
|
|
1431
|
-
*
|
|
1432
|
-
* * **Translation intervention support**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand word protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1409
|
+
* # 1. Product Introduction.
|
|
1410
|
+
* # 2. Common scenarios.
|
|
1411
|
+
* # 3. Features.
|
|
1433
1412
|
*
|
|
1434
1413
|
* @param request - ImageTranslationStandardRequest
|
|
1435
1414
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1484,21 +1463,12 @@ export default class Client extends OpenApi {
|
|
|
1484
1463
|
}
|
|
1485
1464
|
|
|
1486
1465
|
/**
|
|
1487
|
-
*
|
|
1466
|
+
* Translates text in images with support for over 100 language pairs (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The product also returns layer information such as text position, font, and color within images, facilitating integration with image editors for secondary editing of translation results.
|
|
1488
1467
|
*
|
|
1489
1468
|
* @remarks
|
|
1490
|
-
* # 1. Product Introduction
|
|
1491
|
-
*
|
|
1492
|
-
* #
|
|
1493
|
-
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1494
|
-
* # 3. Features
|
|
1495
|
-
* * **Product subject information protection**: Allows you to choose whether to translate text on the product subject. This helps protect subject information from being translated, avoiding translation of embedded information such as product names.
|
|
1496
|
-
*
|
|
1497
|
-
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1498
|
-
*
|
|
1499
|
-
* * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color. This can be used to connect to an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
|
|
1500
|
-
*
|
|
1501
|
-
* * **Translation intervention support**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand word protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1469
|
+
* # 1. Product Introduction.
|
|
1470
|
+
* # 2. Common scenarios.
|
|
1471
|
+
* # 3. Features.
|
|
1502
1472
|
*
|
|
1503
1473
|
* @param request - ImageTranslationStandardRequest
|
|
1504
1474
|
* @returns ImageTranslationStandardResponse
|
|
@@ -1660,6 +1630,96 @@ export default class Client extends OpenApi {
|
|
|
1660
1630
|
return await this.materialInspectionWithOptions(request, runtime);
|
|
1661
1631
|
}
|
|
1662
1632
|
|
|
1633
|
+
/**
|
|
1634
|
+
* Detects and identifies products displayed on store shelves or floor stacks by combining a multimodal large language model (MLLM) with visual vector recall, targeting shelf and floor-stack inspection scenarios in offline retail and channel stores. The service first uses an MLLM to detect bounding boxes and preliminary names for each product in a store photo, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is suitable for large-scale, high-concurrency visual recognition pipelines such as remote auditing of in-store displays by headquarters, SKU distribution verification, and display compliance inspection.
|
|
1635
|
+
*
|
|
1636
|
+
* @remarks
|
|
1637
|
+
* ## **Product Introduction**
|
|
1638
|
+
* Display detection is an intelligent store product display recognition capability built on a multimodal large language model (MLLM) combined with visual vector recall. It targets shelf and floor-stack display inspection scenarios in offline retail and channel stores. For store photos of shelves or floor stacks, the service first uses an MLLM to detect the bounding box and preliminary name for each product, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is suitable for large-scale, high-concurrency visual recognition pipelines such as remote auditing of in-store displays by headquarters, SKU distribution verification, and display compliance inspection.
|
|
1639
|
+
* ## **Scenarios**
|
|
1640
|
+
* - **Shelf/floor-stack display recognition and inventory**: Identifies each product in a shelf or floor-stack image, matches it to the customer\\"s SKU library, and outputs a per-product list (product name + position + similarity score), replacing manual counting.
|
|
1641
|
+
*
|
|
1642
|
+
* - **Distribution verification/SKU compliance**: Verifies whether stores display specified SKUs as required by headquarters and whether out-of-stock or misplaced items exist, supporting batch automated verification during promotions or new product launches.
|
|
1643
|
+
*
|
|
1644
|
+
* - **Customer-specific SKU library**: Customers upload their own standard SKU images to build a dedicated vector library (isolated by `RagId`). During recognition, retrieval is performed only within that customer\\"s library, ensuring name accuracy and data isolation between customers.
|
|
1645
|
+
* ## **Features**
|
|
1646
|
+
* - **Two-stage detection + retrieval collaboration**: The MLLM detects each product\\"s bounding box and preliminary name across the entire image (semantic-level understanding, adapted for dense displays and partial occlusion). Then visual embedding vectors perform similarity retrieval within the customer\\"s SKU library, overriding the preliminary name with the top-1 precise SKU name to balance recall rate and name accuracy.
|
|
1647
|
+
*
|
|
1648
|
+
* - **Isolated retrieval with dedicated vector libraries**: A dedicated SKU vector library is maintained for each customer by `RagId`. Recognition retrieves only within the corresponding library, ensuring strict isolation between customers. Newly added or updated SKUs take effect in real time.
|
|
1649
|
+
*
|
|
1650
|
+
* - **Per-product structured output**: Output is unified as `Result.Items[]`, with each product independently providing a bounding box, recalled SKU name, SKU code, and similarity score. This facilitates direct integration with downstream inventory/verification systems and supports case-level manual review and traceability.
|
|
1651
|
+
*
|
|
1652
|
+
* - **Supported input formats**: Currently supports image URLs accessible via the public network or OSS. A single shelf or floor-stack image is sufficient for recognition, and the output structure is consistent.
|
|
1653
|
+
*
|
|
1654
|
+
* @param request - MerchandisePlacementDetectionRequest
|
|
1655
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1656
|
+
* @returns MerchandisePlacementDetectionResponse
|
|
1657
|
+
*/
|
|
1658
|
+
async merchandisePlacementDetectionWithOptions(request: $_model.MerchandisePlacementDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MerchandisePlacementDetectionResponse> {
|
|
1659
|
+
request.validate();
|
|
1660
|
+
let query = { };
|
|
1661
|
+
if (!$dara.isNull(request.apiId)) {
|
|
1662
|
+
query["ApiId"] = request.apiId;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1666
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
if (!$dara.isNull(request.ragId)) {
|
|
1670
|
+
query["RagId"] = request.ragId;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
if (!$dara.isNull(request.type)) {
|
|
1674
|
+
query["Type"] = request.type;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1678
|
+
query: OpenApiUtil.query(query),
|
|
1679
|
+
});
|
|
1680
|
+
let params = new $OpenApiUtil.Params({
|
|
1681
|
+
action: "MerchandisePlacementDetection",
|
|
1682
|
+
version: "2026-04-28",
|
|
1683
|
+
protocol: "HTTPS",
|
|
1684
|
+
pathname: "/",
|
|
1685
|
+
method: "POST",
|
|
1686
|
+
authType: "AK",
|
|
1687
|
+
style: "RPC",
|
|
1688
|
+
reqBodyType: "formData",
|
|
1689
|
+
bodyType: "json",
|
|
1690
|
+
});
|
|
1691
|
+
return $dara.cast<$_model.MerchandisePlacementDetectionResponse>(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionResponse({}));
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Detects and identifies products displayed on store shelves or floor stacks by combining a multimodal large language model (MLLM) with visual vector recall, targeting shelf and floor-stack inspection scenarios in offline retail and channel stores. The service first uses an MLLM to detect bounding boxes and preliminary names for each product in a store photo, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is suitable for large-scale, high-concurrency visual recognition pipelines such as remote auditing of in-store displays by headquarters, SKU distribution verification, and display compliance inspection.
|
|
1696
|
+
*
|
|
1697
|
+
* @remarks
|
|
1698
|
+
* ## **Product Introduction**
|
|
1699
|
+
* Display detection is an intelligent store product display recognition capability built on a multimodal large language model (MLLM) combined with visual vector recall. It targets shelf and floor-stack display inspection scenarios in offline retail and channel stores. For store photos of shelves or floor stacks, the service first uses an MLLM to detect the bounding box and preliminary name for each product, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is suitable for large-scale, high-concurrency visual recognition pipelines such as remote auditing of in-store displays by headquarters, SKU distribution verification, and display compliance inspection.
|
|
1700
|
+
* ## **Scenarios**
|
|
1701
|
+
* - **Shelf/floor-stack display recognition and inventory**: Identifies each product in a shelf or floor-stack image, matches it to the customer\\"s SKU library, and outputs a per-product list (product name + position + similarity score), replacing manual counting.
|
|
1702
|
+
*
|
|
1703
|
+
* - **Distribution verification/SKU compliance**: Verifies whether stores display specified SKUs as required by headquarters and whether out-of-stock or misplaced items exist, supporting batch automated verification during promotions or new product launches.
|
|
1704
|
+
*
|
|
1705
|
+
* - **Customer-specific SKU library**: Customers upload their own standard SKU images to build a dedicated vector library (isolated by `RagId`). During recognition, retrieval is performed only within that customer\\"s library, ensuring name accuracy and data isolation between customers.
|
|
1706
|
+
* ## **Features**
|
|
1707
|
+
* - **Two-stage detection + retrieval collaboration**: The MLLM detects each product\\"s bounding box and preliminary name across the entire image (semantic-level understanding, adapted for dense displays and partial occlusion). Then visual embedding vectors perform similarity retrieval within the customer\\"s SKU library, overriding the preliminary name with the top-1 precise SKU name to balance recall rate and name accuracy.
|
|
1708
|
+
*
|
|
1709
|
+
* - **Isolated retrieval with dedicated vector libraries**: A dedicated SKU vector library is maintained for each customer by `RagId`. Recognition retrieves only within the corresponding library, ensuring strict isolation between customers. Newly added or updated SKUs take effect in real time.
|
|
1710
|
+
*
|
|
1711
|
+
* - **Per-product structured output**: Output is unified as `Result.Items[]`, with each product independently providing a bounding box, recalled SKU name, SKU code, and similarity score. This facilitates direct integration with downstream inventory/verification systems and supports case-level manual review and traceability.
|
|
1712
|
+
*
|
|
1713
|
+
* - **Supported input formats**: Currently supports image URLs accessible via the public network or OSS. A single shelf or floor-stack image is sufficient for recognition, and the output structure is consistent.
|
|
1714
|
+
*
|
|
1715
|
+
* @param request - MerchandisePlacementDetectionRequest
|
|
1716
|
+
* @returns MerchandisePlacementDetectionResponse
|
|
1717
|
+
*/
|
|
1718
|
+
async merchandisePlacementDetection(request: $_model.MerchandisePlacementDetectionRequest): Promise<$_model.MerchandisePlacementDetectionResponse> {
|
|
1719
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1720
|
+
return await this.merchandisePlacementDetectionWithOptions(request, runtime);
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1663
1723
|
/**
|
|
1664
1724
|
* An intelligent logistics parcel auditing product built on the synergy of Multimodal Large Language Models (MLLM) and specialized vision algorithms, designed for automated compliance review in the "piece-weight-dimension" stage of e-commerce logistics. The product performs structured auditing across multiple dimensions including bounding box validity, bounding box fit accuracy, and foreign object interference on parcels placed on scanning platforms. It supports different hardware acquisition scenarios such as white background boards and green background boards, and outputs Boolean audit conclusions with Chinese reason descriptions that can be directly integrated into business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
|
|
1665
1725
|
*
|
|
@@ -1737,10 +1797,10 @@ export default class Client extends OpenApi {
|
|
|
1737
1797
|
}
|
|
1738
1798
|
|
|
1739
1799
|
/**
|
|
1740
|
-
* API name on the POP gateway
|
|
1800
|
+
* Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1741
1801
|
*
|
|
1742
1802
|
* @remarks
|
|
1743
|
-
* API name on the POP gateway
|
|
1803
|
+
* The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1744
1804
|
*
|
|
1745
1805
|
* @param request - QueryAsyncTaskResultRequest
|
|
1746
1806
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1771,10 +1831,10 @@ export default class Client extends OpenApi {
|
|
|
1771
1831
|
}
|
|
1772
1832
|
|
|
1773
1833
|
/**
|
|
1774
|
-
* API name on the POP gateway
|
|
1834
|
+
* Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1775
1835
|
*
|
|
1776
1836
|
* @remarks
|
|
1777
|
-
* API name on the POP gateway
|
|
1837
|
+
* The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1778
1838
|
*
|
|
1779
1839
|
* @param request - QueryAsyncTaskResultRequest
|
|
1780
1840
|
* @returns QueryAsyncTaskResultResponse
|
|
@@ -2241,28 +2301,28 @@ export default class Client extends OpenApi {
|
|
|
2241
2301
|
}
|
|
2242
2302
|
|
|
2243
2303
|
/**
|
|
2244
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2304
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2245
2305
|
*
|
|
2246
2306
|
* @remarks
|
|
2247
2307
|
* ## Product Introduction
|
|
2248
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2308
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2249
2309
|
* ## Common scenarios
|
|
2250
|
-
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending
|
|
2310
|
+
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
2251
2311
|
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
|
|
2252
2312
|
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2253
|
-
* - Customer service conversations: In customer service scenarios,
|
|
2254
|
-
* Marco MT large model translation can also be used for general
|
|
2255
|
-
* ##
|
|
2256
|
-
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in
|
|
2313
|
+
* - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
2314
|
+
* Marco MT large model translation can also be used for general translation scenarios such as office work, meetings, and daily conversations.
|
|
2315
|
+
* ## Features
|
|
2316
|
+
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in section 5.6.
|
|
2257
2317
|
* - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
2258
2318
|
* - **Supported text format types** Currently supports text and html text types.
|
|
2259
|
-
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms.
|
|
2319
|
+
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
2260
2320
|
* ## Translation quality comparison
|
|
2261
2321
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
2262
2322
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2263
2323
|
* | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
|
|
2264
2324
|
* | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable segmentation |
|
|
2265
|
-
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression
|
|
2325
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression as "key bag" rather than "keychain", avoiding ambiguity about the product type |
|
|
2266
2326
|
*
|
|
2267
2327
|
* @param tmpReq - TextTranslateRequest
|
|
2268
2328
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2323,28 +2383,28 @@ export default class Client extends OpenApi {
|
|
|
2323
2383
|
}
|
|
2324
2384
|
|
|
2325
2385
|
/**
|
|
2326
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2386
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2327
2387
|
*
|
|
2328
2388
|
* @remarks
|
|
2329
2389
|
* ## Product Introduction
|
|
2330
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2390
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2331
2391
|
* ## Common scenarios
|
|
2332
|
-
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending
|
|
2392
|
+
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
2333
2393
|
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
|
|
2334
2394
|
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2335
|
-
* - Customer service conversations: In customer service scenarios,
|
|
2336
|
-
* Marco MT large model translation can also be used for general
|
|
2337
|
-
* ##
|
|
2338
|
-
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in
|
|
2395
|
+
* - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
2396
|
+
* Marco MT large model translation can also be used for general translation scenarios such as office work, meetings, and daily conversations.
|
|
2397
|
+
* ## Features
|
|
2398
|
+
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in section 5.6.
|
|
2339
2399
|
* - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
2340
2400
|
* - **Supported text format types** Currently supports text and html text types.
|
|
2341
|
-
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms.
|
|
2401
|
+
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
2342
2402
|
* ## Translation quality comparison
|
|
2343
2403
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
2344
2404
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2345
2405
|
* | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
|
|
2346
2406
|
* | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable segmentation |
|
|
2347
|
-
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression
|
|
2407
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression as "key bag" rather than "keychain", avoiding ambiguity about the product type |
|
|
2348
2408
|
*
|
|
2349
2409
|
* @param request - TextTranslateRequest
|
|
2350
2410
|
* @returns TextTranslateResponse
|
|
@@ -5,12 +5,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationProRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specifies whether to call the operation
|
|
8
|
+
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the operation immediately returns a TaskId, and you must call the query translation result operation to obtain the final result.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* true
|
|
9
12
|
*/
|
|
10
13
|
async?: boolean;
|
|
11
14
|
/**
|
|
12
15
|
* @remarks
|
|
13
|
-
* The
|
|
16
|
+
* The glossary ID. Optional. Create a glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
14
17
|
*
|
|
15
18
|
* @example
|
|
16
19
|
* glossary_1
|
|
@@ -18,7 +21,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
18
21
|
glossary?: string;
|
|
19
22
|
/**
|
|
20
23
|
* @remarks
|
|
21
|
-
* The URL of the original image. Required. Image requirements: width and height
|
|
24
|
+
* The URL of the original image. Required. Image requirements: width and height cannot exceed 4000 × 4000 pixels, size cannot exceed 10 MB, and supported formats include png, jpeg, jpg, bmp, and webp.
|
|
22
25
|
*
|
|
23
26
|
* This parameter is required.
|
|
24
27
|
*
|
|
@@ -28,7 +31,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
28
31
|
imageUrl?: string;
|
|
29
32
|
/**
|
|
30
33
|
* @remarks
|
|
31
|
-
* Specifies whether to translate text on the image subject. Optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
|
|
34
|
+
* Specifies whether to translate text on the image subject body. Optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
|
|
32
35
|
*
|
|
33
36
|
* @example
|
|
34
37
|
* false
|
|
@@ -36,7 +39,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
36
39
|
includingProductArea?: boolean;
|
|
37
40
|
/**
|
|
38
41
|
* @remarks
|
|
39
|
-
* The source language code. Required. For supported language
|
|
42
|
+
* The source language code. Required. For supported language pairs, see the supported language pair list.
|
|
40
43
|
*
|
|
41
44
|
* This parameter is required.
|
|
42
45
|
*
|
|
@@ -46,7 +49,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
46
49
|
sourceLanguage?: string;
|
|
47
50
|
/**
|
|
48
51
|
* @remarks
|
|
49
|
-
* The target language code. Required. For supported language
|
|
52
|
+
* The target language code. Required. For supported language pairs, see the supported language pair list.
|
|
50
53
|
*
|
|
51
54
|
* This parameter is required.
|
|
52
55
|
*
|
|
@@ -56,7 +59,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
56
59
|
targetLanguage?: string;
|
|
57
60
|
/**
|
|
58
61
|
* @remarks
|
|
59
|
-
* Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information
|
|
62
|
+
* Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information and avoid unintended translation.
|
|
60
63
|
*
|
|
61
64
|
* @example
|
|
62
65
|
* false
|
|
@@ -64,7 +67,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
64
67
|
translatingBrandInTheProduct?: boolean;
|
|
65
68
|
/**
|
|
66
69
|
* @remarks
|
|
67
|
-
* Specifies whether to return layout information such as text position, font, and color.
|
|
70
|
+
* Specifies whether to return layout information such as text position, font, and color. When set to true, layer information is returned, which can be used with an image editor for secondary editing. Default value: false.
|
|
68
71
|
*
|
|
69
72
|
* @example
|
|
70
73
|
* false
|
|
@@ -215,7 +215,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTe
|
|
|
215
215
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model {
|
|
216
216
|
/**
|
|
217
217
|
* @remarks
|
|
218
|
-
* The color
|
|
218
|
+
* The text color after translation.
|
|
219
219
|
*
|
|
220
220
|
* @example
|
|
221
221
|
* #515151
|
|
@@ -258,14 +258,6 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
258
258
|
* 1
|
|
259
259
|
*/
|
|
260
260
|
lineCount?: number;
|
|
261
|
-
/**
|
|
262
|
-
* @remarks
|
|
263
|
-
* The Ovis model error message and execution time.
|
|
264
|
-
*
|
|
265
|
-
* @example
|
|
266
|
-
* | ovis time: 0.748
|
|
267
|
-
*/
|
|
268
|
-
ovisErrMsg?: string;
|
|
269
261
|
/**
|
|
270
262
|
* @remarks
|
|
271
263
|
* The coordinates of the text box area.
|
|
@@ -303,7 +295,6 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
303
295
|
imageRect: 'ImageRect',
|
|
304
296
|
language: 'Language',
|
|
305
297
|
lineCount: 'LineCount',
|
|
306
|
-
ovisErrMsg: 'OvisErrMsg',
|
|
307
298
|
textRect: 'TextRect',
|
|
308
299
|
valid: 'Valid',
|
|
309
300
|
value: 'Value',
|
|
@@ -319,7 +310,6 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
319
310
|
imageRect: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect,
|
|
320
311
|
language: 'string',
|
|
321
312
|
lineCount: 'number',
|
|
322
|
-
ovisErrMsg: 'string',
|
|
323
313
|
textRect: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect,
|
|
324
314
|
valid: 'boolean',
|
|
325
315
|
value: 'string',
|
|
@@ -356,7 +346,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
356
346
|
* The original text before translation.
|
|
357
347
|
*
|
|
358
348
|
* @example
|
|
359
|
-
*
|
|
349
|
+
* Cute Shape · Crisp Bell.
|
|
360
350
|
*/
|
|
361
351
|
content?: string;
|
|
362
352
|
/**
|
|
@@ -385,7 +375,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
385
375
|
lineCount?: number;
|
|
386
376
|
/**
|
|
387
377
|
* @remarks
|
|
388
|
-
* The list of translated texts. Each element corresponds to the translation result for
|
|
378
|
+
* The list of translated texts. Each element corresponds to the translation result for a target language.
|
|
389
379
|
*/
|
|
390
380
|
texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
|
|
391
381
|
/**
|
|
@@ -445,12 +435,12 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
|
|
|
445
435
|
goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
|
|
446
436
|
/**
|
|
447
437
|
* @remarks
|
|
448
|
-
* The list of
|
|
438
|
+
* The list of target languages for translation.
|
|
449
439
|
*/
|
|
450
440
|
languages?: string[];
|
|
451
441
|
/**
|
|
452
442
|
* @remarks
|
|
453
|
-
* The URL of the image
|
|
443
|
+
* The URL of the image after all text has been erased.
|
|
454
444
|
*
|
|
455
445
|
* @example
|
|
456
446
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png
|
|
@@ -463,7 +453,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
|
|
|
463
453
|
resultImageIds?: string[];
|
|
464
454
|
/**
|
|
465
455
|
* @remarks
|
|
466
|
-
* The list of text boxes,
|
|
456
|
+
* The list of text boxes, which contains information about all recognized text areas.
|
|
467
457
|
*/
|
|
468
458
|
textAreas?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas[];
|
|
469
459
|
static names(): { [key: string]: string } {
|
|
@@ -523,7 +513,7 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
|
|
|
523
513
|
fileUrl?: string;
|
|
524
514
|
/**
|
|
525
515
|
* @remarks
|
|
526
|
-
* The
|
|
516
|
+
* The target language for translation.
|
|
527
517
|
*
|
|
528
518
|
* @example
|
|
529
519
|
* en
|
|
@@ -555,7 +545,7 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
|
|
|
555
545
|
export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
556
546
|
/**
|
|
557
547
|
* @remarks
|
|
558
|
-
* The editor information,
|
|
548
|
+
* The editor information, which contains recognition information such as text areas, product areas, and fonts.
|
|
559
549
|
*/
|
|
560
550
|
editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
|
|
561
551
|
/**
|
|
@@ -613,7 +603,7 @@ export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
|
613
603
|
fileUrl?: string;
|
|
614
604
|
/**
|
|
615
605
|
* @remarks
|
|
616
|
-
* The target language
|
|
606
|
+
* The target language for image translation.
|
|
617
607
|
*
|
|
618
608
|
* @example
|
|
619
609
|
* en
|
|
@@ -645,7 +635,7 @@ export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
|
645
635
|
export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
646
636
|
/**
|
|
647
637
|
* @remarks
|
|
648
|
-
* The editor protocol,
|
|
638
|
+
* The editor protocol, which contains translation result files and editing information.
|
|
649
639
|
*/
|
|
650
640
|
genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
|
|
651
641
|
/**
|
|
@@ -655,7 +645,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
655
645
|
resultList?: ImageTranslationProResponseBodyDataResultList[];
|
|
656
646
|
/**
|
|
657
647
|
* @remarks
|
|
658
|
-
* The asynchronous task ID.
|
|
648
|
+
* The asynchronous task ID. This parameter is not returned for synchronous calls.
|
|
659
649
|
*
|
|
660
650
|
* @example
|
|
661
651
|
* abc123-task-id
|
|
@@ -663,7 +653,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
663
653
|
taskId?: string;
|
|
664
654
|
/**
|
|
665
655
|
* @remarks
|
|
666
|
-
* The usage information,
|
|
656
|
+
* The usage information, which contains the number of processed images.
|
|
667
657
|
*/
|
|
668
658
|
usageMap?: { [key: string]: number };
|
|
669
659
|
static names(): { [key: string]: string } {
|
|
@@ -705,7 +695,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
705
695
|
export class ImageTranslationProResponseBody extends $dara.Model {
|
|
706
696
|
/**
|
|
707
697
|
* @remarks
|
|
708
|
-
* The response code. 200 indicates a successful call. For other response codes,
|
|
698
|
+
* The response code. 200 indicates a successful call. For other response codes, refer to the error code information.
|
|
709
699
|
*
|
|
710
700
|
* @example
|
|
711
701
|
* 200
|
|
@@ -713,12 +703,12 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
713
703
|
code?: string;
|
|
714
704
|
/**
|
|
715
705
|
* @remarks
|
|
716
|
-
* The translation result data. ResultList contains the
|
|
706
|
+
* The translation result data. ResultList contains the URLs of translation results, and GenFiles contains EditInfo with the recognized text information.
|
|
717
707
|
*/
|
|
718
708
|
data?: ImageTranslationProResponseBodyData;
|
|
719
709
|
/**
|
|
720
710
|
* @remarks
|
|
721
|
-
* The error message.
|
|
711
|
+
* The error message. "Success" is returned for successful calls. Specific error information is returned for failed calls, such as "The content contains sensitive data. Try other input."
|
|
722
712
|
*
|
|
723
713
|
* @example
|
|
724
714
|
* Success
|
|
@@ -734,7 +724,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
734
724
|
requestId?: string;
|
|
735
725
|
/**
|
|
736
726
|
* @remarks
|
|
737
|
-
* Indicates whether the call
|
|
727
|
+
* Indicates whether the call is successful. true indicates success, and false indicates failure.
|
|
738
728
|
*
|
|
739
729
|
* @example
|
|
740
730
|
* true
|