tencentcloud-sdk-python 3.0.1319__py2.py3-none-any.whl → 3.0.1321__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/cbs/v20170312/models.py +15 -0
 - tencentcloud/ccc/v20200210/errorcodes.py +6 -0
 - tencentcloud/cdb/v20170320/cdb_client.py +1 -0
 - tencentcloud/cdb/v20170320/models.py +60 -18
 - tencentcloud/csip/v20221121/models.py +0 -30
 - tencentcloud/essbasic/v20210526/models.py +4 -4
 - tencentcloud/facefusion/v20220927/models.py +16 -4
 - tencentcloud/gme/v20180711/models.py +0 -28
 - tencentcloud/hunyuan/v20230901/models.py +15 -0
 - tencentcloud/lcic/v20220817/models.py +0 -14
 - tencentcloud/lighthouse/v20200324/models.py +4 -40
 - tencentcloud/lke/v20231130/models.py +34 -0
 - tencentcloud/lkeap/v20240522/lkeap_client.py +4 -3
 - tencentcloud/lkeap/v20240522/models.py +116 -4
 - tencentcloud/ocr/v20181119/models.py +352 -0
 - tencentcloud/ocr/v20181119/ocr_client.py +23 -0
 - tencentcloud/postgres/v20170312/models.py +1255 -91
 - tencentcloud/postgres/v20170312/postgres_client.py +139 -0
 - tencentcloud/ssl/v20191205/models.py +1467 -631
 - tencentcloud/ssl/v20191205/ssl_client.py +6 -6
 - tencentcloud/trabbit/__init__.py +0 -0
 - tencentcloud/trabbit/v20230418/__init__.py +0 -0
 - tencentcloud/trabbit/v20230418/errorcodes.py +75 -0
 - tencentcloud/trabbit/v20230418/models.py +8390 -0
 - tencentcloud/trabbit/v20230418/trabbit_client.py +693 -0
 - {tencentcloud_sdk_python-3.0.1319.dist-info → tencentcloud_sdk_python-3.0.1321.dist-info}/METADATA +1 -1
 - {tencentcloud_sdk_python-3.0.1319.dist-info → tencentcloud_sdk_python-3.0.1321.dist-info}/RECORD +31 -26
 - {tencentcloud_sdk_python-3.0.1319.dist-info → tencentcloud_sdk_python-3.0.1321.dist-info}/LICENSE +0 -0
 - {tencentcloud_sdk_python-3.0.1319.dist-info → tencentcloud_sdk_python-3.0.1321.dist-info}/WHEEL +0 -0
 - {tencentcloud_sdk_python-3.0.1319.dist-info → tencentcloud_sdk_python-3.0.1321.dist-info}/top_level.txt +0 -0
 
| 
         @@ -10403,6 +10403,77 @@ class GeneralBasicOCRResponse(AbstractModel): 
     | 
|
| 
       10403 
10403 
     | 
    
         
             
                    self._RequestId = params.get("RequestId")
         
     | 
| 
       10404 
10404 
     | 
    
         | 
| 
       10405 
10405 
     | 
    
         | 
| 
      
 10406 
     | 
    
         
            +
            class GeneralCardWarnInfo(AbstractModel):
         
     | 
| 
      
 10407 
     | 
    
         
            +
                """通用卡证鉴伪告警信息
         
     | 
| 
      
 10408 
     | 
    
         
            +
             
     | 
| 
      
 10409 
     | 
    
         
            +
                """
         
     | 
| 
      
 10410 
     | 
    
         
            +
             
     | 
| 
      
 10411 
     | 
    
         
            +
                def __init__(self):
         
     | 
| 
      
 10412 
     | 
    
         
            +
                    r"""
         
     | 
| 
      
 10413 
     | 
    
         
            +
                    :param _IsWarn: 是否存在该告警
         
     | 
| 
      
 10414 
     | 
    
         
            +
                    :type IsWarn: bool
         
     | 
| 
      
 10415 
     | 
    
         
            +
                    :param _RiskConfidence: 风险程度
         
     | 
| 
      
 10416 
     | 
    
         
            +
                    :type RiskConfidence: float
         
     | 
| 
      
 10417 
     | 
    
         
            +
                    :param _Polygon: 告警位置四点坐标
         
     | 
| 
      
 10418 
     | 
    
         
            +
                    :type Polygon: list of Polygon
         
     | 
| 
      
 10419 
     | 
    
         
            +
                    """
         
     | 
| 
      
 10420 
     | 
    
         
            +
                    self._IsWarn = None
         
     | 
| 
      
 10421 
     | 
    
         
            +
                    self._RiskConfidence = None
         
     | 
| 
      
 10422 
     | 
    
         
            +
                    self._Polygon = None
         
     | 
