tencentcloud-sdk-python 3.0.1330__py2.py3-none-any.whl → 3.0.1332__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.
@@ -1572,6 +1572,92 @@ class ObjectResult(AbstractModel):
1572
1572
 
1573
1573
 
1574
1574
 
1575
+ class OcrHitInfo(AbstractModel):
1576
+ """ocr关键词命中位置信息
1577
+
1578
+ """
1579
+
1580
+ def __init__(self):
1581
+ r"""
1582
+ :param _Type: 标识模型命中还是关键词命中
1583
+ :type Type: str
1584
+ :param _Keyword: 命中关键词
1585
+ :type Keyword: str
1586
+ :param _LibName: 自定义词库名称
1587
+ :type LibName: str
1588
+ :param _Positions: 位置信息
1589
+ :type Positions: list of Positions
1590
+ """
1591
+ self._Type = None
1592
+ self._Keyword = None
1593
+ self._LibName = None
1594
+ self._Positions = None
1595
+
1596
+ @property
1597
+ def Type(self):
1598
+ """标识模型命中还是关键词命中
1599
+ :rtype: str
1600
+ """
1601
+ return self._Type
1602
+
1603
+ @Type.setter
1604
+ def Type(self, Type):
1605
+ self._Type = Type
1606
+
1607
+ @property
1608
+ def Keyword(self):
1609
+ """命中关键词
1610
+ :rtype: str
1611
+ """
1612
+ return self._Keyword
1613
+
1614
+ @Keyword.setter
1615
+ def Keyword(self, Keyword):
1616
+ self._Keyword = Keyword
1617
+
1618
+ @property
1619
+ def LibName(self):
1620
+ """自定义词库名称
1621
+ :rtype: str
1622
+ """
1623
+ return self._LibName
1624
+
1625
+ @LibName.setter
1626
+ def LibName(self, LibName):
1627
+ self._LibName = LibName
1628
+
1629
+ @property
1630
+ def Positions(self):
1631
+ """位置信息
1632
+ :rtype: list of Positions
1633
+ """
1634
+ return self._Positions
1635
+
1636
+ @Positions.setter
1637
+ def Positions(self, Positions):
1638
+ self._Positions = Positions
1639
+
1640
+
1641
+ def _deserialize(self, params):
1642
+ self._Type = params.get("Type")
1643
+ self._Keyword = params.get("Keyword")
1644
+ self._LibName = params.get("LibName")
1645
+ if params.get("Positions") is not None:
1646
+ self._Positions = []
1647
+ for item in params.get("Positions"):
1648
+ obj = Positions()
1649
+ obj._deserialize(item)
1650
+ self._Positions.append(obj)
1651
+ memeber_set = set(params.keys())
1652
+ for name, value in vars(self).items():
1653
+ property_name = name[1:]
1654
+ if property_name in memeber_set:
1655
+ memeber_set.remove(property_name)
1656
+ if len(memeber_set) > 0:
1657
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1658
+
1659
+
1660
+
1575
1661
  class OcrResult(AbstractModel):
1576
1662
  """用于返回OCR结果检测详情
1577
1663
 
@@ -1730,6 +1816,8 @@ class OcrTextDetail(AbstractModel):
1730
1816
  :type Rate: int
1731
1817
  :param _SubLabel: 该字段用于返回检测结果所对应的恶意二级标签。
1732
1818
  :type SubLabel: str
1819
+ :param _HitInfos: 关键词命中位置信息
1820
+ :type HitInfos: list of OcrHitInfo
1733
1821
  """
1734
1822
  self._Text = None
1735
1823
  self._Label = None
@@ -1740,6 +1828,7 @@ class OcrTextDetail(AbstractModel):
1740
1828
  self._Location = None
1741
1829
  self._Rate = None
1742
1830
  self._SubLabel = None
1831
+ self._HitInfos = None
1743
1832
 
1744
1833
  @property
1745
1834
  def Text(self):
@@ -1840,6 +1929,17 @@ class OcrTextDetail(AbstractModel):
1840
1929
  def SubLabel(self, SubLabel):
1841
1930
  self._SubLabel = SubLabel
1842
1931
 
1932
+ @property
1933
+ def HitInfos(self):
1934
+ """关键词命中位置信息
1935
+ :rtype: list of OcrHitInfo
1936
+ """
1937
+ return self._HitInfos
1938
+
1939
+ @HitInfos.setter
1940
+ def HitInfos(self, HitInfos):
1941
+ self._HitInfos = HitInfos
1942
+
1843
1943
 
