tencentcloud-sdk-ocr 3.0.546 → 3.0.547
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.
- checksums.yaml +4 -4
 - data/lib/VERSION +1 -1
 - data/lib/v20181119/client.rb +26 -0
 - data/lib/v20181119/models.rb +187 -0
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 97235dfc6055433f591e10fa6c788e3740e0c592
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: fa3647bb0e81d51efcaca8661dc4305937e580cf
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3c3b789d96f916f22e6f52dbc5ab4c42152e5a7e9d78d479a71b7031aa37e175916fc7dd2e2a6e4df9aa1e795ee43b7b6da979557e4461779cc7cd2452856bb5
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 3c8f673749c95b8e3e14eac0f4c166aea79cb616fa2ecfeeca040d3d77dae018d1f197846ba7d216879cea83a59567a92ade04847c1d2c92fa0b5a55326aede2
         
     | 
    
        data/lib/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            3.0. 
     | 
| 
      
 1 
     | 
    
         
            +
            3.0.547
         
     | 
    
        data/lib/v20181119/client.rb
    CHANGED
    
    | 
         @@ -1890,6 +1890,32 @@ module TencentCloud 
     | 
|
| 
       1890 
1890 
     | 
    
         
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       1891 
1891 
     | 
    
         
             
                    end
         
     | 
| 
       1892 
1892 
     | 
    
         | 
| 
      
 1893 
     | 
    
         
            +
                    # 本接口支持识别并提取各类证照、票据、表单、合同等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。
         
     | 
| 
      
 1894 
     | 
    
         
            +
             
     | 
| 
      
 1895 
     | 
    
         
            +
                    # 默认接口请求频率限制:10次/秒。
         
     | 
| 
      
 1896 
     | 
    
         
            +
             
     | 
| 
      
 1897 
     | 
    
         
            +
                    # @param request: Request instance for SmartStructuralOCRV2.
         
     | 
| 
      
 1898 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::ocr::V20181119::SmartStructuralOCRV2Request`
         
     | 
| 
      
 1899 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::ocr::V20181119::SmartStructuralOCRV2Response`
         
     | 
| 
      
 1900 
     | 
    
         
            +
                    def SmartStructuralOCRV2(request)
         
     | 
| 
      
 1901 
     | 
    
         
            +
                      body = send_request('SmartStructuralOCRV2', request.serialize)
         
     | 
| 
      
 1902 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 1903 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 1904 
     | 
    
         
            +
                        model = SmartStructuralOCRV2Response.new
         
     | 
| 
      
 1905 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 1906 
     | 
    
         
            +
                        model
         
     | 
| 
      
 1907 
     | 
    
         
            +
                      else
         
     | 
| 
      
 1908 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 1909 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 1910 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 1911 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 1912 
     | 
    
         
            +
                      end
         
     | 
| 
      
 1913 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 1914 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 1915 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 1916 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 1917 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1918 
     | 
    
         
            +
             
     | 
| 
       1893 
1919 
     | 
    
         
             
                    # <b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
         
     | 
| 
       1894 
1920 
     | 
    
         | 
| 
       1895 
1921 
     | 
    
         
             
                    # 本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
         
     | 
    
        data/lib/v20181119/models.rb
    CHANGED
    
    | 
         @@ -2351,6 +2351,29 @@ module TencentCloud 
     | 
|
| 
       2351 
2351 
     | 
    
         
             
                    end
         
     | 
| 
       2352 
2352 
     | 
    
         
             
                  end
         
     | 
| 
       2353 
2353 
     | 
    
         | 
| 
      
 2354 
     | 
    
         
            +
                  # 组在图中的序号
         
     | 
| 
      
 2355 
     | 
    
         
            +
                  class GroupInfo < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 2356 
     | 
    
         
            +
                    # @param Groups: 每一行的元素
         
     | 
| 
      
 2357 
     | 
    
         
            +
                    # @type Groups: Array
         
     | 
| 
      
 2358 
     | 
    
         
            +
             
     | 
| 
      
 2359 
     | 
    
         
            +
                    attr_accessor :Groups
         
     | 
| 
      
 2360 
     | 
    
         
            +
                    
         
     | 
| 
      
 2361 
     | 
    
         
            +
                    def initialize(groups=nil)
         
     | 
| 
      
 2362 
     | 
    
         
            +
                      @Groups = groups
         
     | 
| 
      
 2363 
     | 
    
         
            +
                    end
         
     | 
| 
      
 2364 
     | 
    
         
            +
             
     | 
| 
      
 2365 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 2366 
     | 
    
         
            +
                      unless params['Groups'].nil?
         
     | 