| 
      
 10423 
     | 
    
         
            +
             
     | 
| 
      
 10424 
     | 
    
         
            +
                @property
         
     | 
| 
      
 10425 
     | 
    
         
            +
                def IsWarn(self):
         
     | 
| 
      
 10426 
     | 
    
         
            +
                    """是否存在该告警
         
     | 
| 
      
 10427 
     | 
    
         
            +
                    :rtype: bool
         
     | 
| 
      
 10428 
     | 
    
         
            +
                    """
         
     | 
| 
      
 10429 
     | 
    
         
            +
                    return self._IsWarn
         
     | 
| 
      
 10430 
     | 
    
         
            +
             
     | 
| 
      
 10431 
     | 
    
         
            +
                @IsWarn.setter
         
     | 
| 
      
 10432 
     | 
    
         
            +
                def IsWarn(self, IsWarn):
         
     | 
| 
      
 10433 
     | 
    
         
            +
                    self._IsWarn = IsWarn
         
     | 
| 
      
 10434 
     | 
    
         
            +
             
     | 
| 
      
 10435 
     | 
    
         
            +
                @property
         
     | 
| 
      
 10436 
     | 
    
         
            +
                def RiskConfidence(self):
         
     | 
| 
      
 10437 
     | 
    
         
            +
                    """风险程度
         
     | 
| 
      
 10438 
     | 
    
         
            +
                    :rtype: float
         
     | 
| 
      
 10439 
     | 
    
         
            +
                    """
         
     | 
| 
      
 10440 
     | 
    
         
            +
                    return self._RiskConfidence
         
     | 
| 
      
 10441 
     | 
    
         
            +
             
     | 
| 
      
 10442 
     | 
    
         
            +
                @RiskConfidence.setter
         
     | 
| 
      
 10443 
     | 
    
         
            +
                def RiskConfidence(self, RiskConfidence):
         
     | 
| 
      
 10444 
     | 
    
         
            +
                    self._RiskConfidence = RiskConfidence
         
     | 
| 
      
 10445 
     | 
    
         
            +
             
     | 
| 
      
 10446 
     | 
    
         
            +
                @property
         
     | 
| 
      
 10447 
     | 
    
         
            +
                def Polygon(self):
         
     | 
| 
      
 10448 
     | 
    
         
            +
                    """告警位置四点坐标
         
     | 
| 
      
 10449 
     | 
    
         
            +
                    :rtype: list of Polygon
         
     | 
| 
      
 10450 
     | 
    
         
            +
                    """
         
     | 
| 
      
 10451 
     | 
    
         
            +
                    return self._Polygon
         
     | 
| 
      
 10452 
     | 
    
         
            +
             
     | 
| 
      
 10453 
     | 
    
         
            +
                @Polygon.setter
         
     | 
| 
      
 10454 
     | 
    
         
            +
                def Polygon(self, Polygon):
         
     | 
| 
      
 10455 
     | 
    
         
            +
                    self._Polygon = Polygon
         
     | 
| 
      
 10456 
     | 
    
         
            +
             
     | 
| 
      
 10457 
     | 
    
         
            +
             
     | 
| 
      
 10458 
     | 
    
         
            +
                def _deserialize(self, params):
         
     | 
| 
      
 10459 
     | 
    
         
            +
                    self._IsWarn = params.get("IsWarn")
         
     | 
| 
      
 10460 
     | 
    
         
            +
                    self._RiskConfidence = params.get("RiskConfidence")
         
     | 
| 
      
 10461 
     | 
    
         
            +
                    if params.get("Polygon") is not None:
         
     | 
| 
      
 10462 
     | 
    
         
            +
                        self._Polygon = []
         
     | 
| 
      
 10463 
     | 
    
         
            +
                        for item in params.get("Polygon"):
         
     | 
| 
      
 10464 
     | 
    
         
            +
                            obj = Polygon()
         
     | 
| 
      
 10465 
     | 
    
         
            +
                            obj._deserialize(item)
         
     | 
| 
      
 10466 
     | 
    
         
            +
                            self._Polygon.append(obj)
         
     | 
| 
      
 10467 
     | 
    
         
            +
                    memeber_set = set(params.keys())
         
     | 
| 
      
 10468 
     | 
    
         
            +
                    for name, value in vars(self).items():
         
     | 
| 
      
 10469 
     | 
    
         
            +
                        property_name = name[1:]
         
     | 
| 
      
 10470 
     | 
    
         
            +
                        if property_name in memeber_set:
         
     | 
| 
      
 10471 
     | 
    
         
            +
                            memeber_set.remove(property_name)
         
     | 
| 
      
 10472 
     | 
    
         
            +
                    if len(memeber_set) > 0:
         
     | 