1844
1944
  def _deserialize(self, params):
1845
1945
  self._Text = params.get("Text")
@@ -1853,6 +1953,63 @@ class OcrTextDetail(AbstractModel):
1853
1953
  self._Location._deserialize(params.get("Location"))
1854
1954
  self._Rate = params.get("Rate")
1855
1955
  self._SubLabel = params.get("SubLabel")
1956
+ if params.get("HitInfos") is not None:
1957
+ self._HitInfos = []
1958
+ for item in params.get("HitInfos"):
1959
+ obj = OcrHitInfo()
1960
+ obj._deserialize(item)
1961
+ self._HitInfos.append(obj)
1962
+ memeber_set = set(params.keys())
1963
+ for name, value in vars(self).items():
1964
+ property_name = name[1:]
1965
+ if property_name in memeber_set:
1966
+ memeber_set.remove(property_name)
1967
+ if len(memeber_set) > 0:
1968
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1969
+
1970
+
1971
+
1972
+ class Positions(AbstractModel):
1973
+ """标识命中的违规关键词位置信息
1974
+
1975
+ """
1976
+
1977
+ def __init__(self):
1978
+ r"""
1979
+ :param _Start: 关键词起始位置
1980
+ :type Start: int
1981
+ :param _End: 关键词结束位置
1982
+ :type End: int
1983
+ """
1984
+ self._Start = None
1985
+ self._End = None
1986
+
1987
+ @property
1988
+ def Start(self):
1989
+ """关键词起始位置
1990
+ :rtype: int
1991
+ """
1992
+ return self._Start
1993
+
1994
+ @Start.setter
1995
+ def Start(self, Start):
1996
+ self._Start = Start
1997
+
1998
+ @property
1999
+ def End(self):
2000
+ """关键词结束位置
2001
+ :rtype: int
2002
+ """
2003
+ return self._End
2004
+
2005
+ @End.setter
2006
+ def End(self, End):
2007
+ self._End = End
2008
+
2009
+
2010
+ def _deserialize(self, params):
2011
+ self._Start = params.get("Start")
2012
+ self._End = params.get("End")
1856
2013
  memeber_set = set(params.keys())
1857
2014
  for name, value in vars(self).items():
1858
2015
  property_name = name[1:]
@@ -24863,13 +24863,10 @@ class DiagnoseResult(AbstractModel):
24863
24863
  def __init__(self):
24864
24864
  r"""
24865
24865
  :param _StreamBrokenResults: 断流信息
24866
- 注意:此字段可能返回 null,表示取不到有效值。
24867
24866
  :type StreamBrokenResults: list of str
24868
24867
  :param _LowFrameRateResults: 低帧率信息
24869
- 注意:此字段可能返回 null,表示取不到有效值。
24870
24868
  :type LowFrameRateResults: list of str
24871
24869
  :param _StreamFormatResults: 流格式诊断信息
24872
- 注意:此字段可能返回 null,表示取不到有效值。
24873
24870
  :type StreamFormatResults: list of str
24874
24871
  """
24875
24872
  self._StreamBrokenResults = None
@@ -24879,7 +24876,6 @@ class DiagnoseResult(AbstractModel):
24879
24876
  @property
24880
24877
  def StreamBrokenResults(self):
24881
24878
  """断流信息
24882
- 注意:此字段可能返回 null,表示取不到有效值。
24883
24879
  :rtype: list of str
24884
24880
  """
24885
24881
  return self._StreamBrokenResults
@@ -24891,7 +24887,6 @@ class DiagnoseResult(AbstractModel):
24891
24887
  @property
24892
24888
  def LowFrameRateResults(self):
24893
24889
  """低帧率信息
24894
- 注意:此字段可能返回 null,表示取不到有效值。
24895
24890
  :rtype: list of str
24896
24891
  """
24897
24892
  return self._LowFrameRateResults
@@ -24903,7 +24898,6 @@ class DiagnoseResult(AbstractModel):
24903
24898
  @property
24904
24899
  def StreamFormatResults(self):
24905
24900
  """流格式诊断信息
24906
- 注意:此字段可能返回 null,表示取不到有效值。
24907
24901
  :rtype: list of str
24908
24902
  """
24909
24903
  return self._StreamFormatResults