| 
      
 2367 
     | 
    
         
            +
                        @Groups = []
         
     | 
| 
      
 2368 
     | 
    
         
            +
                        params['Groups'].each do |i|
         
     | 
| 
      
 2369 
     | 
    
         
            +
                          lineinfo_tmp = LineInfo.new
         
     | 
| 
      
 2370 
     | 
    
         
            +
                          lineinfo_tmp.deserialize(i)
         
     | 
| 
      
 2371 
     | 
    
         
            +
                          @Groups << lineinfo_tmp
         
     | 
| 
      
 2372 
     | 
    
         
            +
                        end
         
     | 
| 
      
 2373 
     | 
    
         
            +
                      end
         
     | 
| 
      
 2374 
     | 
    
         
            +
                    end
         
     | 
| 
      
 2375 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2376 
     | 
    
         
            +
             
     | 
| 
       2354 
2377 
     | 
    
         
             
                  # HKIDCardOCR请求参数结构体
         
     | 
| 
       2355 
2378 
     | 
    
         
             
                  class HKIDCardOCRRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
       2356 
2379 
     | 
    
         
             
                    # @param DetectFake: 是否鉴伪。
         
     | 
| 
         @@ -3060,6 +3083,50 @@ module TencentCloud 
     | 
|
| 
       3060 
3083 
     | 
    
         
             
                    end
         
     | 
| 
       3061 
3084 
     | 
    
         
             
                  end
         
     | 
| 
       3062 
3085 
     | 
    
         | 
| 
      
 3086 
     | 
    
         
            +
                  # 智能结构化元素组
         
     | 
| 
      
 3087 
     | 
    
         
            +
                  class ItemInfo < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 3088 
     | 
    
         
            +
                    # @param Key: key信息组
         
     | 
| 
      
 3089 
     | 
    
         
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         
     | 
| 
      
 3090 
     | 
    
         
            +
                    # @type Key: :class:`Tencentcloud::Ocr.v20181119.models.Key`
         
     | 
| 
      
 3091 
     | 
    
         
            +
                    # @param Value: Value信息组
         
     | 
| 
      
 3092 
     | 
    
         
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         
     | 
| 
      
 3093 
     | 
    
         
            +
                    # @type Value: :class:`Tencentcloud::Ocr.v20181119.models.Value`
         
     | 
| 
      
 3094 
     | 
    
         
            +
             
     | 
| 
      
 3095 
     | 
    
         
            +
                    attr_accessor :Key, :Value
         
     | 
| 
      
 3096 
     | 
    
         
            +
                    
         
     | 
| 
      
 3097 
     | 
    
         
            +
                    def initialize(key=nil, value=nil)
         
     | 
| 
      
 3098 
     | 
    
         
            +
                      @Key = key
         
     | 
| 
      
 3099 
     | 
    
         
            +
                      @Value = value
         
     | 
| 
      
 3100 
     | 
    
         
            +
                    end
         
     | 
| 
      
 3101 
     | 
    
         
            +
             
     | 
| 
      
 3102 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 3103 
     | 
    
         
            +
                      unless params['Key'].nil?
         
     | 
| 
      
 3104 
     | 
    
         
            +
                        @Key = Key.new
         
     | 
| 
      
 3105 
     | 
    
         
            +
                        @Key.deserialize(params['Key'])
         
     | 
| 
      
 3106 
     | 
    
         
            +
                      end
         
     | 
| 
      
 3107 
     | 
    
         
            +
                      unless params['Value'].nil?
         
     | 
| 
      
 3108 
     | 
    
         
            +
                        @Value = Value.new
         
     | 
| 
      
 3109 
     | 
    
         
            +
                        @Value.deserialize(params['Value'])
         
     | 
| 
      
 3110 
     | 
    
         
            +
                      end
         
     | 
| 
      
 3111 
     | 
    
         
            +
                    end
         
     | 
| 
      
 3112 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3113 
     | 
    
         
            +
             
     | 
| 
      
 3114 
     | 
    
         
            +
                  # key信息组
         
     | 
| 
      
 3115 
     | 
    
         
            +
                  class Key < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 3116 
     | 
    
         
            +
                    # @param AutoName: 自动识别的字段名称
         
     | 
| 
      
 3117 
     | 
    
         
            +
                    # @type AutoName: String
         
     | 
| 
      
 3118 
     | 
    
         
            +
             
     | 
| 
      
 3119 
     | 
    
         
            +
                    attr_accessor :AutoName
         
     | 
| 
      
 3120 
     | 
    
         
            +
                    
         
     | 
| 
      
 3121 
     | 
    
         
            +
                    def initialize(autoname=nil)
         
     | 