| 
      
 10473 
     | 
    
         
            +
                        warnings.warn("%s fileds are useless." % ",".join(memeber_set))
         
     | 
| 
      
 10474 
     | 
    
         
            +
                    
         
     | 
| 
      
 10475 
     | 
    
         
            +
             
     | 
| 
      
 10476 
     | 
    
         
            +
             
     | 
| 
       10406 
10477 
     | 
    
         
             
            class GeneralEfficientOCRRequest(AbstractModel):
         
     | 
| 
       10407 
10478 
     | 
    
         
             
                """GeneralEfficientOCR请求参数结构体
         
     | 
| 
       10408 
10479 
     | 
    
         | 
| 
         @@ -23607,6 +23678,287 @@ class RecognizeFormulaOCRResponse(AbstractModel): 
     | 
|
| 
       23607 
23678 
     | 
    
         
             
                    self._RequestId = params.get("RequestId")
         
     | 
| 
       23608 
23679 
     | 
    
         | 
| 
       23609 
23680 
     | 
    
         | 
| 
      
 23681 
     | 
    
         
            +
            class RecognizeGeneralCardWarnRequest(AbstractModel):
         
     | 
| 
      
 23682 
     | 
    
         
            +
                """RecognizeGeneralCardWarn请求参数结构体
         
     | 
| 
      
 23683 
     | 
    
         
            +
             
     | 
| 
      
 23684 
     | 
    
         
            +
                """
         
     | 
| 
      
 23685 
     | 
    
         
            +
             
     | 
| 
      
 23686 
     | 
    
         
            +
                def __init__(self):
         
     | 
| 
      
 23687 
     | 
    
         
            +
                    r"""
         
     | 
| 
      
 23688 
     | 
    
         
            +
                    :param _ImageUrl: 图片链接
         
     | 
| 
      
 23689 
     | 
    
         
            +
                    :type ImageUrl: str
         
     | 
| 
      
 23690 
     | 
    
         
            +
                    :param _ImageBase64: 图片base64
         
     | 
| 
      
 23691 
     | 
    
         
            +
                    :type ImageBase64: str
         
     | 
| 
      
 23692 
     | 
    
         
            +
                    :param _CardType: 卡证类型参数,包含以下范围:  
         
     | 
| 
      
 23693 
     | 
    
         
            +
            General:通用卡证
         
     | 
| 
      
 23694 
     | 
    
         
            +
            IDCard:身份证 
         
     | 
| 
      
 23695 
     | 
    
         
            +
            Passport:护照 
         
     | 
| 
      
 23696 
     | 
    
         
            +
            BankCard:银行卡
         
     | 
| 
      
 23697 
     | 
    
         
            +
            VehicleLicense:行驶证
         
     | 
| 
      
 23698 
     | 
    
         
            +
            DriverLicense:驾驶证
         
     | 
| 
      
 23699 
     | 
    
         
            +
            BizLicense:营业执照 
         
     | 
| 
      
 23700 
     | 
    
         
            +
            HmtResidentPermit:港澳台居住证
         
     | 
| 
      
 23701 
     | 
    
         
            +
            ForeignPermanentResident:外国人永居证
         
     | 
| 
      
 23702 
     | 
    
         
            +
            MainlandPermit:港澳台来往内地通行证
         
     | 
| 
      
 23703 
     | 
    
         
            +
                    :type CardType: str
         
     | 
| 
      
 23704 
     | 
    
         
            +
                    :param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
         
     | 
| 
      
 23705 
     | 
    
         
            +
                    :type IsPdf: bool
         
     | 
| 
      
 23706 
     | 
    
         
            +
                    :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
         
     | 
| 
      
 23707 
     | 
    
         
            +
                    :type PdfPageNumber: int
         
     | 
| 
      
 23708 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23709 
     | 
    
         
            +
                    self._ImageUrl = None
         
     | 
| 
      
 23710 
     | 
    
         
            +
                    self._ImageBase64 = None
         
     | 
| 
      
 23711 
     | 
    
         
            +
                    self._CardType = None
         
     | 
| 
      
 23712 
     | 
    
         
            +
                    self._IsPdf = None
         
     | 
| 
      
 23713 
     | 
    
         
            +
                    self._PdfPageNumber = None
         
     | 
| 
      
 23714 
     | 
    
         
            +
             
     | 
| 
      
 23715 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23716 
     | 
    
         
            +
                def ImageUrl(self):
         
     | 