@@ -27014,68 +27008,48 @@ class LiveStreamMonitorInfo(AbstractModel):
27014
27008
  def __init__(self):
27015
27009
  r"""
27016
27010
  :param _MonitorId: 监播任务ID。
27017
- 注意:此字段可能返回 null,表示取不到有效值。
27018
27011
  :type MonitorId: str
27019
27012
  :param _MonitorName: 监播任务名称。128字节以内。
27020
- 注意:此字段可能返回 null,表示取不到有效值。
27021
27013
  :type MonitorName: str
27022
27014
  :param _OutputInfo: 监播任务输出信息。
27023
- 注意:此字段可能返回 null,表示取不到有效值。
27024
27015
  :type OutputInfo: :class:`tencentcloud.live.v20180801.models.LiveStreamMonitorOutputInfo`
27025
27016
  :param _InputList: 待监播的输入流信息。
27026
- 注意:此字段可能返回 null,表示取不到有效值。
27027
27017
  :type InputList: list of LiveStreamMonitorInputInfo
27028
27018
  :param _Status: 监播任务状态。
27029
27019
  0: 代表空闲
27030
27020
  1: 代表监播中。
27031
- 注意:此字段可能返回 null,表示取不到有效值。
27032
27021
  :type Status: int
27033
27022
  :param _StartTime: 上一次的启动时间,unix时间戳。
27034
- 注意:此字段可能返回 null,表示取不到有效值。
27035
27023
  :type StartTime: int
27036
27024
  :param _StopTime: 上一次的停止时间,unix时间戳。
27037
- 注意:此字段可能返回 null,表示取不到有效值。
27038
27025
  :type StopTime: int
27039
27026
  :param _CreateTime: 监播任务创建时间,unix时间戳
27040
- 注意:此字段可能返回 null,表示取不到有效值。
27041
27027
  :type CreateTime: int
27042
27028
  :param _UpdateTime: 监播任务更新时间,unix时间戳
27043
- 注意:此字段可能返回 null,表示取不到有效值。
27044
27029
  :type UpdateTime: int
27045
27030
  :param _NotifyPolicy: 监播事件通知策略。
27046
- 注意:此字段可能返回 null,表示取不到有效值。
27047
27031
  :type NotifyPolicy: :class:`tencentcloud.live.v20180801.models.LiveStreamMonitorNotifyPolicy`
27048
27032
  :param _AudibleInputIndexList: 输出音频的输入Index列表。
27049
- 注意:此字段可能返回 null,表示取不到有效值。
27050
27033
  :type AudibleInputIndexList: list of int non-negative
27051
27034
  :param _AiAsrInputIndexList: 开启智能语音识别的输入Index列表
27052
- 注意:此字段可能返回 null,表示取不到有效值。
27053
27035
  :type AiAsrInputIndexList: list of int non-negative
27054
27036
  :param _CheckStreamBroken: 是否开启断流检测
27055
- 注意:此字段可能返回 null,表示取不到有效值。
27056
27037
  :type CheckStreamBroken: int
27057
27038
  :param _CheckStreamLowFrameRate: 是否开启低帧率检测
27058
- 注意:此字段可能返回 null,表示取不到有效值。
27059
27039
  :type CheckStreamLowFrameRate: int
27060
27040
  :param _AsrLanguage: 智能语音识别语种:
27061
27041
  0 关闭 1 中文 2 英文 3日文 4 韩文
27062
- 注意:此字段可能返回 null,表示取不到有效值。
27063
27042
  :type AsrLanguage: int
27064
27043
  :param _OcrLanguage: 智能文字识别语种:
27065
27044
  0 关闭 1 中、英文
27066
- 注意:此字段可能返回 null,表示取不到有效值。
27067
27045
  :type OcrLanguage: int
27068
27046
  :param _AiOcrInputIndexList: 开启智能文字识别的输入Index列表
27069
- 注意:此字段可能返回 null,表示取不到有效值。
27070
27047
  :type AiOcrInputIndexList: list of int non-negative
27071
27048
  :param _AllowMonitorReport: 是否存储监播事件到监播报告,以及是否允许查询监播报告
27072
- 注意:此字段可能返回 null,表示取不到有效值。
27073
27049
  :type AllowMonitorReport: int
27074
27050
  :param _AiFormatDiagnose: 是否开启格式诊断
27075
- 注意:此字段可能返回 null,表示取不到有效值。
27076
27051
  :type AiFormatDiagnose: int
27077
27052
  :param _AiQualityControl: 是否开启内容质检。
27078
- 注意:此字段可能返回 null,表示取不到有效值。
27079
27053
  :type AiQualityControl: int
27080
27054
  :param _CasterId: 导播台监播对应的导播台场次id
27081
27055
  :type CasterId: str
@@ -27108,7 +27082,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27108
27082
  @property
27109
27083
  def MonitorId(self):
27110
27084
  """监播任务ID。
