@alicloud/green20220302 2.2.11 → 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 +569 -16
- package/dist/client.js +312 -2
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +775 -38
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,20 @@ 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
|
+
*/
|
|
1416
|
+
description?: string;
|
|
1407
1417
|
/**
|
|
1408
1418
|
* @remarks
|
|
1409
1419
|
* The details of the labels.
|
|
@@ -1468,7 +1478,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultImage
|
|
|
1468
1478
|
export declare class DescribeFileModerationResultResponseBodyDataPageResultImageResult extends $tea.Model {
|
|
1469
1479
|
/**
|
|
1470
1480
|
* @remarks
|
|
1471
|
-
*
|
|
1481
|
+
* The description.
|
|
1472
1482
|
*
|
|
1473
1483
|
* @example
|
|
1474
1484
|
* This is a title.
|
|
@@ -1476,14 +1486,22 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultImage
|
|
|
1476
1486
|
description?: string;
|
|
1477
1487
|
/**
|
|
1478
1488
|
* @remarks
|
|
1479
|
-
*
|
|
1489
|
+
* The label information.
|
|
1480
1490
|
*/
|
|
1481
1491
|
labelResult?: DescribeFileModerationResultResponseBodyDataPageResultImageResultLabelResult[];
|
|
1482
1492
|
/**
|
|
1483
1493
|
* @remarks
|
|
1484
|
-
*
|
|
1494
|
+
* The location information
|
|
1485
1495
|
*/
|
|
1486
1496
|
location?: DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation;
|
|
1497
|
+
/**
|
|
1498
|
+
* @remarks
|
|
1499
|
+
* Risk Level
|
|
1500
|
+
*
|
|
1501
|
+
* @example
|
|
1502
|
+
* high
|
|
1503
|
+
*/
|
|
1504
|
+
riskLevel?: string;
|
|
1487
1505
|
/**
|
|
1488
1506
|
* @remarks
|
|
1489
1507
|
* The moderation service.
|
|
@@ -1505,7 +1523,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultImage
|
|
|
1505
1523
|
export declare class DescribeFileModerationResultResponseBodyDataPageResultTextResult extends $tea.Model {
|
|
1506
1524
|
/**
|
|
1507
1525
|
* @remarks
|
|
1508
|
-
*
|
|
1526
|
+
* The description.
|
|
1509
1527
|
*
|
|
1510
1528
|
* @example
|
|
1511
1529
|
* This is a title.
|
|
@@ -1519,6 +1537,14 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextR
|
|
|
1519
1537
|
* porn
|
|
1520
1538
|
*/
|
|
1521
1539
|
labels?: string;
|
|
1540
|
+
/**
|
|
1541
|
+
* @remarks
|
|
1542
|
+
* Risk Level
|
|
1543
|
+
*
|
|
1544
|
+
* @example
|
|
1545
|
+
* high
|
|
1546
|
+
*/
|
|
1547
|
+
riskLevel?: string;
|
|
1522
1548
|
/**
|
|
1523
1549
|
* @remarks
|
|
1524
1550
|
* The risk details that are hit.
|
|
@@ -1545,7 +1571,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextR
|
|
|
1545
1571
|
service?: string;
|
|
1546
1572
|
/**
|
|
1547
1573
|
* @remarks
|
|
1548
|
-
*
|
|
1574
|
+
* The text content.
|
|
1549
1575
|
*
|
|
1550
1576
|
* @example
|
|
1551
1577
|
* This is a text.
|
|
@@ -1553,7 +1579,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextR
|
|
|
1553
1579
|
text?: string;
|
|
1554
1580
|
/**
|
|
1555
1581
|
* @remarks
|
|
1556
|
-
*
|
|
1582
|
+
* The text segmentation information.
|
|
1557
1583
|
*
|
|
1558
1584
|
* @example
|
|
1559
1585
|
* [0,999]
|
|
@@ -1572,12 +1598,12 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextR
|
|
|
1572
1598
|
export declare class DescribeFileModerationResultResponseBodyDataPageResult extends $tea.Model {
|
|
1573
1599
|
/**
|
|
1574
1600
|
* @remarks
|
|
1575
|
-
*
|
|
1601
|
+
* The image moderation results.
|
|
1576
1602
|
*/
|
|
1577
1603
|
imageResult?: DescribeFileModerationResultResponseBodyDataPageResultImageResult[];
|
|
1578
1604
|
/**
|
|
1579
1605
|
* @remarks
|
|
1580
|
-
* The image
|
|
1606
|
+
* The image URL.
|
|
1581
1607
|
*
|
|
1582
1608
|
* @example
|
|
1583
1609
|
* https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg
|
|
@@ -1593,12 +1619,12 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResult exte
|
|
|
1593
1619
|
pageNum?: number;
|
|
1594
1620
|
/**
|
|
1595
1621
|
* @remarks
|
|
1596
|
-
*
|
|
1622
|
+
* The text moderation results.
|
|
1597
1623
|
*/
|
|
1598
1624
|
textResult?: DescribeFileModerationResultResponseBodyDataPageResultTextResult[];
|
|
1599
1625
|
/**
|
|
1600
1626
|
* @remarks
|
|
1601
|
-
*
|
|
1627
|
+
* The text URL.
|
|
1602
1628
|
*
|
|
1603
1629
|
* @example
|
|
1604
1630
|
* https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt
|
|
@@ -1614,6 +1640,145 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResult exte
|
|
|
1614
1640
|
[key: string]: any;
|
|
1615
1641
|
});
|
|
1616
1642
|
}
|
|
1643
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels extends $tea.Model {
|
|
1644
|
+
/**
|
|
1645
|
+
* @remarks
|
|
1646
|
+
* The description.
|
|
1647
|
+
*
|
|
1648
|
+
* @example
|
|
1649
|
+
* test
|
|
1650
|
+
*/
|
|
1651
|
+
description?: string;
|
|
1652
|
+
/**
|
|
1653
|
+
* @remarks
|
|
1654
|
+
* The details of the labels.
|
|
1655
|
+
*
|
|
1656
|
+
* @example
|
|
1657
|
+
* contraband
|
|
1658
|
+
*/
|
|
1659
|
+
label?: string;
|
|
1660
|
+
/**
|
|
1661
|
+
* @remarks
|
|
1662
|
+
* The number of times that the label is matched.
|
|
1663
|
+
*
|
|
1664
|
+
* @example
|
|
1665
|
+
* 1
|
|
1666
|
+
*/
|
|
1667
|
+
labelSum?: number;
|
|
1668
|
+
static names(): {
|
|
1669
|
+
[key: string]: string;
|
|
1670
|
+
};
|
|
1671
|
+
static types(): {
|
|
1672
|
+
[key: string]: any;
|
|
1673
|
+
};
|
|
1674
|
+
constructor(map?: {
|
|
1675
|
+
[key: string]: any;
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary extends $tea.Model {
|
|
1679
|
+
/**
|
|
1680
|
+
* @remarks
|
|
1681
|
+
* Image Label
|
|
1682
|
+
*/
|
|
1683
|
+
imageLabels?: DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels[];
|
|
1684
|
+
/**
|
|
1685
|
+
* @remarks
|
|
1686
|
+
* Risk Level
|
|
1687
|
+
*
|
|
1688
|
+
* @example
|
|
1689
|
+
* high
|
|
1690
|
+
*/
|
|
1691
|
+
riskLevel?: string;
|
|
1692
|
+
static names(): {
|
|
1693
|
+
[key: string]: string;
|
|
1694
|
+
};
|
|
1695
|
+
static types(): {
|
|
1696
|
+
[key: string]: any;
|
|
1697
|
+
};
|
|
1698
|
+
constructor(map?: {
|
|
1699
|
+
[key: string]: any;
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1702
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels extends $tea.Model {
|
|
1703
|
+
/**
|
|
1704
|
+
* @remarks
|
|
1705
|
+
* The details of the labels.
|
|
1706
|
+
*
|
|
1707
|
+
* @example
|
|
1708
|
+
* contraband
|
|
1709
|
+
*/
|
|
1710
|
+
label?: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* @remarks
|
|
1713
|
+
* The number of times that the label is matched.
|
|
1714
|
+
*
|
|
1715
|
+
* @example
|
|
1716
|
+
* 1
|
|
1717
|
+
*/
|
|
1718
|
+
labelSum?: number;
|
|
1719
|
+
static names(): {
|
|
1720
|
+
[key: string]: string;
|
|
1721
|
+
};
|
|
1722
|
+
static types(): {
|
|
1723
|
+
[key: string]: any;
|
|
1724
|
+
};
|
|
1725
|
+
constructor(map?: {
|
|
1726
|
+
[key: string]: any;
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1729
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary extends $tea.Model {
|
|
1730
|
+
/**
|
|
1731
|
+
* @remarks
|
|
1732
|
+
* Risk Level
|
|
1733
|
+
*
|
|
1734
|
+
* @example
|
|
1735
|
+
* high
|
|
1736
|
+
*/
|
|
1737
|
+
riskLevel?: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* @remarks
|
|
1740
|
+
* Text Label
|
|
1741
|
+
*/
|
|
1742
|
+
textLabels?: DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels[];
|
|
1743
|
+
static names(): {
|
|
1744
|
+
[key: string]: string;
|
|
1745
|
+
};
|
|
1746
|
+
static types(): {
|
|
1747
|
+
[key: string]: any;
|
|
1748
|
+
};
|
|
1749
|
+
constructor(map?: {
|
|
1750
|
+
[key: string]: any;
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummary extends $tea.Model {
|
|
1754
|
+
/**
|
|
1755
|
+
* @remarks
|
|
1756
|
+
* Image Results Summary
|
|
1757
|
+
*/
|
|
1758
|
+
imageSummary?: DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary;
|
|
1759
|
+
/**
|
|
1760
|
+
* @remarks
|
|
1761
|
+
* Number of pages
|
|
1762
|
+
*
|
|
1763
|
+
* @example
|
|
1764
|
+
* 1
|
|
1765
|
+
*/
|
|
1766
|
+
pageSum?: number;
|
|
1767
|
+
/**
|
|
1768
|
+
* @remarks
|
|
1769
|
+
* Text Results Summary
|
|
1770
|
+
*/
|
|
1771
|
+
textSummary?: DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary;
|
|
1772
|
+
static names(): {
|
|
1773
|
+
[key: string]: string;
|
|
1774
|
+
};
|
|
1775
|
+
static types(): {
|
|
1776
|
+
[key: string]: any;
|
|
1777
|
+
};
|
|
1778
|
+
constructor(map?: {
|
|
1779
|
+
[key: string]: any;
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1617
1782
|
export declare class DescribeFileModerationResultResponseBodyData extends $tea.Model {
|
|
1618
1783
|
/**
|
|
1619
1784
|
* @remarks
|
|
@@ -1625,7 +1790,7 @@ export declare class DescribeFileModerationResultResponseBodyData extends $tea.M
|
|
|
1625
1790
|
dataId?: string;
|
|
1626
1791
|
/**
|
|
1627
1792
|
* @remarks
|
|
1628
|
-
* Optional
|
|
1793
|
+
* Optional. The document type.
|
|
1629
1794
|
*
|
|
1630
1795
|
* @example
|
|
1631
1796
|
* doc
|
|
@@ -1633,12 +1798,25 @@ export declare class DescribeFileModerationResultResponseBodyData extends $tea.M
|
|
|
1633
1798
|
docType?: string;
|
|
1634
1799
|
/**
|
|
1635
1800
|
* @remarks
|
|
1636
|
-
*
|
|
1801
|
+
* An array that consists of the moderation results.
|
|
1637
1802
|
*/
|
|
1638
1803
|
pageResult?: DescribeFileModerationResultResponseBodyDataPageResult[];
|
|
1639
1804
|
/**
|
|
1640
1805
|
* @remarks
|
|
1641
|
-
*
|
|
1806
|
+
* Summary of results
|
|
1807
|
+
*/
|
|
1808
|
+
pageSummary?: DescribeFileModerationResultResponseBodyDataPageSummary;
|
|
1809
|
+
/**
|
|
1810
|
+
* @remarks
|
|
1811
|
+
* Risk Level
|
|
1812
|
+
*
|
|
1813
|
+
* @example
|
|
1814
|
+
* high
|
|
1815
|
+
*/
|
|
1816
|
+
riskLevel?: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* @remarks
|
|
1819
|
+
* The URL of the moderated object.
|
|
1642
1820
|
*
|
|
1643
1821
|
* @example
|
|
1644
1822
|
* https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf
|
|
@@ -2141,6 +2319,369 @@ export declare class ImageModerationResponseBodyDataExtCustomImage extends $tea.
|
|
|
2141
2319
|
[key: string]: any;
|
|
2142
2320
|
});
|
|
2143
2321
|
}
|
|
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
|
+
*/
|
|
2330
|
+
confidence?: number;
|
|
2331
|
+
/**
|
|
2332
|
+
* @remarks
|
|
2333
|
+
* Indicates whether the recognition result of bangs is available.
|
|
2334
|
+
*
|
|
2335
|
+
* @example
|
|
2336
|
+
* Has
|
|
2337
|
+
*/
|
|
2338
|
+
value?: string;
|
|
2339
|
+
static names(): {
|
|
2340
|
+
[key: string]: string;
|
|
2341
|
+
};
|
|
2342
|
+
static types(): {
|
|
2343
|
+
[key: string]: any;
|
|
2344
|
+
};
|
|
2345
|
+
constructor(map?: {
|
|
2346
|
+
[key: string]: any;
|
|
2347
|
+
});
|
|
2348
|
+
}
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
2369
|
+
value?: string;
|
|
2370
|
+
static names(): {
|
|
2371
|
+
[key: string]: string;
|
|
2372
|
+
};
|
|
2373
|
+
static types(): {
|
|
2374
|
+
[key: string]: any;
|
|
2375
|
+
};
|
|
2376
|
+
constructor(map?: {
|
|
2377
|
+
[key: string]: any;
|
|
2378
|
+
});
|
|
2379
|
+
}
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
2402
|
+
value?: string;
|
|
2403
|
+
static names(): {
|
|
2404
|
+
[key: string]: string;
|
|
2405
|
+
};
|
|
2406
|
+
static types(): {
|
|
2407
|
+
[key: string]: any;
|
|
2408
|
+
};
|
|
2409
|
+
constructor(map?: {
|
|
2410
|
+
[key: string]: any;
|
|
2411
|
+
});
|
|
2412
|
+
}
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
2433
|
+
value?: string;
|
|
2434
|
+
static names(): {
|
|
2435
|
+
[key: string]: string;
|
|
2436
|
+
};
|
|
2437
|
+
static types(): {
|
|
2438
|
+
[key: string]: any;
|
|
2439
|
+
};
|
|
2440
|
+
constructor(map?: {
|
|
2441
|
+
[key: string]: any;
|
|
2442
|
+
});
|
|
2443
|
+
}
|
|
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
|
+
*/
|
|
2452
|
+
h?: number;
|
|
2453
|
+
/**
|
|
2454
|
+
* @remarks
|
|
2455
|
+
* The width of the face area. Unit: pixels.
|
|
2456
|
+
*
|
|
2457
|
+
* @example
|
|
2458
|
+
* 83
|
|
2459
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
2476
|
+
y?: number;
|
|
2477
|
+
static names(): {
|
|
2478
|
+
[key: string]: string;
|
|
2479
|
+
};
|
|
2480
|
+
static types(): {
|
|
2481
|
+
[key: string]: any;
|
|
2482
|
+
};
|
|
2483
|
+
constructor(map?: {
|
|
2484
|
+
[key: string]: any;
|
|
2485
|
+
});
|
|
2486
|
+
}
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
2507
|
+
value?: string;
|
|
2508
|
+
static names(): {
|
|
2509
|
+
[key: string]: string;
|
|
2510
|
+
};
|
|
2511
|
+
static types(): {
|
|
2512
|
+
[key: string]: any;
|
|
2513
|
+
};
|
|
2514
|
+
constructor(map?: {
|
|
2515
|
+
[key: string]: any;
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
2538
|
+
value?: string;
|
|
2539
|
+
static names(): {
|
|
2540
|
+
[key: string]: string;
|
|
2541
|
+
};
|
|
2542
|
+
static types(): {
|
|
2543
|
+
[key: string]: any;
|
|
2544
|
+
};
|
|
2545
|
+
constructor(map?: {
|
|
2546
|
+
[key: string]: any;
|
|
2547
|
+
});
|
|
2548
|
+
}
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
2593
|
+
yaw?: number;
|
|
2594
|
+
static names(): {
|
|
2595
|
+
[key: string]: string;
|
|
2596
|
+
};
|
|
2597
|
+
static types(): {
|
|
2598
|
+
[key: string]: any;
|
|
2599
|
+
};
|
|
2600
|
+
constructor(map?: {
|
|
2601
|
+
[key: string]: any;
|
|
2602
|
+
});
|
|
2603
|
+
}
|
|
2604
|
+
export declare class ImageModerationResponseBodyDataExtFaceData extends $tea.Model {
|
|
2605
|
+
/**
|
|
2606
|
+
* @remarks
|
|
2607
|
+
* The age recognition result.
|
|
2608
|
+
*
|
|
2609
|
+
* @example
|
|
2610
|
+
* 18
|
|
2611
|
+
*/
|
|
2612
|
+
age?: number;
|
|
2613
|
+
/**
|
|
2614
|
+
* @remarks
|
|
2615
|
+
* Indicates whether the recognition result of bangs is available.
|
|
2616
|
+
*/
|
|
2617
|
+
bang?: ImageModerationResponseBodyDataExtFaceDataBang;
|
|
2618
|
+
/**
|
|
2619
|
+
* @remarks
|
|
2620
|
+
* The gender recognition result.
|
|
2621
|
+
*/
|
|
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
|
+
*/
|
|
2636
|
+
glasses?: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* @remarks
|
|
2639
|
+
* The hairstyle recognition result.
|
|
2640
|
+
*/
|
|
2641
|
+
hairstyle?: ImageModerationResponseBodyDataExtFaceDataHairstyle;
|
|
2642
|
+
/**
|
|
2643
|
+
* @remarks
|
|
2644
|
+
* The recognition result of whether to wear a hat.
|
|
2645
|
+
*/
|
|
2646
|
+
hat?: ImageModerationResponseBodyDataExtFaceDataHat;
|
|
2647
|
+
/**
|
|
2648
|
+
* @remarks
|
|
2649
|
+
* The location of the face.
|
|
2650
|
+
*/
|
|
2651
|
+
location?: ImageModerationResponseBodyDataExtFaceDataLocation;
|
|
2652
|
+
/**
|
|
2653
|
+
* @remarks
|
|
2654
|
+
* The recognition result of whether to wear a mask.
|
|
2655
|
+
*/
|
|
2656
|
+
mask?: ImageModerationResponseBodyDataExtFaceDataMask;
|
|
2657
|
+
/**
|
|
2658
|
+
* @remarks
|
|
2659
|
+
* The identification result of whether there is a beard.
|
|
2660
|
+
*/
|
|
2661
|
+
mustache?: ImageModerationResponseBodyDataExtFaceDataMustache;
|
|
2662
|
+
/**
|
|
2663
|
+
* @remarks
|
|
2664
|
+
* The quality information of the face image.
|
|
2665
|
+
*/
|
|
2666
|
+
quality?: ImageModerationResponseBodyDataExtFaceDataQuality;
|
|
2667
|
+
/**
|
|
2668
|
+
* @remarks
|
|
2669
|
+
* The smiling degree of the face.
|
|
2670
|
+
*
|
|
2671
|
+
* @example
|
|
2672
|
+
* 85.88
|
|
2673
|
+
*/
|
|
2674
|
+
smile?: number;
|
|
2675
|
+
static names(): {
|
|
2676
|
+
[key: string]: string;
|
|
2677
|
+
};
|
|
2678
|
+
static types(): {
|
|
2679
|
+
[key: string]: any;
|
|
2680
|
+
};
|
|
2681
|
+
constructor(map?: {
|
|
2682
|
+
[key: string]: any;
|
|
2683
|
+
});
|
|
2684
|
+
}
|
|
2144
2685
|
export declare class ImageModerationResponseBodyDataExtLogoDataLocation extends $tea.Model {
|
|
2145
2686
|
/**
|
|
2146
2687
|
* @remarks
|
|
@@ -2543,6 +3084,11 @@ export declare class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
2543
3084
|
* If a custom image library is hit, information about the hit custom image library is returned.
|
|
2544
3085
|
*/
|
|
2545
3086
|
customImage?: ImageModerationResponseBodyDataExtCustomImage[];
|
|
3087
|
+
/**
|
|
3088
|
+
* @remarks
|
|
3089
|
+
* The returned face attribute information
|
|
3090
|
+
*/
|
|
3091
|
+
faceData?: ImageModerationResponseBodyDataExtFaceData[];
|
|
2546
3092
|
/**
|
|
2547
3093
|
* @remarks
|
|
2548
3094
|
* Logo information.
|
|
@@ -2956,6 +3502,7 @@ export declare class VideoModerationResultResponseBodyDataAudioResultSliceDetail
|
|
|
2956
3502
|
* porn
|
|
2957
3503
|
*/
|
|
2958
3504
|
labels?: string;
|
|
3505
|
+
riskLevel?: string;
|
|
2959
3506
|
/**
|
|
2960
3507
|
* @remarks
|
|
2961
3508
|
* Subcategory labels. Multiple labels are separated by commas (,).
|
|
@@ -3028,6 +3575,7 @@ export declare class VideoModerationResultResponseBodyDataAudioResult extends $t
|
|
|
3028
3575
|
* Summary of voice labels.
|
|
3029
3576
|
*/
|
|
3030
3577
|
audioSummarys?: VideoModerationResultResponseBodyDataAudioResultAudioSummarys[];
|
|
3578
|
+
riskLevel?: string;
|
|
3031
3579
|
/**
|
|
3032
3580
|
* @remarks
|
|
3033
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.
|
|
@@ -3044,6 +3592,7 @@ export declare class VideoModerationResultResponseBodyDataAudioResult extends $t
|
|
|
3044
3592
|
});
|
|
3045
3593
|
}
|
|
3046
3594
|
export declare class VideoModerationResultResponseBodyDataFrameResultFrameSummarys extends $tea.Model {
|
|
3595
|
+
description?: string;
|
|
3047
3596
|
/**
|
|
3048
3597
|
* @remarks
|
|
3049
3598
|
* The label against which a captured frame is matched.
|
|
@@ -3125,6 +3674,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFramesResul
|
|
|
3125
3674
|
* 50
|
|
3126
3675
|
*/
|
|
3127
3676
|
confidence?: number;
|
|
3677
|
+
description?: string;
|
|
3128
3678
|
/**
|
|
3129
3679
|
* @remarks
|
|
3130
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.
|
|
@@ -3198,6 +3748,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFrames exte
|
|
|
3198
3748
|
* The results of frame moderation parameters such as the label parameter and the confidence parameter.
|
|
3199
3749
|
*/
|
|
3200
3750
|
results?: VideoModerationResultResponseBodyDataFrameResultFramesResults[];
|
|
3751
|
+
riskLevel?: string;
|
|
3201
3752
|
/**
|
|
3202
3753
|
* @remarks
|
|
3203
3754
|
* The temporary URL of a captured frame. This URL is valid for 30 minutes.
|
|
@@ -3243,6 +3794,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResult extends $t
|
|
|
3243
3794
|
* The information about the frames that match the labels.
|
|
3244
3795
|
*/
|
|
3245
3796
|
frames?: VideoModerationResultResponseBodyDataFrameResultFrames[];
|
|
3797
|
+
riskLevel?: string;
|
|
3246
3798
|
static names(): {
|
|
3247
3799
|
[key: string]: string;
|
|
3248
3800
|
};
|
|
@@ -3280,6 +3832,7 @@ export declare class VideoModerationResultResponseBodyData extends $tea.Model {
|
|
|
3280
3832
|
* liveId
|
|
3281
3833
|
*/
|
|
3282
3834
|
liveId?: string;
|
|
3835
|
+
riskLevel?: string;
|
|
3283
3836
|
/**
|
|
3284
3837
|
* @remarks
|
|
3285
3838
|
* The task ID.
|