| 
      
 23717 
     | 
    
         
            +
                    """图片链接
         
     | 
| 
      
 23718 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 23719 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23720 
     | 
    
         
            +
                    return self._ImageUrl
         
     | 
| 
      
 23721 
     | 
    
         
            +
             
     | 
| 
      
 23722 
     | 
    
         
            +
                @ImageUrl.setter
         
     | 
| 
      
 23723 
     | 
    
         
            +
                def ImageUrl(self, ImageUrl):
         
     | 
| 
      
 23724 
     | 
    
         
            +
                    self._ImageUrl = ImageUrl
         
     | 
| 
      
 23725 
     | 
    
         
            +
             
     | 
| 
      
 23726 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23727 
     | 
    
         
            +
                def ImageBase64(self):
         
     | 
| 
      
 23728 
     | 
    
         
            +
                    """图片base64
         
     | 
| 
      
 23729 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 23730 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23731 
     | 
    
         
            +
                    return self._ImageBase64
         
     | 
| 
      
 23732 
     | 
    
         
            +
             
     | 
| 
      
 23733 
     | 
    
         
            +
                @ImageBase64.setter
         
     | 
| 
      
 23734 
     | 
    
         
            +
                def ImageBase64(self, ImageBase64):
         
     | 
| 
      
 23735 
     | 
    
         
            +
                    self._ImageBase64 = ImageBase64
         
     | 
| 
      
 23736 
     | 
    
         
            +
             
     | 
| 
      
 23737 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23738 
     | 
    
         
            +
                def CardType(self):
         
     | 
| 
      
 23739 
     | 
    
         
            +
                    """卡证类型参数,包含以下范围:  
         
     | 
| 
      
 23740 
     | 
    
         
            +
            General:通用卡证
         
     | 
| 
      
 23741 
     | 
    
         
            +
            IDCard:身份证 
         
     | 
| 
      
 23742 
     | 
    
         
            +
            Passport:护照 
         
     | 
| 
      
 23743 
     | 
    
         
            +
            BankCard:银行卡
         
     | 
| 
      
 23744 
     | 
    
         
            +
            VehicleLicense:行驶证
         
     | 
| 
      
 23745 
     | 
    
         
            +
            DriverLicense:驾驶证
         
     | 
| 
      
 23746 
     | 
    
         
            +
            BizLicense:营业执照 
         
     | 
| 
      
 23747 
     | 
    
         
            +
            HmtResidentPermit:港澳台居住证
         
     | 
| 
      
 23748 
     | 
    
         
            +
            ForeignPermanentResident:外国人永居证
         
     | 
| 
      
 23749 
     | 
    
         
            +
            MainlandPermit:港澳台来往内地通行证
         
     | 
| 
      
 23750 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 23751 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23752 
     | 
    
         
            +
                    return self._CardType
         
     | 
| 
      
 23753 
     | 
    
         
            +
             
     | 
| 
      
 23754 
     | 
    
         
            +
                @CardType.setter
         
     | 
| 
      
 23755 
     | 
    
         
            +
                def CardType(self, CardType):
         
     | 
| 
      
 23756 
     | 
    
         
            +
                    self._CardType = CardType
         
     | 
| 
      
 23757 
     | 
    
         
            +
             
     | 
| 
      
 23758 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23759 
     | 
    
         
            +
                def IsPdf(self):
         
     | 
| 
      
 23760 
     | 
    
         
            +
                    """是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
         
     | 
| 
      
 23761 
     | 
    
         
            +
                    :rtype: bool
         
     | 
| 
      
 23762 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23763 
     | 
    
         
            +
                    return self._IsPdf
         
     | 
| 
      
 23764 
     | 
    
         
            +
             
     | 
| 
      
 23765 
     | 
    
         
            +
                @IsPdf.setter
         
     | 
| 
      
 23766 
     | 
    
         
            +
                def IsPdf(self, IsPdf):
         
     | 
| 
      
 23767 
     | 
    
         
            +
                    self._IsPdf = IsPdf
         
     | 
| 
      
 23768 
     | 
    
         
            +
             
     | 
| 
      
 23769 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23770 
     | 
    
         
            +
                def PdfPageNumber(self):
         
     | 
