tencentcloud-sdk-python 3.0.1378__py2.py3-none-any.whl → 3.0.1380__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/autoscaling/v20180419/autoscaling_client.py +5 -6
- tencentcloud/autoscaling/v20180419/models.py +398 -294
- tencentcloud/batch/v20170312/batch_client.py +3 -3
- tencentcloud/batch/v20170312/models.py +230 -168
- tencentcloud/bh/v20230418/models.py +235 -2
- tencentcloud/bi/v20220105/models.py +32 -0
- tencentcloud/cbs/v20170312/cbs_client.py +1 -1
- tencentcloud/cbs/v20170312/models.py +18 -18
- tencentcloud/cdb/v20170320/errorcodes.py +6 -0
- tencentcloud/cdb/v20170320/models.py +32 -2
- tencentcloud/cfw/v20190904/models.py +24 -24
- tencentcloud/clb/v20180317/clb_client.py +7 -7
- tencentcloud/clb/v20180317/models.py +57 -47
- tencentcloud/cynosdb/v20190107/errorcodes.py +9 -0
- tencentcloud/cynosdb/v20190107/models.py +21 -2
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- tencentcloud/dbbrain/v20210527/models.py +368 -0
- tencentcloud/dnspod/v20210323/dnspod_client.py +23 -0
- tencentcloud/dnspod/v20210323/models.py +503 -0
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +68 -44
- tencentcloud/emr/v20190103/models.py +30 -0
- tencentcloud/ess/v20201111/models.py +15 -0
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
- tencentcloud/mps/v20190612/models.py +211 -2
- tencentcloud/postgres/v20170312/models.py +12 -83
- tencentcloud/postgres/v20170312/postgres_client.py +12 -29
- tencentcloud/tbaas/v20180416/models.py +0 -234
- tencentcloud/tbaas/v20180416/tbaas_client.py +0 -23
- tencentcloud/tcb/v20180608/models.py +4 -4
- tencentcloud/tdmq/v20200217/errorcodes.py +33 -0
- tencentcloud/teo/v20220901/models.py +589 -92
- tencentcloud/teo/v20220901/teo_client.py +23 -0
- tencentcloud/thpc/v20211109/models.py +2 -2
- tencentcloud/thpc/v20220401/models.py +4 -4
- tencentcloud/thpc/v20230321/errorcodes.py +9 -0
- tencentcloud/thpc/v20230321/models.py +79 -0
- tencentcloud/thpc/v20230321/thpc_client.py +23 -0
- tencentcloud/tke/v20180525/models.py +242 -184
- tencentcloud/tmt/v20180321/errorcodes.py +3 -0
- tencentcloud/tmt/v20180321/models.py +443 -1
- tencentcloud/tmt/v20180321/tmt_client.py +28 -0
- tencentcloud/trtc/v20190722/trtc_client.py +2 -3
- tencentcloud/vpc/v20170312/models.py +162 -118
- tencentcloud/vpc/v20170312/vpc_client.py +1 -1
- tencentcloud/waf/v20180125/models.py +15 -0
- tencentcloud/wedata/v20210820/errorcodes.py +9 -0
- tencentcloud/wedata/v20210820/models.py +1839 -161
- tencentcloud/wedata/v20210820/wedata_client.py +115 -0
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1380.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1380.dist-info}/RECORD +56 -56
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1380.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1380.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1380.dist-info}/top_level.txt +0 -0
@@ -18,6 +18,87 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
+
class BoundingBox(AbstractModel):
|
22
|
+
"""段落文本框位置:x,y代表左上顶点,width和height代表宽高
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _X: 左上顶点x坐标
|
29
|
+
:type X: int
|
30
|
+
:param _Y: 左上顶点y坐标
|
31
|
+
:type Y: int
|
32
|
+
:param _Width: 宽
|
33
|
+
:type Width: int
|
34
|
+
:param _Height: 高
|
35
|
+
:type Height: int
|
36
|
+
"""
|
37
|
+
self._X = None
|
38
|
+
self._Y = None
|
39
|
+
self._Width = None
|
40
|
+
self._Height = None
|
41
|
+
|
42
|
+
@property
|
43
|
+
def X(self):
|
44
|
+
"""左上顶点x坐标
|
45
|
+
:rtype: int
|
46
|
+
"""
|
47
|
+
return self._X
|
48
|
+
|
49
|
+
@X.setter
|
50
|
+
def X(self, X):
|
51
|
+
self._X = X
|
52
|
+
|
53
|
+
@property
|
54
|
+
def Y(self):
|
55
|
+
"""左上顶点y坐标
|
56
|
+
:rtype: int
|
57
|
+
"""
|
58
|
+
return self._Y
|
59
|
+
|
60
|
+
@Y.setter
|
61
|
+
def Y(self, Y):
|
62
|
+
self._Y = Y
|
63
|
+
|
64
|
+
@property
|
65
|
+
def Width(self):
|
66
|
+
"""宽
|
67
|
+
:rtype: int
|
68
|
+
"""
|
69
|
+
return self._Width
|
70
|
+
|
71
|
+
@Width.setter
|
72
|
+
def Width(self, Width):
|
73
|
+
self._Width = Width
|
74
|
+
|
75
|
+
@property
|
76
|
+
def Height(self):
|
77
|
+
"""高
|
78
|
+
:rtype: int
|
79
|
+
"""
|
80
|
+
return self._Height
|
81
|
+
|
82
|
+
@Height.setter
|
83
|
+
def Height(self, Height):
|
84
|
+
self._Height = Height
|
85
|
+
|
86
|
+
|
87
|
+
def _deserialize(self, params):
|
88
|
+
self._X = params.get("X")
|
89
|
+
self._Y = params.get("Y")
|
90
|
+
self._Width = params.get("Width")
|
91
|
+
self._Height = params.get("Height")
|
92
|
+
memeber_set = set(params.keys())
|
93
|
+
for name, value in vars(self).items():
|
94
|
+
property_name = name[1:]
|
95
|
+
if property_name in memeber_set:
|
96
|
+
memeber_set.remove(property_name)
|
97
|
+
if len(memeber_set) > 0:
|
98
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
99
|
+
|
100
|
+
|
101
|
+
|
21
102
|
class FileTranslateRequest(AbstractModel):
|
22
103
|
"""FileTranslate请求参数结构体
|
23
104
|
|
@@ -519,6 +600,254 @@ class ImageRecord(AbstractModel):
|
|
519
600
|
|
520
601
|
|
521
602
|
|
603
|
+
class ImageTranslateLLMRequest(AbstractModel):
|
604
|
+
"""ImageTranslateLLM请求参数结构体
|
605
|
+
|
606
|
+
"""
|
607
|
+
|
608
|
+
def __init__(self):
|
609
|
+
r"""
|
610
|
+
:param _Data: 图片数据的Base64字符串,经Base64编码后不超过 9M,分辨率建议600*800以上,支持PNG、JPG、JPEG格式。
|
611
|
+
:type Data: str
|
612
|
+
:param _Target: 目标语言,支持语言列表:
|
613
|
+
|
614
|
+
- 中文:zh
|
615
|
+
- 繁体(台湾):zh-TW
|
616
|
+
- 繁体(香港):zh-HK
|
617
|
+
- 英文:en
|
618
|
+
- 日语:ja
|
619
|
+
- 韩语:ko
|
620
|
+
- 泰语:th
|
621
|
+
- 越南语:vi
|
622
|
+
- 俄语:ru
|
623
|
+
- 德语:de
|
624
|
+
- 法语:fr
|
625
|
+
- 阿拉伯语:ar
|
626
|
+
- 西班牙语:es
|
627
|
+
- 意大利语:it
|
628
|
+
- 印度尼西亚语:id
|
629
|
+
- 马来西亚语:ms
|
630
|
+
- 葡萄牙语:pt
|
631
|
+
- 土耳其语:tr
|
632
|
+
-
|
633
|
+
:type Target: str
|
634
|
+
:param _Url: 输入图 Url。 使用Url的时候,Data参数需要传入""。 图片限制:小于 10MB,分辨率建议600*800以上,格式支持 jpg、jpeg、png。
|
635
|
+
|
636
|
+
:type Url: str
|
637
|
+
"""
|
638
|
+
self._Data = None
|
639
|
+
self._Target = None
|
640
|
+
self._Url = None
|
641
|
+
|
642
|
+
@property
|
643
|
+
def Data(self):
|
644
|
+
"""图片数据的Base64字符串,经Base64编码后不超过 9M,分辨率建议600*800以上,支持PNG、JPG、JPEG格式。
|
645
|
+
:rtype: str
|
646
|
+
"""
|
647
|
+
return self._Data
|
648
|
+
|
649
|
+
@Data.setter
|
650
|
+
def Data(self, Data):
|
651
|
+
self._Data = Data
|
652
|
+
|
653
|
+
@property
|
654
|
+
def Target(self):
|
655
|
+
"""目标语言,支持语言列表:
|
656
|
+
|
657
|
+
- 中文:zh
|
658
|
+
- 繁体(台湾):zh-TW
|
659
|
+
- 繁体(香港):zh-HK
|
660
|
+
- 英文:en
|
661
|
+
- 日语:ja
|
662
|
+
- 韩语:ko
|
663
|
+
- 泰语:th
|
664
|
+
- 越南语:vi
|
665
|
+
- 俄语:ru
|
666
|
+
- 德语:de
|
667
|
+
- 法语:fr
|
668
|
+
- 阿拉伯语:ar
|
669
|
+
- 西班牙语:es
|
670
|
+
- 意大利语:it
|
671
|
+
- 印度尼西亚语:id
|
672
|
+
- 马来西亚语:ms
|
673
|
+
- 葡萄牙语:pt
|
674
|
+
- 土耳其语:tr
|
675
|
+
-
|
676
|
+
:rtype: str
|
677
|
+
"""
|
678
|
+
return self._Target
|
679
|
+
|
680
|
+
@Target.setter
|
681
|
+
def Target(self, Target):
|
682
|
+
self._Target = Target
|
683
|
+
|
684
|
+
@property
|
685
|
+
def Url(self):
|
686
|
+
"""输入图 Url。 使用Url的时候,Data参数需要传入""。 图片限制:小于 10MB,分辨率建议600*800以上,格式支持 jpg、jpeg、png。
|
687
|
+
|
688
|
+
:rtype: str
|
689
|
+
"""
|
690
|
+
return self._Url
|
691
|
+
|
692
|
+
@Url.setter
|
693
|
+
def Url(self, Url):
|
694
|
+
self._Url = Url
|
695
|
+
|
696
|
+
|
697
|
+
def _deserialize(self, params):
|
698
|
+
self._Data = params.get("Data")
|
699
|
+
self._Target = params.get("Target")
|
700
|
+
self._Url = params.get("Url")
|
701
|
+
memeber_set = set(params.keys())
|
702
|
+
for name, value in vars(self).items():
|
703
|
+
property_name = name[1:]
|
704
|
+
if property_name in memeber_set:
|
705
|
+
memeber_set.remove(property_name)
|
706
|
+
if len(memeber_set) > 0:
|
707
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
class ImageTranslateLLMResponse(AbstractModel):
|
712
|
+
"""ImageTranslateLLM返回参数结构体
|
713
|
+
|
714
|
+
"""
|
715
|
+
|
716
|
+
def __init__(self):
|
717
|
+
r"""
|
718
|
+
:param _Data: 图片数据的Base64字符串,输出格式为JPG。
|
719
|
+
|
720
|
+
:type Data: str
|
721
|
+
:param _Source: 原文本主要源语言。
|
722
|
+
:type Source: str
|
723
|
+
:param _Target: 目标翻译语言。
|
724
|
+
:type Target: str
|
725
|
+
:param _SourceText: 图片中的全部原文本。
|
726
|
+
:type SourceText: str
|
727
|
+
:param _TargetText: 图片中全部译文。
|
728
|
+
:type TargetText: str
|
729
|
+
:param _Angle: 逆时针图片角度,取值范围为0-359
|
730
|
+
:type Angle: float
|
731
|
+
:param _TransDetails: 翻译详情信息
|
732
|
+
:type TransDetails: list of TransDetail
|
733
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
734
|
+
:type RequestId: str
|
735
|
+
"""
|
736
|
+
self._Data = None
|
737
|
+
self._Source = None
|
738
|
+
self._Target = None
|
739
|
+
self._SourceText = None
|
740
|
+
self._TargetText = None
|
741
|
+
self._Angle = None
|
742
|
+
self._TransDetails = None
|
743
|
+
self._RequestId = None
|
744
|
+
|
745
|
+
@property
|
746
|
+
def Data(self):
|
747
|
+
"""图片数据的Base64字符串,输出格式为JPG。
|
748
|
+
|
749
|
+
:rtype: str
|
750
|
+
"""
|
751
|
+
return self._Data
|
752
|
+
|
753
|
+
@Data.setter
|
754
|
+
def Data(self, Data):
|
755
|
+
self._Data = Data
|
756
|
+
|
757
|
+
@property
|
758
|
+
def Source(self):
|
759
|
+
"""原文本主要源语言。
|
760
|
+
:rtype: str
|
761
|
+
"""
|
762
|
+
return self._Source
|
763
|
+
|
764
|
+
@Source.setter
|
765
|
+
def Source(self, Source):
|
766
|
+
self._Source = Source
|
767
|
+
|
768
|
+
@property
|
769
|
+
def Target(self):
|
770
|
+
"""目标翻译语言。
|
771
|
+
:rtype: str
|
772
|
+
"""
|
773
|
+
return self._Target
|
774
|
+
|
775
|
+
@Target.setter
|
776
|
+
def Target(self, Target):
|
777
|
+
self._Target = Target
|
778
|
+
|
779
|
+
@property
|
780
|
+
def SourceText(self):
|
781
|
+
"""图片中的全部原文本。
|
782
|
+
:rtype: str
|
783
|
+
"""
|
784
|
+
return self._SourceText
|
785
|
+
|
786
|
+
@SourceText.setter
|
787
|
+
def SourceText(self, SourceText):
|
788
|
+
self._SourceText = SourceText
|
789
|
+
|
790
|
+
@property
|
791
|
+
def TargetText(self):
|
792
|
+
"""图片中全部译文。
|
793
|
+
:rtype: str
|
794
|
+
"""
|
795
|
+
return self._TargetText
|
796
|
+
|
797
|
+
@TargetText.setter
|
798
|
+
def TargetText(self, TargetText):
|
799
|
+
self._TargetText = TargetText
|
800
|
+
|
801
|
+
@property
|
802
|
+
def Angle(self):
|
803
|
+
"""逆时针图片角度,取值范围为0-359
|
804
|
+
:rtype: float
|
805
|
+
"""
|
806
|
+
return self._Angle
|
807
|
+
|
808
|
+
@Angle.setter
|
809
|
+
def Angle(self, Angle):
|
810
|
+
self._Angle = Angle
|
811
|
+
|
812
|
+
@property
|
813
|
+
def TransDetails(self):
|
814
|
+
"""翻译详情信息
|
815
|
+
:rtype: list of TransDetail
|
816
|
+
"""
|
817
|
+
return self._TransDetails
|
818
|
+
|
819
|
+
@TransDetails.setter
|
820
|
+
def TransDetails(self, TransDetails):
|
821
|
+
self._TransDetails = TransDetails
|
822
|
+
|
823
|
+
@property
|
824
|
+
def RequestId(self):
|
825
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
826
|
+
:rtype: str
|
827
|
+
"""
|
828
|
+
return self._RequestId
|
829
|
+
|
830
|
+
@RequestId.setter
|
831
|
+
def RequestId(self, RequestId):
|
832
|
+
self._RequestId = RequestId
|
833
|
+
|
834
|
+
|
835
|
+
def _deserialize(self, params):
|
836
|
+
self._Data = params.get("Data")
|
837
|
+
self._Source = params.get("Source")
|
838
|
+
self._Target = params.get("Target")
|
839
|
+
self._SourceText = params.get("SourceText")
|
840
|
+
self._TargetText = params.get("TargetText")
|
841
|
+
self._Angle = params.get("Angle")
|
842
|
+
if params.get("TransDetails") is not None:
|
843
|
+
self._TransDetails = []
|
844
|
+
for item in params.get("TransDetails"):
|
845
|
+
obj = TransDetail()
|
846
|
+
obj._deserialize(item)
|
847
|
+
self._TransDetails.append(obj)
|
848
|
+
self._RequestId = params.get("RequestId")
|
849
|
+
|
850
|
+
|
522
851
|
class ImageTranslateRequest(AbstractModel):
|
523
852
|
"""ImageTranslate请求参数结构体
|
524
853
|
|
@@ -1880,4 +2209,117 @@ class TextTranslateResponse(AbstractModel):
|
|
1880
2209
|
self._Source = params.get("Source")
|
1881
2210
|
self._Target = params.get("Target")
|
1882
2211
|
self._UsedAmount = params.get("UsedAmount")
|
1883
|
-
self._RequestId = params.get("RequestId")
|
2212
|
+
self._RequestId = params.get("RequestId")
|
2213
|
+
|
2214
|
+
|
2215
|
+
class TransDetail(AbstractModel):
|
2216
|
+
"""大模型图片翻译详情信息
|
2217
|
+
|
2218
|
+
"""
|
2219
|
+
|
2220
|
+
def __init__(self):
|
2221
|
+
r"""
|
2222
|
+
:param _SourceLineText: 当前行的原文本
|
2223
|
+
:type SourceLineText: str
|
2224
|
+
:param _TargetLineText: 当前行的译文
|
2225
|
+
:type TargetLineText: str
|
2226
|
+
:param _BoundingBox: 段落文本框位置
|
2227
|
+
:type BoundingBox: :class:`tencentcloud.tmt.v20180321.models.BoundingBox`
|
2228
|
+
:param _LinesCount: 行数
|
2229
|
+
:type LinesCount: int
|
2230
|
+
:param _LineHeight: 行高
|
2231
|
+
:type LineHeight: int
|
2232
|
+
:param _SpamCode: 正常段落spam_code字段为0;如果存在spam_code字段且值大于0(1: 命中垃圾检查;2: 命中安全策略;3: 其他。),则命中安全检查被过滤。
|
2233
|
+
:type SpamCode: int
|
2234
|
+
"""
|
2235
|
+
self._SourceLineText = None
|
2236
|
+
self._TargetLineText = None
|
2237
|
+
self._BoundingBox = None
|
2238
|
+
self._LinesCount = None
|
2239
|
+
self._LineHeight = None
|
2240
|
+
self._SpamCode = None
|
2241
|
+
|
2242
|
+
@property
|
2243
|
+
def SourceLineText(self):
|
2244
|
+
"""当前行的原文本
|
2245
|
+
:rtype: str
|
2246
|
+
"""
|
2247
|
+
return self._SourceLineText
|
2248
|
+
|
2249
|
+
@SourceLineText.setter
|
2250
|
+
def SourceLineText(self, SourceLineText):
|
2251
|
+
self._SourceLineText = SourceLineText
|
2252
|
+
|
2253
|
+
@property
|
2254
|
+
def TargetLineText(self):
|
2255
|
+
"""当前行的译文
|
2256
|
+
:rtype: str
|
2257
|
+
"""
|
2258
|
+
return self._TargetLineText
|
2259
|
+
|
2260
|
+
@TargetLineText.setter
|
2261
|
+
def TargetLineText(self, TargetLineText):
|
2262
|
+
self._TargetLineText = TargetLineText
|
2263
|
+
|
2264
|
+
@property
|
2265
|
+
def BoundingBox(self):
|
2266
|
+
"""段落文本框位置
|
2267
|
+
:rtype: :class:`tencentcloud.tmt.v20180321.models.BoundingBox`
|
2268
|
+
"""
|
2269
|
+
return self._BoundingBox
|
2270
|
+
|
2271
|
+
@BoundingBox.setter
|
2272
|
+
def BoundingBox(self, BoundingBox):
|
2273
|
+
self._BoundingBox = BoundingBox
|
2274
|
+
|
2275
|
+
@property
|
2276
|
+
def LinesCount(self):
|
2277
|
+
"""行数
|
2278
|
+
:rtype: int
|
2279
|
+
"""
|
2280
|
+
return self._LinesCount
|
2281
|
+
|
2282
|
+
@LinesCount.setter
|
2283
|
+
def LinesCount(self, LinesCount):
|
2284
|
+
self._LinesCount = LinesCount
|
2285
|
+
|
2286
|
+
@property
|
2287
|
+
def LineHeight(self):
|
2288
|
+
"""行高
|
2289
|
+
:rtype: int
|
2290
|
+
"""
|
2291
|
+
return self._LineHeight
|
2292
|
+
|
2293
|
+
@LineHeight.setter
|
2294
|
+
def LineHeight(self, LineHeight):
|
2295
|
+
self._LineHeight = LineHeight
|
2296
|
+
|
2297
|
+
@property
|
2298
|
+
def SpamCode(self):
|
2299
|
+
"""正常段落spam_code字段为0;如果存在spam_code字段且值大于0(1: 命中垃圾检查;2: 命中安全策略;3: 其他。),则命中安全检查被过滤。
|
2300
|
+
:rtype: int
|
2301
|
+
"""
|
2302
|
+
return self._SpamCode
|
2303
|
+
|
2304
|
+
@SpamCode.setter
|
2305
|
+
def SpamCode(self, SpamCode):
|
2306
|
+
self._SpamCode = SpamCode
|
2307
|
+
|
2308
|
+
|
2309
|
+
def _deserialize(self, params):
|
2310
|
+
self._SourceLineText = params.get("SourceLineText")
|
2311
|
+
self._TargetLineText = params.get("TargetLineText")
|
2312
|
+
if params.get("BoundingBox") is not None:
|
2313
|
+
self._BoundingBox = BoundingBox()
|
2314
|
+
self._BoundingBox._deserialize(params.get("BoundingBox"))
|
2315
|
+
self._LinesCount = params.get("LinesCount")
|
2316
|
+
self._LineHeight = params.get("LineHeight")
|
2317
|
+
self._SpamCode = params.get("SpamCode")
|
2318
|
+
memeber_set = set(params.keys())
|
2319
|
+
for name, value in vars(self).items():
|
2320
|
+
property_name = name[1:]
|
2321
|
+
if property_name in memeber_set:
|
2322
|
+
memeber_set.remove(property_name)
|
2323
|
+
if len(memeber_set) > 0:
|
2324
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2325
|
+
|
@@ -98,6 +98,34 @@ class TmtClient(AbstractClient):
|
|
98
98
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
99
99
|
|
100
100
|
|
101
|
+
def ImageTranslateLLM(self, request):
|
102
|
+
"""提供18种语言的图片翻译服务,可自动识别图片中的文本内容并翻译成目标语言,识别后的文本按行翻译,后续会提供可按段落翻译的版本。
|
103
|
+
|
104
|
+
- 输入图片格式:png、jpg、jpeg等常用图片格式,不支持gif动图。
|
105
|
+
- 输出图片格式:jpg。
|
106
|
+
|
107
|
+
提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源 部分。
|
108
|
+
|
109
|
+
:param request: Request instance for ImageTranslateLLM.
|
110
|
+
:type request: :class:`tencentcloud.tmt.v20180321.models.ImageTranslateLLMRequest`
|
111
|
+
:rtype: :class:`tencentcloud.tmt.v20180321.models.ImageTranslateLLMResponse`
|
112
|
+
|
113
|
+
"""
|
114
|
+
try:
|
115
|
+
params = request._serialize()
|
116
|
+
headers = request.headers
|
117
|
+
body = self.call("ImageTranslateLLM", params, headers=headers)
|
118
|
+
response = json.loads(body)
|
119
|
+
model = models.ImageTranslateLLMResponse()
|
120
|
+
model._deserialize(response["Response"])
|
121
|
+
return model
|
122
|
+
except Exception as e:
|
123
|
+
if isinstance(e, TencentCloudSDKException):
|
124
|
+
raise
|
125
|
+
else:
|
126
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
127
|
+
|
128
|
+
|
101
129
|
def LanguageDetect(self, request):
|
102
130
|
"""可自动识别文本内容的语言种类,轻量高效,无需额外实现判断方式,使面向客户的服务体验更佳。 <br />
|
103
131
|
提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源 部分。
|
@@ -633,7 +633,7 @@ class TrtcClient(AbstractClient):
|
|
633
633
|
-视频卡顿率
|
634
634
|
-音频卡顿率
|
635
635
|
注意:
|
636
|
-
1
|
636
|
+
1.调用接口需开通监控仪表盘【基础版】和【进阶版】,监控仪表盘【免费版】不支持调用,详情参考[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)。
|
637
637
|
2.查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时。
|
638
638
|
|
639
639
|
:param request: Request instance for DescribeTRTCRealTimeQualityData.
|
@@ -689,9 +689,8 @@ class TrtcClient(AbstractClient):
|
|
689
689
|
-userCount(在线用户数)
|
690
690
|
-roomCount(在线房间数)
|
691
691
|
注意:
|
692
|
-
1
|
692
|
+
1.调用接口需开通监控仪表盘【基础版】和【进阶版】,监控仪表盘【免费版】不支持调用,详情参考[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)。
|
693
693
|
2.查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时。
|
694
|
-
3.除此之外您也可以通过[订阅TRTC包月套餐](https://buy.cloud.tencent.com/trtc)尊享版或旗舰版解锁此接口的调用能力,请在开通包月套餐后,请[提交工单](https://console.cloud.tencent.com/workorder/category)联系售后解锁调用能力
|
695
694
|
|
696
695
|
:param request: Request instance for DescribeTRTCRealTimeScaleData.
|
697
696
|
:type request: :class:`tencentcloud.trtc.v20190722.models.DescribeTRTCRealTimeScaleDataRequest`
|