27111
- 注意:此字段可能返回 null,表示取不到有效值。
27112
27085
  :rtype: str
27113
27086
  """
27114
27087
  return self._MonitorId
@@ -27120,7 +27093,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27120
27093
  @property
27121
27094
  def MonitorName(self):
27122
27095
  """监播任务名称。128字节以内。
27123
- 注意:此字段可能返回 null,表示取不到有效值。
27124
27096
  :rtype: str
27125
27097
  """
27126
27098
  return self._MonitorName
@@ -27132,7 +27104,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27132
27104
  @property
27133
27105
  def OutputInfo(self):
27134
27106
  """监播任务输出信息。
27135
- 注意:此字段可能返回 null,表示取不到有效值。
27136
27107
  :rtype: :class:`tencentcloud.live.v20180801.models.LiveStreamMonitorOutputInfo`
27137
27108
  """
27138
27109
  return self._OutputInfo
@@ -27144,7 +27115,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27144
27115
  @property
27145
27116
  def InputList(self):
27146
27117
  """待监播的输入流信息。
27147
- 注意:此字段可能返回 null,表示取不到有效值。
27148
27118
  :rtype: list of LiveStreamMonitorInputInfo
27149
27119
  """
27150
27120
  return self._InputList
@@ -27158,7 +27128,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27158
27128
  """监播任务状态。
27159
27129
  0: 代表空闲
27160
27130
  1: 代表监播中。
27161
- 注意:此字段可能返回 null,表示取不到有效值。
27162
27131
  :rtype: int
27163
27132
  """
27164
27133
  return self._Status
@@ -27170,7 +27139,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27170
27139
  @property
27171
27140
  def StartTime(self):
27172
27141
  """上一次的启动时间,unix时间戳。
27173
- 注意:此字段可能返回 null,表示取不到有效值。
27174
27142
  :rtype: int
27175
27143
  """
27176
27144
  return self._StartTime
@@ -27182,7 +27150,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27182
27150
  @property
27183
27151
  def StopTime(self):
27184
27152
  """上一次的停止时间,unix时间戳。
27185
- 注意:此字段可能返回 null,表示取不到有效值。
27186
27153
  :rtype: int
27187
27154
  """
27188
27155
  return self._StopTime
@@ -27194,7 +27161,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27194
27161
  @property
27195
27162
  def CreateTime(self):
27196
27163
  """监播任务创建时间,unix时间戳
27197
- 注意:此字段可能返回 null,表示取不到有效值。
27198
27164
  :rtype: int
27199
27165
  """
27200
27166
  return self._CreateTime
@@ -27206,7 +27172,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27206
27172
  @property
27207
27173
  def UpdateTime(self):
27208
27174
  """监播任务更新时间,unix时间戳
27209
- 注意:此字段可能返回 null,表示取不到有效值。
27210
27175
  :rtype: int
27211
27176
  """
27212
27177
  return self._UpdateTime
@@ -27218,7 +27183,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27218
27183
  @property
27219
27184
  def NotifyPolicy(self):
27220
27185
  """监播事件通知策略。
27221
- 注意:此字段可能返回 null,表示取不到有效值。
27222
27186
  :rtype: :class:`tencentcloud.live.v20180801.models.LiveStreamMonitorNotifyPolicy`
27223
27187
  """
27224
27188
  return self._NotifyPolicy
@@ -27230,7 +27194,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27230
27194
  @property
27231
27195
  def AudibleInputIndexList(self):
27232
27196
  """输出音频的输入Index列表。
27233
- 注意:此字段可能返回 null,表示取不到有效值。
27234
27197
  :rtype: list of int non-negative
27235
27198
  """
27236
27199
  return self._AudibleInputIndexList
@@ -27242,7 +27205,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27242
27205
  @property
27243
27206
  def AiAsrInputIndexList(self):
27244
27207
  """开启智能语音识别的输入Index列表
27245
- 注意:此字段可能返回 null,表示取不到有效值。
27246
27208
  :rtype: list of int non-negative
