@alicloud/green20220302 2.2.12 → 2.2.13
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 +365 -16
- package/dist/client.js +14 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +379 -16
package/dist/client.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export declare class DescribeFileModerationResultRequest extends $tea.Model {
|
|
|
16
16
|
* @remarks
|
|
17
17
|
* The parameters required by the moderation service. The value is a JSON string.
|
|
18
18
|
*
|
|
19
|
+
* * taskId: required. The URL of the object that you want to moderate. Make sure that the URL can be accessed over the Internet.
|
|
20
|
+
*
|
|
19
21
|
* @example
|
|
20
22
|
* {\\"taskId\\":\\"vi_f_hPgx9PFIQISdlfA888hOFG-1yJq8v\\"}
|
|
21
23
|
*/
|
|
@@ -33,7 +35,7 @@ export declare class DescribeFileModerationResultRequest extends $tea.Model {
|
|
|
33
35
|
export declare class DescribeFileModerationResultResponseBody extends $tea.Model {
|
|
34
36
|
/**
|
|
35
37
|
* @remarks
|
|
36
|
-
* The returned HTTP status code.
|
|
38
|
+
* The returned HTTP status code. The status code 200 indicates that the request was successful.
|
|
37
39
|
*
|
|
38
40
|
* @example
|
|
39
41
|
* 200
|
|
@@ -54,7 +56,7 @@ export declare class DescribeFileModerationResultResponseBody extends $tea.Model
|
|
|
54
56
|
message?: string;
|
|
55
57
|
/**
|
|
56
58
|
* @remarks
|
|
57
|
-
*
|
|
59
|
+
* Id of the request
|
|
58
60
|
*
|
|
59
61
|
* @example
|
|
60
62
|
* 6CF2815C-C8C7-4A01-B52E-FF6E24F53492
|
|
@@ -1398,12 +1400,19 @@ export declare class VoiceModerationResultResponse extends $tea.Model {
|
|
|
1398
1400
|
export declare class DescribeFileModerationResultResponseBodyDataPageResultImageResultLabelResult extends $tea.Model {
|
|
1399
1401
|
/**
|
|
1400
1402
|
* @remarks
|
|
1401
|
-
*
|
|
1403
|
+
* The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.
|
|
1402
1404
|
*
|
|
1403
1405
|
* @example
|
|
1404
1406
|
* 25.0
|
|
1405
1407
|
*/
|
|
1406
1408
|
confidence?: number;
|
|
1409
|
+
/**
|
|
1410
|
+
* @remarks
|
|
1411
|
+
* The description.
|
|
1412
|
+
*
|
|
1413
|
+
* @example
|
|
1414
|
+
* This is a title.
|
|
1415
|
+
*/
|
|
1407
1416
|
description?: string;
|
|
1408
1417
|
/**
|
|
1409
1418
|
* @remarks
|
|
@@ -1469,7 +1478,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultImage
|
|
|
1469
1478
|
export declare class DescribeFileModerationResultResponseBodyDataPageResultImageResult extends $tea.Model {
|
|
1470
1479
|
/**
|
|
1471
1480
|
* @remarks
|
|
1472
|
-
*
|
|
1481
|
+
* The description.
|
|
1473
1482
|
*
|
|
1474
1483
|
* @example
|
|
1475
1484
|
* This is a title.
|
|
@@ -1477,14 +1486,21 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultImage
|
|
|
1477
1486
|
description?: string;
|
|
1478
1487
|
/**
|
|
1479
1488
|
* @remarks
|
|
1480
|
-
*
|
|
1489
|
+
* The label information.
|
|
1481
1490
|
*/
|
|
1482
1491
|
labelResult?: DescribeFileModerationResultResponseBodyDataPageResultImageResultLabelResult[];
|
|
1483
1492
|
/**
|
|
1484
1493
|
* @remarks
|
|
1485
|
-
*
|
|
1494
|
+
* The location information
|
|
1486
1495
|
*/
|
|
1487
1496
|
location?: DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation;
|
|
1497
|
+
/**
|
|
1498
|
+
* @remarks
|
|
1499
|
+
* Risk Level
|
|
1500
|
+
*
|
|
1501
|
+
* @example
|
|
1502
|
+
* high
|
|
1503
|
+
*/
|
|
1488
1504
|
riskLevel?: string;
|
|
1489
1505
|
/**
|
|
1490
1506
|
* @remarks
|
|
@@ -1507,7 +1523,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultImage
|
|
|
1507
1523
|
export declare class DescribeFileModerationResultResponseBodyDataPageResultTextResult extends $tea.Model {
|
|
1508
1524
|
/**
|
|
1509
1525
|
* @remarks
|
|
1510
|
-
*
|
|
1526
|
+
* The description.
|
|
1511
1527
|
*
|
|
1512
1528
|
* @example
|
|
1513
1529
|
* This is a title.
|
|
@@ -1521,6 +1537,13 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextR
|
|
|
1521
1537
|
* porn
|
|
1522
1538
|
*/
|
|
1523
1539
|
labels?: string;
|
|
1540
|
+
/**
|
|
1541
|
+
* @remarks
|
|
1542
|
+
* Risk Level
|
|
1543
|
+
*
|
|
1544
|
+
* @example
|
|
1545
|
+
* high
|
|
1546
|
+
*/
|
|
1524
1547
|
riskLevel?: string;
|
|
1525
1548
|
/**
|
|
1526
1549
|
* @remarks
|
|
@@ -1548,7 +1571,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextR
|
|
|
1548
1571
|
service?: string;
|
|
1549
1572
|
/**
|
|
1550
1573
|
* @remarks
|
|
1551
|
-
*
|
|
1574
|
+
* The text content.
|
|
1552
1575
|
*
|
|
1553
1576
|
* @example
|
|
1554
1577
|
* This is a text.
|
|
@@ -1556,7 +1579,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextR
|
|
|
1556
1579
|
text?: string;
|
|
1557
1580
|
/**
|
|
1558
1581
|
* @remarks
|
|
1559
|
-
*
|
|
1582
|
+
* The text segmentation information.
|
|
1560
1583
|
*
|
|
1561
1584
|
* @example
|
|
1562
1585
|
* [0,999]
|
|
@@ -1575,12 +1598,12 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextR
|
|
|
1575
1598
|
export declare class DescribeFileModerationResultResponseBodyDataPageResult extends $tea.Model {
|
|
1576
1599
|
/**
|
|
1577
1600
|
* @remarks
|
|
1578
|
-
*
|
|
1601
|
+
* The image moderation results.
|
|
1579
1602
|
*/
|
|
1580
1603
|
imageResult?: DescribeFileModerationResultResponseBodyDataPageResultImageResult[];
|
|
1581
1604
|
/**
|
|
1582
1605
|
* @remarks
|
|
1583
|
-
* The image
|
|
1606
|
+
* The image URL.
|
|
1584
1607
|
*
|
|
1585
1608
|
* @example
|
|
1586
1609
|
* https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg
|
|
@@ -1596,12 +1619,12 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResult exte
|
|
|
1596
1619
|
pageNum?: number;
|
|
1597
1620
|
/**
|
|
1598
1621
|
* @remarks
|
|
1599
|
-
*
|
|
1622
|
+
* The text moderation results.
|
|
1600
1623
|
*/
|
|
1601
1624
|
textResult?: DescribeFileModerationResultResponseBodyDataPageResultTextResult[];
|
|
1602
1625
|
/**
|
|
1603
1626
|
* @remarks
|
|
1604
|
-
*
|
|
1627
|
+
* The text URL.
|
|
1605
1628
|
*
|
|
1606
1629
|
* @example
|
|
1607
1630
|
* https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt
|
|
@@ -1618,8 +1641,29 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResult exte
|
|
|
1618
1641
|
});
|
|
1619
1642
|
}
|
|
1620
1643
|
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels extends $tea.Model {
|
|
1644
|
+
/**
|
|
1645
|
+
* @remarks
|
|
1646
|
+
* The description.
|
|
1647
|
+
*
|
|
1648
|
+
* @example
|
|
1649
|
+
* test
|
|
1650
|
+
*/
|
|
1621
1651
|
description?: string;
|
|
1652
|
+
/**
|
|
1653
|
+
* @remarks
|
|
1654
|
+
* The details of the labels.
|
|
1655
|
+
*
|
|
1656
|
+
* @example
|
|
1657
|
+
* contraband
|
|
1658
|
+
*/
|
|
1622
1659
|
label?: string;
|
|
1660
|
+
/**
|
|
1661
|
+
* @remarks
|
|
1662
|
+
* The number of times that the label is matched.
|
|
1663
|
+
*
|
|
1664
|
+
* @example
|
|
1665
|
+
* 1
|
|
1666
|
+
*/
|
|
1623
1667
|
labelSum?: number;
|
|
1624
1668
|
static names(): {
|
|
1625
1669
|
[key: string]: string;
|
|
@@ -1632,7 +1676,18 @@ export declare class DescribeFileModerationResultResponseBodyDataPageSummaryImag
|
|
|
1632
1676
|
});
|
|
1633
1677
|
}
|
|
1634
1678
|
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary extends $tea.Model {
|
|
1679
|
+
/**
|
|
1680
|
+
* @remarks
|
|
1681
|
+
* Image Label
|
|
1682
|
+
*/
|
|
1635
1683
|
imageLabels?: DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels[];
|
|
1684
|
+
/**
|
|
1685
|
+
* @remarks
|
|
1686
|
+
* Risk Level
|
|
1687
|
+
*
|
|
1688
|
+
* @example
|
|
1689
|
+
* high
|
|
1690
|
+
*/
|
|
1636
1691
|
riskLevel?: string;
|
|
1637
1692
|
static names(): {
|
|
1638
1693
|
[key: string]: string;
|
|
@@ -1645,7 +1700,21 @@ export declare class DescribeFileModerationResultResponseBodyDataPageSummaryImag
|
|
|
1645
1700
|
});
|
|
1646
1701
|
}
|
|
1647
1702
|
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels extends $tea.Model {
|
|
1703
|
+
/**
|
|
1704
|
+
* @remarks
|
|
1705
|
+
* The details of the labels.
|
|
1706
|
+
*
|
|
1707
|
+
* @example
|
|
1708
|
+
* contraband
|
|
1709
|
+
*/
|
|
1648
1710
|
label?: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* @remarks
|
|
1713
|
+
* The number of times that the label is matched.
|
|
1714
|
+
*
|
|
1715
|
+
* @example
|
|
1716
|
+
* 1
|
|
1717
|
+
*/
|
|
1649
1718
|
labelSum?: number;
|
|
1650
1719
|
static names(): {
|
|
1651
1720
|
[key: string]: string;
|
|
@@ -1658,7 +1727,18 @@ export declare class DescribeFileModerationResultResponseBodyDataPageSummaryText
|
|
|
1658
1727
|
});
|
|
1659
1728
|
}
|
|
1660
1729
|
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary extends $tea.Model {
|
|
1730
|
+
/**
|
|
1731
|
+
* @remarks
|
|
1732
|
+
* Risk Level
|
|
1733
|
+
*
|
|
1734
|
+
* @example
|
|
1735
|
+
* high
|
|
1736
|
+
*/
|
|
1661
1737
|
riskLevel?: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* @remarks
|
|
1740
|
+
* Text Label
|
|
1741
|
+
*/
|
|
1662
1742
|
textLabels?: DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels[];
|
|
1663
1743
|
static names(): {
|
|
1664
1744
|
[key: string]: string;
|
|
@@ -1671,8 +1751,23 @@ export declare class DescribeFileModerationResultResponseBodyDataPageSummaryText
|
|
|
1671
1751
|
});
|
|
1672
1752
|
}
|
|
1673
1753
|
export declare class DescribeFileModerationResultResponseBodyDataPageSummary extends $tea.Model {
|
|
1754
|
+
/**
|
|
1755
|
+
* @remarks
|
|
1756
|
+
* Image Results Summary
|
|
1757
|
+
*/
|
|
1674
1758
|
imageSummary?: DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary;
|
|
1759
|
+
/**
|
|
1760
|
+
* @remarks
|
|
1761
|
+
* Number of pages
|
|
1762
|
+
*
|
|
1763
|
+
* @example
|
|
1764
|
+
* 1
|
|
1765
|
+
*/
|
|
1675
1766
|
pageSum?: number;
|
|
1767
|
+
/**
|
|
1768
|
+
* @remarks
|
|
1769
|
+
* Text Results Summary
|
|
1770
|
+
*/
|
|
1676
1771
|
textSummary?: DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary;
|
|
1677
1772
|
static names(): {
|
|
1678
1773
|
[key: string]: string;
|
|
@@ -1695,7 +1790,7 @@ export declare class DescribeFileModerationResultResponseBodyData extends $tea.M
|
|
|
1695
1790
|
dataId?: string;
|
|
1696
1791
|
/**
|
|
1697
1792
|
* @remarks
|
|
1698
|
-
* Optional
|
|
1793
|
+
* Optional. The document type.
|
|
1699
1794
|
*
|
|
1700
1795
|
* @example
|
|
1701
1796
|
* doc
|
|
@@ -1703,14 +1798,25 @@ export declare class DescribeFileModerationResultResponseBodyData extends $tea.M
|
|
|
1703
1798
|
docType?: string;
|
|
1704
1799
|
/**
|
|
1705
1800
|
* @remarks
|
|
1706
|
-
*
|
|
1801
|
+
* An array that consists of the moderation results.
|
|
1707
1802
|
*/
|
|
1708
1803
|
pageResult?: DescribeFileModerationResultResponseBodyDataPageResult[];
|
|
1804
|
+
/**
|
|
1805
|
+
* @remarks
|
|
1806
|
+
* Summary of results
|
|
1807
|
+
*/
|
|
1709
1808
|
pageSummary?: DescribeFileModerationResultResponseBodyDataPageSummary;
|
|
1809
|
+
/**
|
|
1810
|
+
* @remarks
|
|
1811
|
+
* Risk Level
|
|
1812
|
+
*
|
|
1813
|
+
* @example
|
|
1814
|
+
* high
|
|
1815
|
+
*/
|
|
1710
1816
|
riskLevel?: string;
|
|
1711
1817
|
/**
|
|
1712
1818
|
* @remarks
|
|
1713
|
-
* The URL of the
|
|
1819
|
+
* The URL of the moderated object.
|
|
1714
1820
|
*
|
|
1715
1821
|
* @example
|
|
1716
1822
|
* https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf
|
|
@@ -2214,7 +2320,21 @@ export declare class ImageModerationResponseBodyDataExtCustomImage extends $tea.
|
|
|
2214
2320
|
});
|
|
2215
2321
|
}
|
|
2216
2322
|
export declare class ImageModerationResponseBodyDataExtFaceDataBang extends $tea.Model {
|
|
2323
|
+
/**
|
|
2324
|
+
* @remarks
|
|
2325
|
+
* The confidence level of the bang recognition result. Valid values: 0 to 100. A higher value indicates a more credible result.
|
|
2326
|
+
*
|
|
2327
|
+
* @example
|
|
2328
|
+
* 81.88
|
|
2329
|
+
*/
|
|
2217
2330
|
confidence?: number;
|
|
2331
|
+
/**
|
|
2332
|
+
* @remarks
|
|
2333
|
+
* Indicates whether the recognition result of bangs is available.
|
|
2334
|
+
*
|
|
2335
|
+
* @example
|
|
2336
|
+
* Has
|
|
2337
|
+
*/
|
|
2218
2338
|
value?: string;
|
|
2219
2339
|
static names(): {
|
|
2220
2340
|
[key: string]: string;
|
|
@@ -2227,7 +2347,25 @@ export declare class ImageModerationResponseBodyDataExtFaceDataBang extends $tea
|
|
|
2227
2347
|
});
|
|
2228
2348
|
}
|
|
2229
2349
|
export declare class ImageModerationResponseBodyDataExtFaceDataGender extends $tea.Model {
|
|
2350
|
+
/**
|
|
2351
|
+
* @remarks
|
|
2352
|
+
* The confidence level of the gender recognition result. Valid values: 0 to 100. A higher value indicates a more credible result.
|
|
2353
|
+
*
|
|
2354
|
+
* @example
|
|
2355
|
+
* 81.88
|
|
2356
|
+
*/
|
|
2230
2357
|
confidence?: number;
|
|
2358
|
+
/**
|
|
2359
|
+
* @remarks
|
|
2360
|
+
* The gender recognition result. Valid values:
|
|
2361
|
+
*
|
|
2362
|
+
* - Male
|
|
2363
|
+
*
|
|
2364
|
+
* - FeMale
|
|
2365
|
+
*
|
|
2366
|
+
* @example
|
|
2367
|
+
* FeMale
|
|
2368
|
+
*/
|
|
2231
2369
|
value?: string;
|
|
2232
2370
|
static names(): {
|
|
2233
2371
|
[key: string]: string;
|
|
@@ -2240,7 +2378,27 @@ export declare class ImageModerationResponseBodyDataExtFaceDataGender extends $t
|
|
|
2240
2378
|
});
|
|
2241
2379
|
}
|
|
2242
2380
|
export declare class ImageModerationResponseBodyDataExtFaceDataHairstyle extends $tea.Model {
|
|
2381
|
+
/**
|
|
2382
|
+
* @remarks
|
|
2383
|
+
* The confidence level of the hairstyle recognition result. Valid values: 0 to 100. A higher value indicates a more credible result.
|
|
2384
|
+
*
|
|
2385
|
+
* @example
|
|
2386
|
+
* 81.88
|
|
2387
|
+
*/
|
|
2243
2388
|
confidence?: number;
|
|
2389
|
+
/**
|
|
2390
|
+
* @remarks
|
|
2391
|
+
* The hairstyle recognition result. Valid values:
|
|
2392
|
+
*
|
|
2393
|
+
* - Bald: bald head.
|
|
2394
|
+
*
|
|
2395
|
+
* - Long: Long hair.
|
|
2396
|
+
*
|
|
2397
|
+
* - Short: Short hair.
|
|
2398
|
+
*
|
|
2399
|
+
* @example
|
|
2400
|
+
* Short
|
|
2401
|
+
*/
|
|
2244
2402
|
value?: string;
|
|
2245
2403
|
static names(): {
|
|
2246
2404
|
[key: string]: string;
|
|
@@ -2253,7 +2411,25 @@ export declare class ImageModerationResponseBodyDataExtFaceDataHairstyle extends
|
|
|
2253
2411
|
});
|
|
2254
2412
|
}
|
|
2255
2413
|
export declare class ImageModerationResponseBodyDataExtFaceDataHat extends $tea.Model {
|
|
2414
|
+
/**
|
|
2415
|
+
* @remarks
|
|
2416
|
+
* The confidence level of the result of wearing the hat. Valid values: 0 to 100. A higher value indicates a more credible result.
|
|
2417
|
+
*
|
|
2418
|
+
* @example
|
|
2419
|
+
* 88.88
|
|
2420
|
+
*/
|
|
2256
2421
|
confidence?: number;
|
|
2422
|
+
/**
|
|
2423
|
+
* @remarks
|
|
2424
|
+
* The recognition result of whether to wear the hat. Valid values:
|
|
2425
|
+
*
|
|
2426
|
+
* - Wear: Wear a hat.
|
|
2427
|
+
*
|
|
2428
|
+
* - None: No hat.
|
|
2429
|
+
*
|
|
2430
|
+
* @example
|
|
2431
|
+
* Wear
|
|
2432
|
+
*/
|
|
2257
2433
|
value?: string;
|
|
2258
2434
|
static names(): {
|
|
2259
2435
|
[key: string]: string;
|
|
@@ -2266,9 +2442,37 @@ export declare class ImageModerationResponseBodyDataExtFaceDataHat extends $tea.
|
|
|
2266
2442
|
});
|
|
2267
2443
|
}
|
|
2268
2444
|
export declare class ImageModerationResponseBodyDataExtFaceDataLocation extends $tea.Model {
|
|
2445
|
+
/**
|
|
2446
|
+
* @remarks
|
|
2447
|
+
* The height of the face area. Unit: pixels.
|
|
2448
|
+
*
|
|
2449
|
+
* @example
|
|
2450
|
+
* 26
|
|
2451
|
+
*/
|
|
2269
2452
|
h?: number;
|
|
2453
|
+
/**
|
|
2454
|
+
* @remarks
|
|
2455
|
+
* The width of the face area. Unit: pixels.
|
|
2456
|
+
*
|
|
2457
|
+
* @example
|
|
2458
|
+
* 83
|
|
2459
|
+
*/
|
|
2270
2460
|
w?: number;
|
|
2461
|
+
/**
|
|
2462
|
+
* @remarks
|
|
2463
|
+
* The distance from the upper-left corner of the face area to the y-axis with the upper-left corner of the image as the coordinate origin. Unit: pixels.
|
|
2464
|
+
*
|
|
2465
|
+
* @example
|
|
2466
|
+
* 41
|
|
2467
|
+
*/
|
|
2271
2468
|
x?: number;
|
|
2469
|
+
/**
|
|
2470
|
+
* @remarks
|
|
2471
|
+
* The distance from the upper-left corner of the face area to the x-axis with the upper-left corner of the image as the coordinate origin. Unit: pixels.
|
|
2472
|
+
*
|
|
2473
|
+
* @example
|
|
2474
|
+
* 84
|
|
2475
|
+
*/
|
|
2272
2476
|
y?: number;
|
|
2273
2477
|
static names(): {
|
|
2274
2478
|
[key: string]: string;
|
|
@@ -2281,7 +2485,25 @@ export declare class ImageModerationResponseBodyDataExtFaceDataLocation extends
|
|
|
2281
2485
|
});
|
|
2282
2486
|
}
|
|
2283
2487
|
export declare class ImageModerationResponseBodyDataExtFaceDataMask extends $tea.Model {
|
|
2488
|
+
/**
|
|
2489
|
+
* @remarks
|
|
2490
|
+
* The confidence level of the result of wearing the mask. Valid values: 0 to 100. A higher value indicates a more credible result.
|
|
2491
|
+
*
|
|
2492
|
+
* @example
|
|
2493
|
+
* 99.99
|
|
2494
|
+
*/
|
|
2284
2495
|
confidence?: number;
|
|
2496
|
+
/**
|
|
2497
|
+
* @remarks
|
|
2498
|
+
* The recognition result of whether to wear a mask. Valid values:
|
|
2499
|
+
*
|
|
2500
|
+
* - Wear a mask.
|
|
2501
|
+
*
|
|
2502
|
+
* - None: No mask.
|
|
2503
|
+
*
|
|
2504
|
+
* @example
|
|
2505
|
+
* Wear
|
|
2506
|
+
*/
|
|
2285
2507
|
value?: string;
|
|
2286
2508
|
static names(): {
|
|
2287
2509
|
[key: string]: string;
|
|
@@ -2294,7 +2516,25 @@ export declare class ImageModerationResponseBodyDataExtFaceDataMask extends $tea
|
|
|
2294
2516
|
});
|
|
2295
2517
|
}
|
|
2296
2518
|
export declare class ImageModerationResponseBodyDataExtFaceDataMustache extends $tea.Model {
|
|
2519
|
+
/**
|
|
2520
|
+
* @remarks
|
|
2521
|
+
* The confidence level of the result of the beard. Valid values: 0 to 100. A higher value indicates a more credible result.
|
|
2522
|
+
*
|
|
2523
|
+
* @example
|
|
2524
|
+
* 99.99
|
|
2525
|
+
*/
|
|
2297
2526
|
confidence?: number;
|
|
2527
|
+
/**
|
|
2528
|
+
* @remarks
|
|
2529
|
+
* The identification result of whether there is a beard.Valid values:
|
|
2530
|
+
*
|
|
2531
|
+
* - Has:have a beard.
|
|
2532
|
+
*
|
|
2533
|
+
* - None:No beard.
|
|
2534
|
+
*
|
|
2535
|
+
* @example
|
|
2536
|
+
* Has
|
|
2537
|
+
*/
|
|
2298
2538
|
value?: string;
|
|
2299
2539
|
static names(): {
|
|
2300
2540
|
[key: string]: string;
|
|
@@ -2307,10 +2547,49 @@ export declare class ImageModerationResponseBodyDataExtFaceDataMustache extends
|
|
|
2307
2547
|
});
|
|
2308
2548
|
}
|
|
2309
2549
|
export declare class ImageModerationResponseBodyDataExtFaceDataQuality extends $tea.Model {
|
|
2550
|
+
/**
|
|
2551
|
+
* @remarks
|
|
2552
|
+
* The blur of the face image. Valid values: 0 to 100. The higher the score, the more fuzzy it is.
|
|
2553
|
+
* Recommended values: 0 to 25.
|
|
2554
|
+
*
|
|
2555
|
+
* @example
|
|
2556
|
+
* 5.88
|
|
2557
|
+
*/
|
|
2310
2558
|
blur?: number;
|
|
2559
|
+
/**
|
|
2560
|
+
* @remarks
|
|
2561
|
+
* The integrity of the human face. Recommended values:80 to 100.
|
|
2562
|
+
*
|
|
2563
|
+
* @example
|
|
2564
|
+
* 100.0
|
|
2565
|
+
*/
|
|
2311
2566
|
integrity?: number;
|
|
2567
|
+
/**
|
|
2568
|
+
* @remarks
|
|
2569
|
+
* The head-up or head-down angle of the face.
|
|
2570
|
+
* Recommended values:-30 to 30.
|
|
2571
|
+
*
|
|
2572
|
+
* @example
|
|
2573
|
+
* 5.88
|
|
2574
|
+
*/
|
|
2312
2575
|
pitch?: number;
|
|
2576
|
+
/**
|
|
2577
|
+
* @remarks
|
|
2578
|
+
* The plane rotation angle of the face.
|
|
2579
|
+
* Recommended values:-30 to 30.
|
|
2580
|
+
*
|
|
2581
|
+
* @example
|
|
2582
|
+
* 5.18
|
|
2583
|
+
*/
|
|
2313
2584
|
roll?: number;
|
|
2585
|
+
/**
|
|
2586
|
+
* @remarks
|
|
2587
|
+
* The left and right shaking angle of the human face.
|
|
2588
|
+
* Recommended values:-30 to 30.
|
|
2589
|
+
*
|
|
2590
|
+
* @example
|
|
2591
|
+
* 5.18
|
|
2592
|
+
*/
|
|
2314
2593
|
yaw?: number;
|
|
2315
2594
|
static names(): {
|
|
2316
2595
|
[key: string]: string;
|
|
@@ -2323,16 +2602,75 @@ export declare class ImageModerationResponseBodyDataExtFaceDataQuality extends $
|
|
|
2323
2602
|
});
|
|
2324
2603
|
}
|
|
2325
2604
|
export declare class ImageModerationResponseBodyDataExtFaceData extends $tea.Model {
|
|
2605
|
+
/**
|
|
2606
|
+
* @remarks
|
|
2607
|
+
* The age recognition result.
|
|
2608
|
+
*
|
|
2609
|
+
* @example
|
|
2610
|
+
* 18
|
|
2611
|
+
*/
|
|
2326
2612
|
age?: number;
|
|
2613
|
+
/**
|
|
2614
|
+
* @remarks
|
|
2615
|
+
* Indicates whether the recognition result of bangs is available.
|
|
2616
|
+
*/
|
|
2327
2617
|
bang?: ImageModerationResponseBodyDataExtFaceDataBang;
|
|
2618
|
+
/**
|
|
2619
|
+
* @remarks
|
|
2620
|
+
* The gender recognition result.
|
|
2621
|
+
*/
|
|
2328
2622
|
gender?: ImageModerationResponseBodyDataExtFaceDataGender;
|
|
2623
|
+
/**
|
|
2624
|
+
* @remarks
|
|
2625
|
+
* The recognition result of whether to wear glasses.
|
|
2626
|
+
*
|
|
2627
|
+
* - None: No glasses.
|
|
2628
|
+
*
|
|
2629
|
+
* - Wear: Wear glasses.
|
|
2630
|
+
*
|
|
2631
|
+
* - Sunglass: Wear sunglasses.
|
|
2632
|
+
*
|
|
2633
|
+
* @example
|
|
2634
|
+
* Common
|
|
2635
|
+
*/
|
|
2329
2636
|
glasses?: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* @remarks
|
|
2639
|
+
* The hairstyle recognition result.
|
|
2640
|
+
*/
|
|
2330
2641
|
hairstyle?: ImageModerationResponseBodyDataExtFaceDataHairstyle;
|
|
2642
|
+
/**
|
|
2643
|
+
* @remarks
|
|
2644
|
+
* The recognition result of whether to wear a hat.
|
|
2645
|
+
*/
|
|
2331
2646
|
hat?: ImageModerationResponseBodyDataExtFaceDataHat;
|
|
2647
|
+
/**
|
|
2648
|
+
* @remarks
|
|
2649
|
+
* The location of the face.
|
|
2650
|
+
*/
|
|
2332
2651
|
location?: ImageModerationResponseBodyDataExtFaceDataLocation;
|
|
2652
|
+
/**
|
|
2653
|
+
* @remarks
|
|
2654
|
+
* The recognition result of whether to wear a mask.
|
|
2655
|
+
*/
|
|
2333
2656
|
mask?: ImageModerationResponseBodyDataExtFaceDataMask;
|
|
2657
|
+
/**
|
|
2658
|
+
* @remarks
|
|
2659
|
+
* The identification result of whether there is a beard.
|
|
2660
|
+
*/
|
|
2334
2661
|
mustache?: ImageModerationResponseBodyDataExtFaceDataMustache;
|
|
2662
|
+
/**
|
|
2663
|
+
* @remarks
|
|
2664
|
+
* The quality information of the face image.
|
|
2665
|
+
*/
|
|
2335
2666
|
quality?: ImageModerationResponseBodyDataExtFaceDataQuality;
|
|
2667
|
+
/**
|
|
2668
|
+
* @remarks
|
|
2669
|
+
* The smiling degree of the face.
|
|
2670
|
+
*
|
|
2671
|
+
* @example
|
|
2672
|
+
* 85.88
|
|
2673
|
+
*/
|
|
2336
2674
|
smile?: number;
|
|
2337
2675
|
static names(): {
|
|
2338
2676
|
[key: string]: string;
|
|
@@ -2746,6 +3084,10 @@ export declare class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
2746
3084
|
* If a custom image library is hit, information about the hit custom image library is returned.
|
|
2747
3085
|
*/
|
|
2748
3086
|
customImage?: ImageModerationResponseBodyDataExtCustomImage[];
|
|
3087
|
+
/**
|
|
3088
|
+
* @remarks
|
|
3089
|
+
* The returned face attribute information
|
|
3090
|
+
*/
|
|
2749
3091
|
faceData?: ImageModerationResponseBodyDataExtFaceData[];
|
|
2750
3092
|
/**
|
|
2751
3093
|
* @remarks
|
|
@@ -3160,6 +3502,7 @@ export declare class VideoModerationResultResponseBodyDataAudioResultSliceDetail
|
|
|
3160
3502
|
* porn
|
|
3161
3503
|
*/
|
|
3162
3504
|
labels?: string;
|
|
3505
|
+
riskLevel?: string;
|
|
3163
3506
|
/**
|
|
3164
3507
|
* @remarks
|
|
3165
3508
|
* Subcategory labels. Multiple labels are separated by commas (,).
|
|
@@ -3232,6 +3575,7 @@ export declare class VideoModerationResultResponseBodyDataAudioResult extends $t
|
|
|
3232
3575
|
* Summary of voice labels.
|
|
3233
3576
|
*/
|
|
3234
3577
|
audioSummarys?: VideoModerationResultResponseBodyDataAudioResultAudioSummarys[];
|
|
3578
|
+
riskLevel?: string;
|
|
3235
3579
|
/**
|
|
3236
3580
|
* @remarks
|
|
3237
3581
|
* The details about the text in the moderated voice. The value is a JSON array that contains one or more elements. Each element corresponds to a text entry.
|
|
@@ -3248,6 +3592,7 @@ export declare class VideoModerationResultResponseBodyDataAudioResult extends $t
|
|
|
3248
3592
|
});
|
|
3249
3593
|
}
|
|
3250
3594
|
export declare class VideoModerationResultResponseBodyDataFrameResultFrameSummarys extends $tea.Model {
|
|
3595
|
+
description?: string;
|
|
3251
3596
|
/**
|
|
3252
3597
|
* @remarks
|
|
3253
3598
|
* The label against which a captured frame is matched.
|
|
@@ -3329,6 +3674,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFramesResul
|
|
|
3329
3674
|
* 50
|
|
3330
3675
|
*/
|
|
3331
3676
|
confidence?: number;
|
|
3677
|
+
description?: string;
|
|
3332
3678
|
/**
|
|
3333
3679
|
* @remarks
|
|
3334
3680
|
* The label returned after a frame is moderated. Multiple risk labels and the corresponding scores of confidence levels may be returned for a frame.
|
|
@@ -3402,6 +3748,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFrames exte
|
|
|
3402
3748
|
* The results of frame moderation parameters such as the label parameter and the confidence parameter.
|
|
3403
3749
|
*/
|
|
3404
3750
|
results?: VideoModerationResultResponseBodyDataFrameResultFramesResults[];
|
|
3751
|
+
riskLevel?: string;
|
|
3405
3752
|
/**
|
|
3406
3753
|
* @remarks
|
|
3407
3754
|
* The temporary URL of a captured frame. This URL is valid for 30 minutes.
|
|
@@ -3447,6 +3794,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResult extends $t
|
|
|
3447
3794
|
* The information about the frames that match the labels.
|
|
3448
3795
|
*/
|
|
3449
3796
|
frames?: VideoModerationResultResponseBodyDataFrameResultFrames[];
|
|
3797
|
+
riskLevel?: string;
|
|
3450
3798
|
static names(): {
|
|
3451
3799
|
[key: string]: string;
|
|
3452
3800
|
};
|
|
@@ -3484,6 +3832,7 @@ export declare class VideoModerationResultResponseBodyData extends $tea.Model {
|
|
|
3484
3832
|
* liveId
|
|
3485
3833
|
*/
|
|
3486
3834
|
liveId?: string;
|
|
3835
|
+
riskLevel?: string;
|
|
3487
3836
|
/**
|
|
3488
3837
|
* @remarks
|
|
3489
3838
|
* The task ID.
|