| 
      
 23771 
     | 
    
         
            +
                    """需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
         
     | 
| 
      
 23772 
     | 
    
         
            +
                    :rtype: int
         
     | 
| 
      
 23773 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23774 
     | 
    
         
            +
                    return self._PdfPageNumber
         
     | 
| 
      
 23775 
     | 
    
         
            +
             
     | 
| 
      
 23776 
     | 
    
         
            +
                @PdfPageNumber.setter
         
     | 
| 
      
 23777 
     | 
    
         
            +
                def PdfPageNumber(self, PdfPageNumber):
         
     | 
| 
      
 23778 
     | 
    
         
            +
                    self._PdfPageNumber = PdfPageNumber
         
     | 
| 
      
 23779 
     | 
    
         
            +
             
     | 
| 
      
 23780 
     | 
    
         
            +
             
     | 
| 
      
 23781 
     | 
    
         
            +
                def _deserialize(self, params):
         
     | 
| 
      
 23782 
     | 
    
         
            +
                    self._ImageUrl = params.get("ImageUrl")
         
     | 
| 
      
 23783 
     | 
    
         
            +
                    self._ImageBase64 = params.get("ImageBase64")
         
     | 
| 
      
 23784 
     | 
    
         
            +
                    self._CardType = params.get("CardType")
         
     | 
| 
      
 23785 
     | 
    
         
            +
                    self._IsPdf = params.get("IsPdf")
         
     | 
| 
      
 23786 
     | 
    
         
            +
                    self._PdfPageNumber = params.get("PdfPageNumber")
         
     | 
| 
      
 23787 
     | 
    
         
            +
                    memeber_set = set(params.keys())
         
     | 
| 
      
 23788 
     | 
    
         
            +
                    for name, value in vars(self).items():
         
     | 
| 
      
 23789 
     | 
    
         
            +
                        property_name = name[1:]
         
     | 
| 
      
 23790 
     | 
    
         
            +
                        if property_name in memeber_set:
         
     | 
| 
      
 23791 
     | 
    
         
            +
                            memeber_set.remove(property_name)
         
     | 
| 
      
 23792 
     | 
    
         
            +
                    if len(memeber_set) > 0:
         
     | 
| 
      
 23793 
     | 
    
         
            +
                        warnings.warn("%s fileds are useless." % ",".join(memeber_set))
         
     | 
| 
      
 23794 
     | 
    
         
            +
                    
         
     | 
| 
      
 23795 
     | 
    
         
            +
             
     | 
| 
      
 23796 
     | 
    
         
            +
             
     | 
| 
      
 23797 
     | 
    
         
            +
            class RecognizeGeneralCardWarnResponse(AbstractModel):
         
     | 
| 
      
 23798 
     | 
    
         
            +
                """RecognizeGeneralCardWarn返回参数结构体
         
     | 
| 
      
 23799 
     | 
    
         
            +
             
     | 
| 
      
 23800 
     | 
    
         
            +
                """
         
     | 
| 
      
 23801 
     | 
    
         
            +
             
     | 
| 
      
 23802 
     | 
    
         
            +
                def __init__(self):
         
     | 
| 
      
 23803 
     | 
    
         
            +
                    r"""
         
     | 
| 
      
 23804 
     | 
    
         
            +
                    :param _CardType: 卡证类型参数,包含以下范围: 
         
     | 
| 
      
 23805 
     | 
    
         
            +
            General:通用卡证
         
     | 
| 
      
 23806 
     | 
    
         
            +
            IDCard:身份证 
         
     | 
| 
      
 23807 
     | 
    
         
            +
            Passport:护照 
         
     | 
| 
      
 23808 
     | 
    
         
            +
            BankCard:银行卡
         
     | 
| 
      
 23809 
     | 
    
         
            +
            VehicleLicense:行驶证
         
     | 
| 
      
 23810 
     | 
    
         
            +
            DriverLicense:驾驶证
         
     | 
| 
      
 23811 
     | 
    
         
            +
            BizLicense:营业执照 
         
     | 
| 
      
 23812 
     | 
    
         
            +
            HmtResidentPermit:港澳台居住证
         
     | 
| 
      
 23813 
     | 
    
         
            +
            ForeignPermanentResident:外国人永居证
         
     | 
| 
      
 23814 
     | 
    
         
            +
            MainlandPermit:港澳台来往内地通行证
         
     | 
| 
      
 23815 
     | 
    
         
            +
                    :type CardType: str
         
     | 
| 
      
 23816 
     | 
    
         
            +
                    :param _Blur: 模糊信息
         
     | 
| 
      
 23817 
     | 
    
         
            +
                    :type Blur: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23818 
     | 
    
         
            +
                    :param _BorderIncomplete: 边框不完整信息
         
     | 
| 
      
 23819 
     | 
    
         
            +
                    :type BorderIncomplete: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23820 
     | 
    
         
            +
                    :param _Copy: 复印件信息
         
     | 
| 
      
 23821 
     | 
    
         
            +
                    :type Copy: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23822 
     | 
    
         
            +
                    :param _Ps: ps篡改信息
         
     | 
| 
      
 23823 
     | 
    
         
            +
                    :type Ps: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23824 
     | 
    
         
            +
                    :param _Reflection: 反光信息
         
     | 
| 
      
 23825 
     | 
    
         
            +
                    :type Reflection: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23826 
     | 
    
         
            +
                    :param _Reprint: 翻拍件信息
         
     | 
