@alicloud/aidge20260428 3.1.1 → 5.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 +148 -118
- package/dist/client.js +222 -118
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +2 -2
- package/dist/models/DocumentTranslateResponseBody.d.ts +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 +4 -4
- package/dist/models/QueryAsyncTaskResultResponseBody.js +1 -1
- package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
- package/dist/models/TextTranslateRequest.d.ts +7 -7
- package/dist/models/TextTranslateShrinkRequest.d.ts +7 -7
- package/dist/models/VideoGenerationRequest.d.ts +86 -0
- package/dist/models/VideoGenerationRequest.js +144 -0
- package/dist/models/VideoGenerationRequest.js.map +1 -0
- package/dist/models/VideoGenerationResponse.d.ts +19 -0
- package/dist/models/VideoGenerationResponse.js +69 -0
- package/dist/models/VideoGenerationResponse.js.map +1 -0
- package/dist/models/VideoGenerationResponseBody.d.ts +50 -0
- package/dist/models/VideoGenerationResponseBody.js +93 -0
- package/dist/models/VideoGenerationResponseBody.js.map +1 -0
- package/dist/models/VideoGenerationShrinkRequest.d.ts +24 -0
- package/dist/models/VideoGenerationShrinkRequest.js +62 -0
- package/dist/models/VideoGenerationShrinkRequest.js.map +1 -0
- package/dist/models/VideoTranslationRequest.d.ts +9 -0
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +19 -0
- package/dist/models/VideoTranslationResponseBody.js.map +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +9 -0
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +15 -0
- package/dist/models/model.js +33 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +236 -118
- package/src/models/DocumentTranslateRequest.ts +2 -2
- package/src/models/DocumentTranslateResponseBody.ts +1 -1
- 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 +5 -5
- package/src/models/TextTranslateRequest.ts +7 -7
- package/src/models/TextTranslateShrinkRequest.ts +7 -7
- package/src/models/VideoGenerationRequest.ts +156 -0
- package/src/models/VideoGenerationResponse.ts +40 -0
- package/src/models/VideoGenerationResponseBody.ts +87 -0
- package/src/models/VideoGenerationShrinkRequest.ts +41 -0
- package/src/models/VideoTranslationRequest.ts +9 -0
- package/src/models/VideoTranslationResponseBody.ts +19 -0
- package/src/models/VideoTranslationShrinkRequest.ts +9 -0
- package/src/models/model.ts +15 -0
package/src/client.ts
CHANGED
|
@@ -515,9 +515,7 @@ export default class Client extends OpenApi {
|
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
/**
|
|
518
|
-
* Translates documents between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
|
|
519
|
-
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
520
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
518
|
+
* Translates documents between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas: - Content accuracy: translation accuracy, parameter and unit accuracy - Structural integrity: overall layout continuity, page margin and layout preservation.
|
|
521
519
|
*
|
|
522
520
|
* @remarks
|
|
523
521
|
* ## Product Introduction
|
|
@@ -526,13 +524,13 @@ export default class Client extends OpenApi {
|
|
|
526
524
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
527
525
|
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
528
526
|
* ## Common scenarios
|
|
529
|
-
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks
|
|
530
|
-
*
|
|
531
|
-
* - Supports PDF and Word formats. Supports source documents containing multiple languages.
|
|
527
|
+
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and other scenarios.
|
|
528
|
+
* ## Features
|
|
529
|
+
* - Supports PDF and Word formats. Supports source documents containing multiple languages. For a detailed language list, see section 4.5.
|
|
532
530
|
* - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
|
|
533
531
|
* - Supports high-fidelity layout preservation after translation.
|
|
534
|
-
* - A single PDF supports up to 100 pages
|
|
535
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000
|
|
532
|
+
* - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
|
|
533
|
+
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). 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. Contact the platform if you need more.
|
|
536
534
|
*
|
|
537
535
|
* @param request - DocumentTranslateRequest
|
|
538
536
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -575,9 +573,7 @@ export default class Client extends OpenApi {
|
|
|
575
573
|
}
|
|
576
574
|
|
|
577
575
|
/**
|
|
578
|
-
* Translates documents between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
|
|
579
|
-
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
580
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
576
|
+
* Translates documents between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas: - Content accuracy: translation accuracy, parameter and unit accuracy - Structural integrity: overall layout continuity, page margin and layout preservation.
|
|
581
577
|
*
|
|
582
578
|
* @remarks
|
|
583
579
|
* ## Product Introduction
|
|
@@ -586,13 +582,13 @@ export default class Client extends OpenApi {
|
|
|
586
582
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
587
583
|
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
588
584
|
* ## Common scenarios
|
|
589
|
-
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks
|
|
590
|
-
*
|
|
591
|
-
* - Supports PDF and Word formats. Supports source documents containing multiple languages.
|
|
585
|
+
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and other scenarios.
|
|
586
|
+
* ## Features
|
|
587
|
+
* - Supports PDF and Word formats. Supports source documents containing multiple languages. For a detailed language list, see section 4.5.
|
|
592
588
|
* - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
|
|
593
589
|
* - Supports high-fidelity layout preservation after translation.
|
|
594
|
-
* - A single PDF supports up to 100 pages
|
|
595
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000
|
|
590
|
+
* - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
|
|
591
|
+
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). 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. Contact the platform if you need more.
|
|
596
592
|
*
|
|
597
593
|
* @param request - DocumentTranslateRequest
|
|
598
594
|
* @returns DocumentTranslateResponse
|
|
@@ -1323,18 +1319,12 @@ export default class Client extends OpenApi {
|
|
|
1323
1319
|
}
|
|
1324
1320
|
|
|
1325
1321
|
/**
|
|
1326
|
-
* Translates images using the Pro edition, which
|
|
1322
|
+
* 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
1323
|
*
|
|
1328
1324
|
* @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.
|
|
1325
|
+
* ## Product Introduction.
|
|
1326
|
+
* ## Scenarios.
|
|
1327
|
+
* ## Features.
|
|
1338
1328
|
*
|
|
1339
1329
|
* @param request - ImageTranslationProRequest
|
|
1340
1330
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1393,18 +1383,12 @@ export default class Client extends OpenApi {
|
|
|
1393
1383
|
}
|
|
1394
1384
|
|
|
1395
1385
|
/**
|
|
1396
|
-
* Translates images using the Pro edition, which
|
|
1386
|
+
* 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
1387
|
*
|
|
1398
1388
|
* @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.
|
|
1389
|
+
* ## Product Introduction.
|
|
1390
|
+
* ## Scenarios.
|
|
1391
|
+
* ## Features.
|
|
1408
1392
|
*
|
|
1409
1393
|
* @param request - ImageTranslationProRequest
|
|
1410
1394
|
* @returns ImageTranslationProResponse
|
|
@@ -1415,21 +1399,12 @@ export default class Client extends OpenApi {
|
|
|
1415
1399
|
}
|
|
1416
1400
|
|
|
1417
1401
|
/**
|
|
1418
|
-
*
|
|
1402
|
+
* 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
1403
|
*
|
|
1420
1404
|
* @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.
|
|
1405
|
+
* # 1. Product Introduction.
|
|
1406
|
+
* # 2. Common scenarios.
|
|
1407
|
+
* # 3. Features.
|
|
1433
1408
|
*
|
|
1434
1409
|
* @param request - ImageTranslationStandardRequest
|
|
1435
1410
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1484,21 +1459,12 @@ export default class Client extends OpenApi {
|
|
|
1484
1459
|
}
|
|
1485
1460
|
|
|
1486
1461
|
/**
|
|
1487
|
-
*
|
|
1462
|
+
* 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
1463
|
*
|
|
1489
1464
|
* @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.
|
|
1465
|
+
* # 1. Product Introduction.
|
|
1466
|
+
* # 2. Common scenarios.
|
|
1467
|
+
* # 3. Features.
|
|
1502
1468
|
*
|
|
1503
1469
|
* @param request - ImageTranslationStandardRequest
|
|
1504
1470
|
* @returns ImageTranslationStandardResponse
|
|
@@ -1660,6 +1626,96 @@ export default class Client extends OpenApi {
|
|
|
1660
1626
|
return await this.materialInspectionWithOptions(request, runtime);
|
|
1661
1627
|
}
|
|
1662
1628
|
|
|
1629
|
+
/**
|
|
1630
|
+
* 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.
|
|
1631
|
+
*
|
|
1632
|
+
* @remarks
|
|
1633
|
+
* ## **Product Introduction**
|
|
1634
|
+
* 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.
|
|
1635
|
+
* ## **Scenarios**
|
|
1636
|
+
* - **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.
|
|
1637
|
+
*
|
|
1638
|
+
* - **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.
|
|
1639
|
+
*
|
|
1640
|
+
* - **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.
|
|
1641
|
+
* ## **Features**
|
|
1642
|
+
* - **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.
|
|
1643
|
+
*
|
|
1644
|
+
* - **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.
|
|
1645
|
+
*
|
|
1646
|
+
* - **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.
|
|
1647
|
+
*
|
|
1648
|
+
* - **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.
|
|
1649
|
+
*
|
|
1650
|
+
* @param request - MerchandisePlacementDetectionRequest
|
|
1651
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1652
|
+
* @returns MerchandisePlacementDetectionResponse
|
|
1653
|
+
*/
|
|
1654
|
+
async merchandisePlacementDetectionWithOptions(request: $_model.MerchandisePlacementDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MerchandisePlacementDetectionResponse> {
|
|
1655
|
+
request.validate();
|
|
1656
|
+
let query = { };
|
|
1657
|
+
if (!$dara.isNull(request.apiId)) {
|
|
1658
|
+
query["ApiId"] = request.apiId;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1662
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
if (!$dara.isNull(request.ragId)) {
|
|
1666
|
+
query["RagId"] = request.ragId;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
if (!$dara.isNull(request.type)) {
|
|
1670
|
+
query["Type"] = request.type;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1674
|
+
query: OpenApiUtil.query(query),
|
|
1675
|
+
});
|
|
1676
|
+
let params = new $OpenApiUtil.Params({
|
|
1677
|
+
action: "MerchandisePlacementDetection",
|
|
1678
|
+
version: "2026-04-28",
|
|
1679
|
+
protocol: "HTTPS",
|
|
1680
|
+
pathname: "/",
|
|
1681
|
+
method: "POST",
|
|
1682
|
+
authType: "AK",
|
|
1683
|
+
style: "RPC",
|
|
1684
|
+
reqBodyType: "formData",
|
|
1685
|
+
bodyType: "json",
|
|
1686
|
+
});
|
|
1687
|
+
return $dara.cast<$_model.MerchandisePlacementDetectionResponse>(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionResponse({}));
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
/**
|
|
1691
|
+
* 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.
|
|
1692
|
+
*
|
|
1693
|
+
* @remarks
|
|
1694
|
+
* ## **Product Introduction**
|
|
1695
|
+
* 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.
|
|
1696
|
+
* ## **Scenarios**
|
|
1697
|
+
* - **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.
|
|
1698
|
+
*
|
|
1699
|
+
* - **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.
|
|
1700
|
+
*
|
|
1701
|
+
* - **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.
|
|
1702
|
+
* ## **Features**
|
|
1703
|
+
* - **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.
|
|
1704
|
+
*
|
|
1705
|
+
* - **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.
|
|
1706
|
+
*
|
|
1707
|
+
* - **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.
|
|
1708
|
+
*
|
|
1709
|
+
* - **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.
|
|
1710
|
+
*
|
|
1711
|
+
* @param request - MerchandisePlacementDetectionRequest
|
|
1712
|
+
* @returns MerchandisePlacementDetectionResponse
|
|
1713
|
+
*/
|
|
1714
|
+
async merchandisePlacementDetection(request: $_model.MerchandisePlacementDetectionRequest): Promise<$_model.MerchandisePlacementDetectionResponse> {
|
|
1715
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1716
|
+
return await this.merchandisePlacementDetectionWithOptions(request, runtime);
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1663
1719
|
/**
|
|
1664
1720
|
* 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
1721
|
*
|
|
@@ -1737,10 +1793,10 @@ export default class Client extends OpenApi {
|
|
|
1737
1793
|
}
|
|
1738
1794
|
|
|
1739
1795
|
/**
|
|
1740
|
-
* API name on the POP gateway
|
|
1796
|
+
* Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1741
1797
|
*
|
|
1742
1798
|
* @remarks
|
|
1743
|
-
* API name on the POP gateway
|
|
1799
|
+
* The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1744
1800
|
*
|
|
1745
1801
|
* @param request - QueryAsyncTaskResultRequest
|
|
1746
1802
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1771,10 +1827,10 @@ export default class Client extends OpenApi {
|
|
|
1771
1827
|
}
|
|
1772
1828
|
|
|
1773
1829
|
/**
|
|
1774
|
-
* API name on the POP gateway
|
|
1830
|
+
* Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1775
1831
|
*
|
|
1776
1832
|
* @remarks
|
|
1777
|
-
* API name on the POP gateway
|
|
1833
|
+
* The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1778
1834
|
*
|
|
1779
1835
|
* @param request - QueryAsyncTaskResultRequest
|
|
1780
1836
|
* @returns QueryAsyncTaskResultResponse
|
|
@@ -2241,28 +2297,28 @@ export default class Client extends OpenApi {
|
|
|
2241
2297
|
}
|
|
2242
2298
|
|
|
2243
2299
|
/**
|
|
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.
|
|
2300
|
+
* 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
2301
|
*
|
|
2246
2302
|
* @remarks
|
|
2247
2303
|
* ## 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.
|
|
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.
|
|
2249
2305
|
* ## Common scenarios
|
|
2250
|
-
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending
|
|
2306
|
+
* - 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
2307
|
* - 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
2308
|
* - 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
|
|
2309
|
+
* - 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.
|
|
2310
|
+
* Marco MT large model translation can also be used for general translation scenarios such as office work, meetings, and daily conversations.
|
|
2311
|
+
* ## Features
|
|
2312
|
+
* - **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
2313
|
* - **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
2314
|
* - **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.
|
|
2315
|
+
* - **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
2316
|
* ## Translation quality comparison
|
|
2261
2317
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
2262
2318
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2263
2319
|
* | 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
2320
|
* | 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
|
|
2321
|
+
* | 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
2322
|
*
|
|
2267
2323
|
* @param tmpReq - TextTranslateRequest
|
|
2268
2324
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2323,28 +2379,28 @@ export default class Client extends OpenApi {
|
|
|
2323
2379
|
}
|
|
2324
2380
|
|
|
2325
2381
|
/**
|
|
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.
|
|
2382
|
+
* 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
2383
|
*
|
|
2328
2384
|
* @remarks
|
|
2329
2385
|
* ## 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.
|
|
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.
|
|
2331
2387
|
* ## Common scenarios
|
|
2332
|
-
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending
|
|
2388
|
+
* - 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
2389
|
* - 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
2390
|
* - 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
|
|
2391
|
+
* - 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.
|
|
2392
|
+
* Marco MT large model translation can also be used for general translation scenarios such as office work, meetings, and daily conversations.
|
|
2393
|
+
* ## Features
|
|
2394
|
+
* - **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
2395
|
* - **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
2396
|
* - **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.
|
|
2397
|
+
* - **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
2398
|
* ## Translation quality comparison
|
|
2343
2399
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
2344
2400
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2345
2401
|
* | 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
2402
|
* | 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
|
|
2403
|
+
* | 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
2404
|
*
|
|
2349
2405
|
* @param request - TextTranslateRequest
|
|
2350
2406
|
* @returns TextTranslateResponse
|
|
@@ -2355,29 +2411,92 @@ export default class Client extends OpenApi {
|
|
|
2355
2411
|
}
|
|
2356
2412
|
|
|
2357
2413
|
/**
|
|
2358
|
-
*
|
|
2414
|
+
* 电商视频生成(异步提交)
|
|
2415
|
+
*
|
|
2416
|
+
* @param tmpReq - VideoGenerationRequest
|
|
2417
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2418
|
+
* @returns VideoGenerationResponse
|
|
2419
|
+
*/
|
|
2420
|
+
async videoGenerationWithOptions(tmpReq: $_model.VideoGenerationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VideoGenerationResponse> {
|
|
2421
|
+
tmpReq.validate();
|
|
2422
|
+
let request = new $_model.VideoGenerationShrinkRequest({ });
|
|
2423
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2424
|
+
if (!$dara.isNull(tmpReq.input)) {
|
|
2425
|
+
request.inputShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.input, "Input", "json");
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
if (!$dara.isNull(tmpReq.intent)) {
|
|
2429
|
+
request.intentShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.intent, "Intent", "json");
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
if (!$dara.isNull(tmpReq.output)) {
|
|
2433
|
+
request.outputShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.output, "Output", "json");
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
let query = { };
|
|
2437
|
+
if (!$dara.isNull(request.inputShrink)) {
|
|
2438
|
+
query["Input"] = request.inputShrink;
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
if (!$dara.isNull(request.intentShrink)) {
|
|
2442
|
+
query["Intent"] = request.intentShrink;
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
if (!$dara.isNull(request.outputShrink)) {
|
|
2446
|
+
query["Output"] = request.outputShrink;
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2450
|
+
query: OpenApiUtil.query(query),
|
|
2451
|
+
});
|
|
2452
|
+
let params = new $OpenApiUtil.Params({
|
|
2453
|
+
action: "VideoGeneration",
|
|
2454
|
+
version: "2026-04-28",
|
|
2455
|
+
protocol: "HTTPS",
|
|
2456
|
+
pathname: "/",
|
|
2457
|
+
method: "POST",
|
|
2458
|
+
authType: "AK",
|
|
2459
|
+
style: "RPC",
|
|
2460
|
+
reqBodyType: "formData",
|
|
2461
|
+
bodyType: "json",
|
|
2462
|
+
});
|
|
2463
|
+
return $dara.cast<$_model.VideoGenerationResponse>(await this.callApi(params, req, runtime), new $_model.VideoGenerationResponse({}));
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
/**
|
|
2467
|
+
* 电商视频生成(异步提交)
|
|
2468
|
+
*
|
|
2469
|
+
* @param request - VideoGenerationRequest
|
|
2470
|
+
* @returns VideoGenerationResponse
|
|
2471
|
+
*/
|
|
2472
|
+
async videoGeneration(request: $_model.VideoGenerationRequest): Promise<$_model.VideoGenerationResponse> {
|
|
2473
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2474
|
+
return await this.videoGenerationWithOptions(request, runtime);
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* Translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text.
|
|
2359
2479
|
*
|
|
2360
2480
|
* @remarks
|
|
2361
|
-
* ## 1.
|
|
2362
|
-
*
|
|
2363
|
-
* API
|
|
2364
|
-
* ## 2.
|
|
2365
|
-
* *
|
|
2366
|
-
*
|
|
2367
|
-
* * **国际社交媒体营销**:针对 TikTok、Instagram、YouTube 等平台,将视频画面文字内容一键本地化,提升海外用户理解度与转化率。
|
|
2481
|
+
* ## 1. Product Introduction
|
|
2482
|
+
* The video translation API translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text. This API is applicable to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
|
|
2483
|
+
* The API uses an asynchronous call mode: after submitting a translation task, you obtain a `task_id`, then poll the query endpoint for the task status until the task is completed and results are available.
|
|
2484
|
+
* ## 2. Common scenarios
|
|
2485
|
+
* * **Cross-border e-commerce video localization**: Translates promotional text in product introduction videos into the target market language to facilitate overseas platform promotion.
|
|
2368
2486
|
*
|
|
2369
|
-
* *
|
|
2487
|
+
* * **International social media marketing**: Localizes text content in video frames with one click for platforms such as TikTok, Instagram, and YouTube, improving comprehension and conversion rates among overseas users.
|
|
2370
2488
|
*
|
|
2371
|
-
* *
|
|
2489
|
+
* * **Global brand advertising**: Automatically generates video versions in the language of the target region, reducing manual production costs.
|
|
2372
2490
|
*
|
|
2373
|
-
*
|
|
2374
|
-
*
|
|
2491
|
+
* * **Training and product documentation**: Translates on-screen text in training courses or product demonstration videos into multiple languages for use by global teams.
|
|
2492
|
+
* ## 3. Features
|
|
2493
|
+
* | Capability | Identifier | Description |
|
|
2375
2494
|
* | --- | --- | --- |
|
|
2376
|
-
* |
|
|
2377
|
-
* ## 4.
|
|
2378
|
-
* ### 4.1
|
|
2379
|
-
* ####
|
|
2380
|
-
* `POST
|
|
2495
|
+
* | Visual translation | `visual` | Translates embedded text (subtitles, promotional text, etc.) in video frames into the target language and erases the original text |
|
|
2496
|
+
* ## 4. Developer guide.
|
|
2497
|
+
* ### 4.1 Submit a translation task.
|
|
2498
|
+
* #### Request
|
|
2499
|
+
* `POST /api/v1/video/translation`
|
|
2381
2500
|
*
|
|
2382
2501
|
* @param tmpReq - VideoTranslationRequest
|
|
2383
2502
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2426,29 +2545,28 @@ export default class Client extends OpenApi {
|
|
|
2426
2545
|
}
|
|
2427
2546
|
|
|
2428
2547
|
/**
|
|
2429
|
-
*
|
|
2548
|
+
* Translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text.
|
|
2430
2549
|
*
|
|
2431
2550
|
* @remarks
|
|
2432
|
-
* ## 1.
|
|
2433
|
-
*
|
|
2434
|
-
* API
|
|
2435
|
-
* ## 2.
|
|
2436
|
-
* *
|
|
2437
|
-
*
|
|
2438
|
-
* * **国际社交媒体营销**:针对 TikTok、Instagram、YouTube 等平台,将视频画面文字内容一键本地化,提升海外用户理解度与转化率。
|
|
2551
|
+
* ## 1. Product Introduction
|
|
2552
|
+
* The video translation API translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text. This API is applicable to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
|
|
2553
|
+
* The API uses an asynchronous call mode: after submitting a translation task, you obtain a `task_id`, then poll the query endpoint for the task status until the task is completed and results are available.
|
|
2554
|
+
* ## 2. Common scenarios
|
|
2555
|
+
* * **Cross-border e-commerce video localization**: Translates promotional text in product introduction videos into the target market language to facilitate overseas platform promotion.
|
|
2439
2556
|
*
|
|
2440
|
-
* *
|
|
2557
|
+
* * **International social media marketing**: Localizes text content in video frames with one click for platforms such as TikTok, Instagram, and YouTube, improving comprehension and conversion rates among overseas users.
|
|
2441
2558
|
*
|
|
2442
|
-
* *
|
|
2559
|
+
* * **Global brand advertising**: Automatically generates video versions in the language of the target region, reducing manual production costs.
|
|
2443
2560
|
*
|
|
2444
|
-
*
|
|
2445
|
-
*
|
|
2561
|
+
* * **Training and product documentation**: Translates on-screen text in training courses or product demonstration videos into multiple languages for use by global teams.
|
|
2562
|
+
* ## 3. Features
|
|
2563
|
+
* | Capability | Identifier | Description |
|
|
2446
2564
|
* | --- | --- | --- |
|
|
2447
|
-
* |
|
|
2448
|
-
* ## 4.
|
|
2449
|
-
* ### 4.1
|
|
2450
|
-
* ####
|
|
2451
|
-
* `POST
|
|
2565
|
+
* | Visual translation | `visual` | Translates embedded text (subtitles, promotional text, etc.) in video frames into the target language and erases the original text |
|
|
2566
|
+
* ## 4. Developer guide.
|
|
2567
|
+
* ### 4.1 Submit a translation task.
|
|
2568
|
+
* #### Request
|
|
2569
|
+
* `POST /api/v1/video/translation`
|
|
2452
2570
|
*
|
|
2453
2571
|
* @param request - VideoTranslationRequest
|
|
2454
2572
|
* @returns VideoTranslationResponse
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DocumentTranslateRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The supported document types: PDF
|
|
8
|
+
* The supported document types: PDF/Word. Size limits: Word 200 MB/100 pages, PDF 200 MB/100 pages, maximum 200 MB per file.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class DocumentTranslateRequest extends $dara.Model {
|
|
|
15
15
|
fileType?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The glossary ID
|
|
18
|
+
* The intervention glossary ID. Specify this parameter when you need the intervention feature. Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* glossary_1
|
|
@@ -64,7 +64,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
64
64
|
requestId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* Indicates whether the call is successful.
|
|
67
|
+
* Indicates whether the call is successful. true: successful. false: failed.
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* True
|