| 
      
 3122 
     | 
    
         
            +
                      @AutoName = autoname
         
     | 
| 
      
 3123 
     | 
    
         
            +
                    end
         
     | 
| 
      
 3124 
     | 
    
         
            +
             
     | 
| 
      
 3125 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 3126 
     | 
    
         
            +
                      @AutoName = params['AutoName']
         
     | 
| 
      
 3127 
     | 
    
         
            +
                    end
         
     | 
| 
      
 3128 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3129 
     | 
    
         
            +
             
     | 
| 
       3063 
3130 
     | 
    
         
             
                  # 全部车牌信息
         
     | 
| 
       3064 
3131 
     | 
    
         
             
                  class LicensePlateInfo < TencentCloud::Common::AbstractModel
         
     | 
| 
       3065 
3132 
     | 
    
         
             
                    # @param Number: 识别出的车牌号码。
         
     | 
| 
         @@ -3164,6 +3231,29 @@ module TencentCloud 
     | 
|
| 
       3164 
3231 
     | 
    
         
             
                    end
         
     | 
| 
       3165 
3232 
     | 
    
         
             
                  end
         
     | 
| 
       3166 
3233 
     | 
    
         | 
| 
      
 3234 
     | 
    
         
            +
                  # 按行输出,行序号
         
     | 
| 
      
 3235 
     | 
    
         
            +
                  class LineInfo < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 3236 
     | 
    
         
            +
                    # @param Lines: 每行的一个元素
         
     | 
| 
      
 3237 
     | 
    
         
            +
                    # @type Lines: Array
         
     | 
| 
      
 3238 
     | 
    
         
            +
             
     | 
| 
      
 3239 
     | 
    
         
            +
                    attr_accessor :Lines
         
     | 
| 
      
 3240 
     | 
    
         
            +
                    
         
     | 
| 
      
 3241 
     | 
    
         
            +
                    def initialize(lines=nil)
         
     | 
| 
      
 3242 
     | 
    
         
            +
                      @Lines = lines
         
     | 
| 
      
 3243 
     | 
    
         
            +
                    end
         
     | 
| 
      
 3244 
     | 
    
         
            +
             
     | 
| 
      
 3245 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 3246 
     | 
    
         
            +
                      unless params['Lines'].nil?
         
     | 
| 
      
 3247 
     | 
    
         
            +
                        @Lines = []
         
     | 
| 
      
 3248 
     | 
    
         
            +
                        params['Lines'].each do |i|
         
     | 
| 
      
 3249 
     | 
    
         
            +
                          iteminfo_tmp = ItemInfo.new
         
     | 
| 
      
 3250 
     | 
    
         
            +
                          iteminfo_tmp.deserialize(i)
         
     | 
| 
      
 3251 
     | 
    
         
            +
                          @Lines << iteminfo_tmp
         
     | 
| 
      
 3252 
     | 
    
         
            +
                        end
         
     | 
| 
      
 3253 
     | 
    
         
            +
                      end
         
     | 
| 
      
 3254 
     | 
    
         
            +
                    end
         
     | 
| 
      
 3255 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3256 
     | 
    
         
            +
             
     | 
| 
       3167 
3257 
     | 
    
         
             
                  # MLIDCardOCR请求参数结构体
         
     | 
| 
       3168 
3258 
     | 
    
         
             
                  class MLIDCardOCRRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
       3169 
3259 
     | 
    
         
             
                    # @param ImageBase64: 图片的 Base64 值。
         
     | 
| 
         @@ -6178,6 +6268,79 @@ module TencentCloud 
     | 
|
| 
       6178 
6268 
     | 
    
         
             
                    end
         
     | 
| 
       6179 
6269 
     | 
    
         
             
                  end
         
     | 
| 
       6180 
6270 
     | 
    
         | 
| 
      
 6271 
     | 
    
         
            +
                  # SmartStructuralOCRV2请求参数结构体
         
     | 
| 
      
 6272 
     | 
    
         
            +
                  class SmartStructuralOCRV2Request < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 6273 
     | 
    
         
            +
                    # @param ImageUrl: 图片的 Url 地址。
         
     | 
| 
      
 6274 
     | 
    
         
            +
                    # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
         
     | 
| 
      
 6275 
     | 
    
         
            +
                    # 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
         
     | 
| 
      
 6276 
     | 
    
         
            +
                    # 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
         
     | 
| 
      
 6277 
     | 
    
         
            +
                    # 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
         
     | 
| 
      
 6278 
     | 
    
         
            +
                    # @type ImageUrl: String
         
     | 