| 
      
 23827 
     | 
    
         
            +
                    :type Reprint: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23828 
     | 
    
         
            +
                    :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 23829 
     | 
    
         
            +
                    :type RequestId: str
         
     | 
| 
      
 23830 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23831 
     | 
    
         
            +
                    self._CardType = None
         
     | 
| 
      
 23832 
     | 
    
         
            +
                    self._Blur = None
         
     | 
| 
      
 23833 
     | 
    
         
            +
                    self._BorderIncomplete = None
         
     | 
| 
      
 23834 
     | 
    
         
            +
                    self._Copy = None
         
     | 
| 
      
 23835 
     | 
    
         
            +
                    self._Ps = None
         
     | 
| 
      
 23836 
     | 
    
         
            +
                    self._Reflection = None
         
     | 
| 
      
 23837 
     | 
    
         
            +
                    self._Reprint = None
         
     | 
| 
      
 23838 
     | 
    
         
            +
                    self._RequestId = None
         
     | 
| 
      
 23839 
     | 
    
         
            +
             
     | 
| 
      
 23840 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23841 
     | 
    
         
            +
                def CardType(self):
         
     | 
| 
      
 23842 
     | 
    
         
            +
                    """卡证类型参数,包含以下范围: 
         
     | 
| 
      
 23843 
     | 
    
         
            +
            General:通用卡证
         
     | 
| 
      
 23844 
     | 
    
         
            +
            IDCard:身份证 
         
     | 
| 
      
 23845 
     | 
    
         
            +
            Passport:护照 
         
     | 
| 
      
 23846 
     | 
    
         
            +
            BankCard:银行卡
         
     | 
| 
      
 23847 
     | 
    
         
            +
            VehicleLicense:行驶证
         
     | 
| 
      
 23848 
     | 
    
         
            +
            DriverLicense:驾驶证
         
     | 
| 
      
 23849 
     | 
    
         
            +
            BizLicense:营业执照 
         
     | 
| 
      
 23850 
     | 
    
         
            +
            HmtResidentPermit:港澳台居住证
         
     | 
| 
      
 23851 
     | 
    
         
            +
            ForeignPermanentResident:外国人永居证
         
     | 
| 
      
 23852 
     | 
    
         
            +
            MainlandPermit:港澳台来往内地通行证
         
     | 
| 
      
 23853 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 23854 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23855 
     | 
    
         
            +
                    return self._CardType
         
     | 
| 
      
 23856 
     | 
    
         
            +
             
     | 
| 
      
 23857 
     | 
    
         
            +
                @CardType.setter
         
     | 
| 
      
 23858 
     | 
    
         
            +
                def CardType(self, CardType):
         
     | 
| 
      
 23859 
     | 
    
         
            +
                    self._CardType = CardType
         
     | 
| 
      
 23860 
     | 
    
         
            +
             
     | 
| 
      
 23861 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23862 
     | 
    
         
            +
                def Blur(self):
         
     | 
| 
      
 23863 
     | 
    
         
            +
                    """模糊信息
         
     | 
| 
      
 23864 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23865 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23866 
     | 
    
         
            +
                    return self._Blur
         
     | 
| 
      
 23867 
     | 
    
         
            +
             
     | 
| 
      
 23868 
     | 
    
         
            +
                @Blur.setter
         
     | 
| 
      
 23869 
     | 
    
         
            +
                def Blur(self, Blur):
         
     | 
| 
      
 23870 
     | 
    
         
            +
                    self._Blur = Blur
         
     | 
| 
      
 23871 
     | 
    
         
            +
             
     | 
| 
      
 23872 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23873 
     | 
    
         
            +
                def BorderIncomplete(self):
         
     | 
| 
      
 23874 
     | 
    
         
            +
                    """边框不完整信息
         
     | 
| 
      
 23875 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23876 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23877 
     | 
    
         
            +
                    return self._BorderIncomplete
         
     | 
| 
      
 23878 
     | 
    
         
            +
             
     | 
| 
      
 23879 
     | 
    
         
            +
                @BorderIncomplete.setter
         
     | 
| 
      
 23880 
     | 
    
         
            +
                def BorderIncomplete(self, BorderIncomplete):
         
     | 
| 
      
 23881 
     | 
    
         
            +
                    self._BorderIncomplete = BorderIncomplete
         
     | 
| 
      
 23882 
     | 
    
         
            +
             
     | 
| 
      
 23883 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23884 
     | 
    
         
            +
                def Copy(self):
         
     | 
| 
      
 23885 
     | 
    
         
            +
                    """复印件信息
         
     | 
| 
      
 23886 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23887 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23888 
     | 
    
         
            +
                    return self._Copy
         
     | 