27247
27209
  """
27248
27210
  return self._AiAsrInputIndexList
@@ -27254,7 +27216,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27254
27216
  @property
27255
27217
  def CheckStreamBroken(self):
27256
27218
  """是否开启断流检测
27257
- 注意:此字段可能返回 null,表示取不到有效值。
27258
27219
  :rtype: int
27259
27220
  """
27260
27221
  return self._CheckStreamBroken
@@ -27266,7 +27227,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27266
27227
  @property
27267
27228
  def CheckStreamLowFrameRate(self):
27268
27229
  """是否开启低帧率检测
27269
- 注意:此字段可能返回 null,表示取不到有效值。
27270
27230
  :rtype: int
27271
27231
  """
27272
27232
  return self._CheckStreamLowFrameRate
@@ -27279,7 +27239,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27279
27239
  def AsrLanguage(self):
27280
27240
  """智能语音识别语种:
27281
27241
  0 关闭 1 中文 2 英文 3日文 4 韩文
27282
- 注意:此字段可能返回 null,表示取不到有效值。
27283
27242
  :rtype: int
27284
27243
  """
27285
27244
  return self._AsrLanguage
@@ -27292,7 +27251,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27292
27251
  def OcrLanguage(self):
27293
27252
  """智能文字识别语种:
27294
27253
  0 关闭 1 中、英文
27295
- 注意:此字段可能返回 null,表示取不到有效值。
27296
27254
  :rtype: int
27297
27255
  """
27298
27256
  return self._OcrLanguage
@@ -27304,7 +27262,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27304
27262
  @property
27305
27263
  def AiOcrInputIndexList(self):
27306
27264
  """开启智能文字识别的输入Index列表
27307
- 注意:此字段可能返回 null,表示取不到有效值。
27308
27265
  :rtype: list of int non-negative
27309
27266
  """
27310
27267
  return self._AiOcrInputIndexList
@@ -27316,7 +27273,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27316
27273
  @property
27317
27274
  def AllowMonitorReport(self):
27318
27275
  """是否存储监播事件到监播报告,以及是否允许查询监播报告
27319
- 注意:此字段可能返回 null,表示取不到有效值。
27320
27276
  :rtype: int
27321
27277
  """
27322
27278
  return self._AllowMonitorReport
@@ -27328,7 +27284,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27328
27284
  @property
27329
27285
  def AiFormatDiagnose(self):
27330
27286
  """是否开启格式诊断
27331
- 注意:此字段可能返回 null,表示取不到有效值。
27332
27287
  :rtype: int
27333
27288
  """
27334
27289
  return self._AiFormatDiagnose
@@ -27340,7 +27295,6 @@ class LiveStreamMonitorInfo(AbstractModel):
27340
27295
  @property
27341
27296
  def AiQualityControl(self):
27342
27297
  """是否开启内容质检。
27343
- 注意:此字段可能返回 null,表示取不到有效值。
27344
27298
  :rtype: int
27345
27299
  """
27346
27300
  return self._AiQualityControl
@@ -27422,19 +27376,14 @@ class LiveStreamMonitorInputInfo(AbstractModel):
27422
27376
  def __init__(self):
27423
27377
  r"""
27424
27378
  :param _InputStreamName: 待监播的输入流名称。256字节以内,只允许包含字母、数字、‘-’,‘_’,'.'字符。
27425
- 注意:此字段可能返回 null,表示取不到有效值。
27426
27379
  :type InputStreamName: str
27427
27380
  :param _InputDomain: 待监播的输入流推流域名。128字节以内,只允许填处于启用状态的推流域名。
27428
- 注意:此字段可能返回 null,表示取不到有效值。
27429
27381
  :type InputDomain: str
27430
27382
  :param _InputApp: 待监播的输入流推流路径。32字节以内,只允许包含字母、数字、‘-’,‘_’,'.'字符。
27431
- 注意:此字段可能返回 null,表示取不到有效值。
27432
27383
  :type InputApp: str
27433
27384
  :param _InputUrl: 待监播的输入流推流url。一般场景下,无需该参数。
27434
- 注意:此字段可能返回 null,表示取不到有效值。
27435
27385
  :type InputUrl: str
27436
27386
  :param _Description: 描述。256字节以内。
27437
- 注意:此字段可能返回 null,表示取不到有效值。
27438
27387
  :type Description: str