| 
      
 6279 
     | 
    
         
            +
                    # @param ImageBase64: 图片的 Base64 值。
         
     | 
| 
      
 6280 
     | 
    
         
            +
                    # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
         
     | 
| 
      
 6281 
     | 
    
         
            +
                    # 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
         
     | 
| 
      
 6282 
     | 
    
         
            +
                    # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
         
     | 
| 
      
 6283 
     | 
    
         
            +
                    # @type ImageBase64: String
         
     | 
| 
      
 6284 
     | 
    
         
            +
                    # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
         
     | 
| 
      
 6285 
     | 
    
         
            +
                    # @type IsPdf: Boolean
         
     | 
| 
      
 6286 
     | 
    
         
            +
                    # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
         
     | 
| 
      
 6287 
     | 
    
         
            +
                    # @type PdfPageNumber: Integer
         
     | 
| 
      
 6288 
     | 
    
         
            +
                    # @param ItemNames: 自定义结构化功能需返回的字段名称,例:
         
     | 
| 
      
 6289 
     | 
    
         
            +
                    # 若客户只想返回姓名、性别两个字段的识别结果,则输入
         
     | 
| 
      
 6290 
     | 
    
         
            +
                    # ItemNames=["姓名","性别"]
         
     | 
| 
      
 6291 
     | 
    
         
            +
                    # @type ItemNames: Array
         
     | 
| 
      
 6292 
     | 
    
         
            +
             
     | 
| 
      
 6293 
     | 
    
         
            +
                    attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :ItemNames
         
     | 
| 
      
 6294 
     | 
    
         
            +
                    
         
     | 
| 
      
 6295 
     | 
    
         
            +
                    def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, itemnames=nil)
         
     | 
| 
      
 6296 
     | 
    
         
            +
                      @ImageUrl = imageurl
         
     | 
| 
      
 6297 
     | 
    
         
            +
                      @ImageBase64 = imagebase64
         
     | 
| 
      
 6298 
     | 
    
         
            +
                      @IsPdf = ispdf
         
     | 
| 
      
 6299 
     | 
    
         
            +
                      @PdfPageNumber = pdfpagenumber
         
     | 
| 
      
 6300 
     | 
    
         
            +
                      @ItemNames = itemnames
         
     | 
| 
      
 6301 
     | 
    
         
            +
                    end
         
     | 
| 
      
 6302 
     | 
    
         
            +
             
     | 
| 
      
 6303 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 6304 
     | 
    
         
            +
                      @ImageUrl = params['ImageUrl']
         
     | 
| 
      
 6305 
     | 
    
         
            +
                      @ImageBase64 = params['ImageBase64']
         
     | 
| 
      
 6306 
     | 
    
         
            +
                      @IsPdf = params['IsPdf']
         
     | 
| 
      
 6307 
     | 
    
         
            +
                      @PdfPageNumber = params['PdfPageNumber']
         
     | 
| 
      
 6308 
     | 
    
         
            +
                      @ItemNames = params['ItemNames']
         
     | 
| 
      
 6309 
     | 
    
         
            +
                    end
         
     | 
| 
      
 6310 
     | 
    
         
            +
                  end
         
     | 
| 
      
 6311 
     | 
    
         
            +
             
     | 
| 
      
 6312 
     | 
    
         
            +
                  # SmartStructuralOCRV2返回参数结构体
         
     | 
| 
      
 6313 
     | 
    
         
            +
                  class SmartStructuralOCRV2Response < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 6314 
     | 
    
         
            +
                    # @param Angle: 图片旋转角度(角度制),文本的水平方向
         
     | 
| 
      
 6315 
     | 
    
         
            +
                    # 为 0;顺时针为正,逆时针为负
         
     | 
| 
      
 6316 
     | 
    
         
            +
                    # @type Angle: Float
         
     | 
| 
      
 6317 
     | 
    
         
            +
                    # @param StructuralList: 配置结构化文本信息
         
     | 
| 
      
 6318 
     | 
    
         
            +
                    # @type StructuralList: Array
         
     | 
| 
      
 6319 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 6320 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 6321 
     | 
    
         
            +
             
     | 
| 
      
 6322 
     | 
    
         
            +
                    attr_accessor :Angle, :StructuralList, :RequestId
         
     | 
| 
      
 6323 
     | 
    
         
            +
                    
         
     | 
| 
      
 6324 
     | 
    
         
            +
                    def initialize(angle=nil, structurallist=nil, requestid=nil)
         
     | 
| 
      
 6325 
     | 
    
         
            +
                      @Angle = angle
         
     | 
| 
      
 6326 
     | 
    
         
            +
                      @StructuralList = structurallist
         
     | 