| 
      
 23889 
     | 
    
         
            +
             
     | 
| 
      
 23890 
     | 
    
         
            +
                @Copy.setter
         
     | 
| 
      
 23891 
     | 
    
         
            +
                def Copy(self, Copy):
         
     | 
| 
      
 23892 
     | 
    
         
            +
                    self._Copy = Copy
         
     | 
| 
      
 23893 
     | 
    
         
            +
             
     | 
| 
      
 23894 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23895 
     | 
    
         
            +
                def Ps(self):
         
     | 
| 
      
 23896 
     | 
    
         
            +
                    """ps篡改信息
         
     | 
| 
      
 23897 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23898 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23899 
     | 
    
         
            +
                    return self._Ps
         
     | 
| 
      
 23900 
     | 
    
         
            +
             
     | 
| 
      
 23901 
     | 
    
         
            +
                @Ps.setter
         
     | 
| 
      
 23902 
     | 
    
         
            +
                def Ps(self, Ps):
         
     | 
| 
      
 23903 
     | 
    
         
            +
                    self._Ps = Ps
         
     | 
| 
      
 23904 
     | 
    
         
            +
             
     | 
| 
      
 23905 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23906 
     | 
    
         
            +
                def Reflection(self):
         
     | 
| 
      
 23907 
     | 
    
         
            +
                    """反光信息
         
     | 
| 
      
 23908 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23909 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23910 
     | 
    
         
            +
                    return self._Reflection
         
     | 
| 
      
 23911 
     | 
    
         
            +
             
     | 
| 
      
 23912 
     | 
    
         
            +
                @Reflection.setter
         
     | 
| 
      
 23913 
     | 
    
         
            +
                def Reflection(self, Reflection):
         
     | 
| 
      
 23914 
     | 
    
         
            +
                    self._Reflection = Reflection
         
     | 
| 
      
 23915 
     | 
    
         
            +
             
     | 
| 
      
 23916 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23917 
     | 
    
         
            +
                def Reprint(self):
         
     | 
| 
      
 23918 
     | 
    
         
            +
                    """翻拍件信息
         
     | 
| 
      
 23919 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
         
     | 
| 
      
 23920 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23921 
     | 
    
         
            +
                    return self._Reprint
         
     | 
| 
      
 23922 
     | 
    
         
            +
             
     | 
| 
      
 23923 
     | 
    
         
            +
                @Reprint.setter
         
     | 
| 
      
 23924 
     | 
    
         
            +
                def Reprint(self, Reprint):
         
     | 
| 
      
 23925 
     | 
    
         
            +
                    self._Reprint = Reprint
         
     | 
| 
      
 23926 
     | 
    
         
            +
             
     | 
| 
      
 23927 
     | 
    
         
            +
                @property
         
     | 
| 
      
 23928 
     | 
    
         
            +
                def RequestId(self):
         
     | 
| 
      
 23929 
     | 
    
         
            +
                    """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 23930 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 23931 
     | 
    
         
            +
                    """
         
     | 
| 
      
 23932 
     | 
    
         
            +
                    return self._RequestId
         
     | 
| 
      
 23933 
     | 
    
         
            +
             
     | 
| 
      
 23934 
     | 
    
         
            +
                @RequestId.setter
         
     | 
| 
      
 23935 
     | 
    
         
            +
                def RequestId(self, RequestId):
         
     | 
| 
      
 23936 
     | 
    
         
            +
                    self._RequestId = RequestId
         
     | 
| 
      
 23937 
     | 
    
         
            +
             
     | 
| 
      
 23938 
     | 
    
         
            +
             
     | 
| 
      
 23939 
     | 
    
         
            +
                def _deserialize(self, params):
         
     | 
| 
      
 23940 
     | 
    
         
            +
                    self._CardType = params.get("CardType")
         
     | 
| 
      
 23941 
     | 
    
         
            +
                    if params.get("Blur") is not None:
         
     | 
| 
      
 23942 
     | 
    
         
            +
                        self._Blur = GeneralCardWarnInfo()
         
     | 
| 
      
 23943 
     | 
    
         
            +
                        self._Blur._deserialize(params.get("Blur"))
         
     | 
| 
      
 23944 
     | 
    
         
            +
                    if params.get("BorderIncomplete") is not None:
         
     | 
| 
      
 23945 
     | 
    
         
            +
                        self._BorderIncomplete = GeneralCardWarnInfo()
         
     | 
| 
      
 23946 
     | 
    
         
            +
                        self._BorderIncomplete._deserialize(params.get("BorderIncomplete"))
         
     | 
| 
      
 23947 
     | 
    
         
            +
                    if params.get("Copy") is not None:
         
     | 
| 
      
 23948 
     | 
    
         
            +
                        self._Copy = GeneralCardWarnInfo()
         
     | 
| 
      
 23949 
     | 
    
         
            +
                        self._Copy._deserialize(params.get("Copy"))
         
     | 
| 
      
 23950 
     | 
    
         
            +
                    if params.get("Ps") is not None:
         
     | 
| 
      
 23951 
     | 
    
         
            +
                        self._Ps = GeneralCardWarnInfo()
         
     | 
| 
      
 23952 
     | 
    
         
            +
                        self._Ps._deserialize(params.get("Ps"))
         
     | 
| 
      
 23953 
     | 
    
         
            +
                    if params.get("Reflection") is not None:
         
     | 
| 
      
 23954 
     | 
    
         
            +
                        self._Reflection = GeneralCardWarnInfo()
         
     | 
| 
      
 23955 
     | 
    
         
            +
                        self._Reflection._deserialize(params.get("Reflection"))
         
     | 
| 
      
 23956 
     | 
    
         
            +
                    if params.get("Reprint") is not None:
         
     | 
| 
      
 23957 
     | 
    
         
            +
                        self._Reprint = GeneralCardWarnInfo()
         
     | 
| 
      
 23958 
     | 
    
         
            +
                        self._Reprint._deserialize(params.get("Reprint"))
         
     | 
| 
      
 23959 
     | 
    
         
            +
                    self._RequestId = params.get("RequestId")
         
     | 
| 
      
 23960 
     | 
    
         
            +
             
     | 
| 
      
 23961 
     | 
    
         
            +
             
     | 
| 
       23610 
23962 
     | 
    
         
             
            class RecognizeGeneralInvoiceRequest(AbstractModel):
         
     | 
| 
       23611 
23963 
     | 
    
         
             
                """RecognizeGeneralInvoice请求参数结构体
         
     | 