27439
27388
  :param _CasterInputIndex: 导播台输入源索引(10000 pvw, 10001 pgm, 其余代表输入下标)
27440
27389
  :type CasterInputIndex: int
@@ -27455,7 +27404,6 @@ class LiveStreamMonitorInputInfo(AbstractModel):
27455
27404
  @property
27456
27405
  def InputStreamName(self):
27457
27406
  """待监播的输入流名称。256字节以内,只允许包含字母、数字、‘-’,‘_’,'.'字符。
27458
- 注意:此字段可能返回 null,表示取不到有效值。
27459
27407
  :rtype: str
27460
27408
  """
27461
27409
  return self._InputStreamName
@@ -27467,7 +27415,6 @@ class LiveStreamMonitorInputInfo(AbstractModel):
27467
27415
  @property
27468
27416
  def InputDomain(self):
27469
27417
  """待监播的输入流推流域名。128字节以内,只允许填处于启用状态的推流域名。
27470
- 注意:此字段可能返回 null,表示取不到有效值。
27471
27418
  :rtype: str
27472
27419
  """
27473
27420
  return self._InputDomain
@@ -27479,7 +27426,6 @@ class LiveStreamMonitorInputInfo(AbstractModel):
27479
27426
  @property
27480
27427
  def InputApp(self):
27481
27428
  """待监播的输入流推流路径。32字节以内,只允许包含字母、数字、‘-’,‘_’,'.'字符。
27482
- 注意:此字段可能返回 null,表示取不到有效值。
27483
27429
  :rtype: str
27484
27430
  """
27485
27431
  return self._InputApp
@@ -27491,7 +27437,6 @@ class LiveStreamMonitorInputInfo(AbstractModel):
27491
27437
  @property
27492
27438
  def InputUrl(self):
27493
27439
  """待监播的输入流推流url。一般场景下,无需该参数。
27494
- 注意:此字段可能返回 null,表示取不到有效值。
27495
27440
  :rtype: str
27496
27441
  """
27497
27442
  return self._InputUrl
@@ -27503,7 +27448,6 @@ class LiveStreamMonitorInputInfo(AbstractModel):
27503
27448
  @property
27504
27449
  def Description(self):
27505
27450
  """描述。256字节以内。
27506
- 注意:此字段可能返回 null,表示取不到有效值。
27507
27451
  :rtype: str
27508
27452
  """
27509
27453
  return self._Description
@@ -27575,11 +27519,9 @@ class LiveStreamMonitorNotifyPolicy(AbstractModel):
27575
27519
  :param _NotifyPolicyType: 通知策略类型:范围[0,1]
27576
27520
  0:代表不使用任何通知策略
27577
27521
  1:代表使用全局回调策略,所有事件通知到CallbackUrl。
27578
- 注意:此字段可能返回 null,表示取不到有效值。
27579
27522
  :type NotifyPolicyType: int
27580
27523
  :param _CallbackUrl: 回调URL:长度[0,512]
27581
27524
  只支持http和https类型的url。
27582
- 注意:此字段可能返回 null,表示取不到有效值。
27583
27525
  :type CallbackUrl: str
27584
27526
  """
27585
27527
  self._NotifyPolicyType = None
@@ -27590,7 +27532,6 @@ class LiveStreamMonitorNotifyPolicy(AbstractModel):
27590
27532
  """通知策略类型:范围[0,1]
27591
27533
  0:代表不使用任何通知策略
27592
27534
  1:代表使用全局回调策略,所有事件通知到CallbackUrl。
27593
- 注意:此字段可能返回 null,表示取不到有效值。
27594
27535
  :rtype: int
27595
27536
  """
27596
27537
  return self._NotifyPolicyType
@@ -27603,7 +27544,6 @@ class LiveStreamMonitorNotifyPolicy(AbstractModel):
27603
27544
  def CallbackUrl(self):
27604
27545
  """回调URL:长度[0,512]
27605
27546
  只支持http和https类型的url。
27606
- 注意:此字段可能返回 null,表示取不到有效值。
27607
27547
  :rtype: str
27608
27548
  """
27609
27549
  return self._CallbackUrl
@@ -27634,21 +27574,16 @@ class LiveStreamMonitorOutputInfo(AbstractModel):
27634
27574
  def __init__(self):
27635
27575
  r"""
27636
27576
  :param _OutputStreamWidth: 监播任务输出流宽度像素。范围[1,1920]。建议至少大于100像素。