| 
      
 6327 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 6328 
     | 
    
         
            +
                    end
         
     | 
| 
      
 6329 
     | 
    
         
            +
             
     | 
| 
      
 6330 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 6331 
     | 
    
         
            +
                      @Angle = params['Angle']
         
     | 
| 
      
 6332 
     | 
    
         
            +
                      unless params['StructuralList'].nil?
         
     | 
| 
      
 6333 
     | 
    
         
            +
                        @StructuralList = []
         
     | 
| 
      
 6334 
     | 
    
         
            +
                        params['StructuralList'].each do |i|
         
     | 
| 
      
 6335 
     | 
    
         
            +
                          groupinfo_tmp = GroupInfo.new
         
     | 
| 
      
 6336 
     | 
    
         
            +
                          groupinfo_tmp.deserialize(i)
         
     | 
| 
      
 6337 
     | 
    
         
            +
                          @StructuralList << groupinfo_tmp
         
     | 
| 
      
 6338 
     | 
    
         
            +
                        end
         
     | 
| 
      
 6339 
     | 
    
         
            +
                      end
         
     | 
| 
      
 6340 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 6341 
     | 
    
         
            +
                    end
         
     | 
| 
      
 6342 
     | 
    
         
            +
                  end
         
     | 
| 
      
 6343 
     | 
    
         
            +
             
     | 
| 
       6181 
6344 
     | 
    
         
             
                  # 智能结构化识别
         
     | 
| 
       6182 
6345 
     | 
    
         
             
                  class StructuralItem < TencentCloud::Common::AbstractModel
         
     | 
| 
       6183 
6346 
     | 
    
         
             
                    # @param Name: 识别出的字段名称(关键字)。
         
     | 
| 
         @@ -7582,6 +7745,30 @@ module TencentCloud 
     | 
|
| 
       7582 
7745 
     | 
    
         
             
                    end
         
     | 
| 
       7583 
7746 
     | 
    
         
             
                  end
         
     | 
| 
       7584 
7747 
     | 
    
         | 
| 
      
 7748 
     | 
    
         
            +
                  # value信息组
         
     | 
| 
      
 7749 
     | 
    
         
            +
                  class Value < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 7750 
     | 
    
         
            +
                    # @param AutoContent: 自动识别的字段内容
         
     | 
| 
      
 7751 
     | 
    
         
            +
                    # @type AutoContent: String
         
     | 
| 
      
 7752 
     | 
    
         
            +
                    # @param Coord: 四点坐标
         
     | 
| 
      
 7753 
     | 
    
         
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         
     | 
| 
      
 7754 
     | 
    
         
            +
                    # @type Coord: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
         
     | 
| 
      
 7755 
     | 
    
         
            +
             
     | 
| 
      
 7756 
     | 
    
         
            +
                    attr_accessor :AutoContent, :Coord
         
     | 
| 
      
 7757 
     | 
    
         
            +
                    
         
     | 
| 
      
 7758 
     | 
    
         
            +
                    def initialize(autocontent=nil, coord=nil)
         
     | 
| 
      
 7759 
     | 
    
         
            +
                      @AutoContent = autocontent
         
     | 
| 
      
 7760 
     | 
    
         
            +
                      @Coord = coord
         
     | 
| 
      
 7761 
     | 
    
         
            +
                    end
         
     | 
| 
      
 7762 
     | 
    
         
            +
             
     | 
| 
      
 7763 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 7764 
     | 
    
         
            +
                      @AutoContent = params['AutoContent']
         
     | 
| 
      
 7765 
     | 
    
         
            +
                      unless params['Coord'].nil?
         
     | 
| 
      
 7766 
     | 
    
         
            +
                        @Coord = Polygon.new
         
     | 
| 
      
 7767 
     | 
    
         
            +
                        @Coord.deserialize(params['Coord'])
         
     | 
| 
      
 7768 
     | 
    
         
            +
                      end
         
     | 
| 
      
 7769 
     | 
    
         
            +
                    end
         
     | 
| 
      
 7770 
     | 
    
         
            +
                  end
         
     | 
| 
      
 7771 
     | 
    
         
            +
             
     | 
| 
       7585 
7772 
     | 
    
         
             
                  # 增值税发票信息
         
     | 
| 
       7586 
7773 
     | 
    
         
             
                  class VatInvoice < TencentCloud::Common::AbstractModel
         
     | 
| 
       7587 
7774 
     | 
    
         
             
                    # @param Code: 发票代码
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: tencentcloud-sdk-ocr
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.0.547
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Tencent Cloud
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2023-04- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-04-10 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: tencentcloud-sdk-common
         
     |