| 
       23612 
23964 
     | 
    
         | 
| 
         @@ -1656,6 +1656,29 @@ class OcrClient(AbstractClient): 
     | 
|
| 
       1656 
1656 
     | 
    
         
             
                            raise TencentCloudSDKException(type(e).__name__, str(e))
         
     | 
| 
       1657 
1657 
     | 
    
         | 
| 
       1658 
1658 
     | 
    
         | 
| 
      
 1659 
     | 
    
         
            +
                def RecognizeGeneralCardWarn(self, request):
         
     | 
| 
      
 1660 
     | 
    
         
            +
                    """支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
         
     | 
| 
      
 1661 
     | 
    
         
            +
             
     | 
| 
      
 1662 
     | 
    
         
            +
                    :param request: Request instance for RecognizeGeneralCardWarn.
         
     | 
| 
      
 1663 
     | 
    
         
            +
                    :type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeGeneralCardWarnRequest`
         
     | 
| 
      
 1664 
     | 
    
         
            +
                    :rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeGeneralCardWarnResponse`
         
     | 
| 
      
 1665 
     | 
    
         
            +
             
     | 
| 
      
 1666 
     | 
    
         
            +
                    """
         
     | 
| 
      
 1667 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 1668 
     | 
    
         
            +
                        params = request._serialize()
         
     | 
| 
      
 1669 
     | 
    
         
            +
                        headers = request.headers
         
     | 
| 
      
 1670 
     | 
    
         
            +
                        body = self.call("RecognizeGeneralCardWarn", params, headers=headers)
         
     | 
| 
      
 1671 
     | 
    
         
            +
                        response = json.loads(body)
         
     | 
| 
      
 1672 
     | 
    
         
            +
                        model = models.RecognizeGeneralCardWarnResponse()
         
     | 
| 
      
 1673 
     | 
    
         
            +
                        model._deserialize(response["Response"])
         
     | 
| 
      
 1674 
     | 
    
         
            +
                        return model
         
     | 
| 
      
 1675 
     | 
    
         
            +
                    except Exception as e:
         
     | 
| 
      
 1676 
     | 
    
         
            +
                        if isinstance(e, TencentCloudSDKException):
         
     | 
| 
      
 1677 
     | 
    
         
            +
                            raise
         
     | 
| 
      
 1678 
     | 
    
         
            +
                        else:
         
     | 
| 
      
 1679 
     | 
    
         
            +
                            raise TencentCloudSDKException(type(e).__name__, str(e))
         
     | 
| 
      
 1680 
     | 
    
         
            +
             
     | 
| 
      
 1681 
     | 
    
         
            +
             
     | 
| 
       1659 
1682 
     | 
    
         
             
                def RecognizeGeneralInvoice(self, request):
         
     | 
| 
       1660 
1683 
     | 
    
         
             
                    """本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
         
     | 
| 
       1661 
1684 
     | 
    
         |