27637
- 注意:此字段可能返回 null,表示取不到有效值。
27638
27577
  :type OutputStreamWidth: int
27639
27578
  :param _OutputStreamHeight: 监播任务输出流长度像素。范围[1,1080],建议至少大于100像素。
27640
- 注意:此字段可能返回 null,表示取不到有效值。
27641
27579
  :type OutputStreamHeight: int
27642
27580
  :param _OutputStreamName: 监播任务输出流名称。
27643
27581
  不填时,系统会自动生成。
27644
27582
  256字节以内,只允许包含字母、数字、‘-’,‘_’,'.'字符。
27645
- 注意:此字段可能返回 null,表示取不到有效值。
27646
27583
  :type OutputStreamName: str
27647
27584
  :param _OutputDomain: 监播任务播放域名。128字节以内,只允许填处于启用状态的播放域名。
27648
- 注意:此字段可能返回 null,表示取不到有效值。
27649
27585
  :type OutputDomain: str
27650
27586
  :param _OutputApp: 监播任务播放路径。32字节以内,只允许包含字母、数字、‘-’,‘_’,'.'字符。
27651
- 注意:此字段可能返回 null,表示取不到有效值。
27652
27587
  :type OutputApp: str
27653
27588
  """
27654
27589
  self._OutputStreamWidth = None
@@ -27660,7 +27595,6 @@ class LiveStreamMonitorOutputInfo(AbstractModel):
27660
27595
  @property
27661
27596
  def OutputStreamWidth(self):
27662
27597
  """监播任务输出流宽度像素。范围[1,1920]。建议至少大于100像素。
27663
- 注意:此字段可能返回 null,表示取不到有效值。
27664
27598
  :rtype: int
27665
27599
  """
27666
27600
  return self._OutputStreamWidth
@@ -27672,7 +27606,6 @@ class LiveStreamMonitorOutputInfo(AbstractModel):
27672
27606
  @property
27673
27607
  def OutputStreamHeight(self):
27674
27608
  """监播任务输出流长度像素。范围[1,1080],建议至少大于100像素。
27675
- 注意:此字段可能返回 null,表示取不到有效值。
27676
27609
  :rtype: int
27677
27610
  """
27678
27611
  return self._OutputStreamHeight
@@ -27686,7 +27619,6 @@ class LiveStreamMonitorOutputInfo(AbstractModel):
27686
27619
  """监播任务输出流名称。
27687
27620
  不填时,系统会自动生成。
27688
27621
  256字节以内,只允许包含字母、数字、‘-’,‘_’,'.'字符。
27689
- 注意:此字段可能返回 null,表示取不到有效值。
27690
27622
  :rtype: str
27691
27623
  """
27692
27624
  return self._OutputStreamName
@@ -27698,7 +27630,6 @@ class LiveStreamMonitorOutputInfo(AbstractModel):
27698
27630
  @property
27699
27631
  def OutputDomain(self):
27700
27632
  """监播任务播放域名。128字节以内,只允许填处于启用状态的播放域名。
27701
- 注意:此字段可能返回 null,表示取不到有效值。
27702
27633
  :rtype: str
27703
27634
  """
27704
27635
  return self._OutputDomain
@@ -27710,7 +27641,6 @@ class LiveStreamMonitorOutputInfo(AbstractModel):
27710
27641
  @property
27711
27642
  def OutputApp(self):
27712
27643
  """监播任务播放路径。32字节以内,只允许包含字母、数字、‘-’,‘_’,'.'字符。
27713
- 注意:此字段可能返回 null,表示取不到有效值。
27714
27644
  :rtype: str
27715
27645
  """
27716
27646
  return self._OutputApp
@@ -27827,13 +27757,10 @@ class MPSResult(AbstractModel):
27827
27757
  def __init__(self):
27828
27758
  r"""
27829
27759
  :param _AiAsrResults: 智能语音识别结果。
27830
- 注意:此字段可能返回 null,表示取不到有效值。
27831
27760
  :type AiAsrResults: list of str
27832
27761
  :param _AiOcrResults: 智能文字识别结果。
27833
- 注意:此字段可能返回 null,表示取不到有效值。
27834
27762
  :type AiOcrResults: list of str
27835
27763
  :param _StreamQuaCtrlResults: 内容质检结果。
27836
- 注意:此字段可能返回 null,表示取不到有效值。
27837
27764
  :type StreamQuaCtrlResults: list of str
27838
27765
  """
27839
27766
  self._AiAsrResults = None
@@ -27843,7 +27770,6 @@ class MPSResult(AbstractModel):
27843
27770
  @property
27844
27771
  def AiAsrResults(self):
27845
27772
  """智能语音识别结果。
27846
- 注意:此字段可能返回 null,表示取不到有效值。
27847
27773
  :rtype: list of str
27848
27774
  """
27849
27775
  return self._AiAsrResults
@@ -27855,7 +27781,6 @@ class MPSResult(AbstractModel):
27855
27781
  @property
27856
27782
  def AiOcrResults(self):
27857
27783
  """智能文字识别结果。
27858
- 注意:此字段可能返回 null,表示取不到有效值。
27859
27784
  :rtype: list of str
27860
27785
  """
27861
27786
  return self._AiOcrResults
@@ -27867,7 +27792,6 @@ class MPSResult(AbstractModel):
27867
27792
  @property
27868
27793
  def StreamQuaCtrlResults(self):
27869
27794
  """内容质检结果。
27870
- 注意:此字段可能返回 null,表示取不到有效值。
27871
27795
  :rtype: list of str
27872
27796
  """
27873
27797
  return self._StreamQuaCtrlResults
@@ -8216,7 +8216,7 @@ class DescribeStorageCredentialRequest(AbstractModel):
8216
8216
 
8217
8217
  def __init__(self):
8218
8218
  r"""
8219
- :param _BotBizId: 应用ID
8219
+ :param _BotBizId: 应用ID,参数非必填不代表不需要填写,下面不同的参数组合会获取到不同的权限,具体请参考 https://cloud.tencent.com/document/product/1759/116238
8220
8220
  :type BotBizId: str
8221
8221
  :param _FileType: 文件类型,正常的文件名类型后缀,例如 xlsx、pdf、 docx、png 等
8222
8222
  :type FileType: str
@@ -8233,7 +8233,7 @@ class DescribeStorageCredentialRequest(AbstractModel):
8233
8233
 
8234
8234
  @property
8235
8235
  def BotBizId(self):
8236
- """应用ID
8236
+ """应用ID,参数非必填不代表不需要填写,下面不同的参数组合会获取到不同的权限,具体请参考 https://cloud.tencent.com/document/product/1759/116238
8237
8237
  :rtype: str
8238
8238
  """
8239
8239
  return self._BotBizId
@@ -46,7 +46,11 @@ class LkeapClient(AbstractClient):
46
46
  ### 计费说明
47
47
 
48
48
  - 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。
49
- ![image](https://cdn.xiaowei.qq.com/static/lke/deekseep-token0212.png)
49
+
50
+ - DeepSeek-R1 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token
51
+
52
+ - DeepSeek-V3 模型 | 输入:0.002元/千token | 输出:0.008元/千token
53
+
50
54
 
51
55
  ### Openai兼容协议接口
52
56
  知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)。
@@ -41,6 +41,9 @@ FAILEDOPERATION_EMPTYIMAGEERROR = 'FailedOperation.EmptyImageError'
41
41
  # 引擎识别超时。
42
42
  FAILEDOPERATION_ENGINERECOGNIZETIMEOUT = 'FailedOperation.EngineRecognizeTimeout'
43
43
 
44
+ # 字段值不符合预期
45
+ FAILEDOPERATION_FIELDEXCEPTION = 'FailedOperation.FieldException'
46
+
44
47
  # 文件解码失败
45
48
  FAILEDOPERATION_FILEDECODEFAILED = 'FailedOperation.FileDecodeFailed'
46
49
 
@@ -74,6 +77,9 @@ FAILEDOPERATION_IMAGENOTEXT = 'FailedOperation.ImageNoText'
74
77
  # 图片尺寸过大,请参考输入参数中关于图片大小限制的说明。
75
78
  FAILEDOPERATION_IMAGESIZETOOLARGE = 'FailedOperation.ImageSizeTooLarge'
76
79
 
80
+ # 视读区信息与机读区信息不一致
81
+ FAILEDOPERATION_INCONSISTENCYBETWEENMRZANDVRZ = 'FailedOperation.InconsistencyBetweenMRZAndVRZ'
82
+
77
83
  # 发票数据不一致。温馨提示:新版发票核验接口功能更完整,请尽快切换,如已切换请忽略。
78
84
  FAILEDOPERATION_INVOICEMISMATCH = 'FailedOperation.InvoiceMismatch'
79
85