tencentcloud-sdk-ocr 3.0.855 → 3.0.856
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 +2 -0
- data/lib/v20181119/models.rb +45 -16
- 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: 9d9f083c65ca23183bb6ac98ebba7952a8526516
         | 
| 4 | 
            +
              data.tar.gz: 4779352f939bca405e432132c02071f3455ba996
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 921b103cfe888576b5c8baabfbfdf7a47821dc5991695f09b7e3874c6c997300651c31b01583d137d29b95455e365c7fb43ca77925cbfb29adcc520f4e446f45
         | 
| 7 | 
            +
              data.tar.gz: 00ef5510d46b31078d0b6a11ce3215dcbcfe3f2ae557a9af37869b97b0429c920e311cd5f3d2dac2f8a4d8900159047f20ccd85f075947c3ef5faa3d70c857ab
         | 
    
        data/lib/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            3.0. | 
| 1 | 
            +
            3.0.856
         | 
    
        data/lib/v20181119/client.rb
    CHANGED
    
    | @@ -33,6 +33,8 @@ module TencentCloud | |
| 33 33 |  | 
| 34 34 | 
             
                    # 产品优势:针对广告商品图片普遍存在较多繁体字、艺术字的特点,进行了识别能力的增强。支持中英文、横排、竖排以及倾斜场景文字识别。文字识别的召回率和准确率能达到96%以上。
         | 
| 35 35 |  | 
| 36 | 
            +
                    # 默认接口请求频率限制:20次/秒。
         | 
| 37 | 
            +
             | 
| 36 38 | 
             
                    # @param request: Request instance for AdvertiseOCR.
         | 
| 37 39 | 
             
                    # @type request: :class:`Tencentcloud::ocr::V20181119::AdvertiseOCRRequest`
         | 
| 38 40 | 
             
                    # @rtype: :class:`Tencentcloud::ocr::V20181119::AdvertiseOCRResponse`
         | 
    
        data/lib/v20181119/models.rb
    CHANGED
    
    | @@ -45,13 +45,16 @@ module TencentCloud | |
| 45 45 | 
             
                  class AdvertiseOCRResponse < TencentCloud::Common::AbstractModel
         | 
| 46 46 | 
             
                    # @param TextDetections: 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
         | 
| 47 47 | 
             
                    # @type TextDetections: Array
         | 
| 48 | 
            +
                    # @param ImageSize: 图片分辨率信息,单位 px
         | 
| 49 | 
            +
                    # @type ImageSize: :class:`Tencentcloud::Ocr.v20181119.models.ImageSize`
         | 
| 48 50 | 
             
                    # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         | 
| 49 51 | 
             
                    # @type RequestId: String
         | 
| 50 52 |  | 
| 51 | 
            -
                    attr_accessor :TextDetections, :RequestId
         | 
| 53 | 
            +
                    attr_accessor :TextDetections, :ImageSize, :RequestId
         | 
| 52 54 |  | 
| 53 | 
            -
                    def initialize(textdetections=nil, requestid=nil)
         | 
| 55 | 
            +
                    def initialize(textdetections=nil, imagesize=nil, requestid=nil)
         | 
| 54 56 | 
             
                      @TextDetections = textdetections
         | 
| 57 | 
            +
                      @ImageSize = imagesize
         | 
| 55 58 | 
             
                      @RequestId = requestid
         | 
| 56 59 | 
             
                    end
         | 
| 57 60 |  | 
| @@ -64,6 +67,10 @@ module TencentCloud | |
| 64 67 | 
             
                          @TextDetections << advertisetextdetection_tmp
         | 
| 65 68 | 
             
                        end
         | 
| 66 69 | 
             
                      end
         | 
| 70 | 
            +
                      unless params['ImageSize'].nil?
         | 
| 71 | 
            +
                        @ImageSize = ImageSize.new
         | 
| 72 | 
            +
                        @ImageSize.deserialize(params['ImageSize'])
         | 
| 73 | 
            +
                      end
         | 
| 67 74 | 
             
                      @RequestId = params['RequestId']
         | 
| 68 75 | 
             
                    end
         | 
| 69 76 | 
             
                  end
         | 
| @@ -1572,8 +1579,8 @@ module TencentCloud | |
| 1572 1579 |  | 
| 1573 1580 | 
             
                    attr_accessor :PageNumber, :Angle, :Height, :Width, :OriginHeight, :OriginWidth, :Elements, :RotatedAngle
         | 
| 1574 1581 | 
             
                    extend Gem::Deprecate
         | 
| 1575 | 
            -
                    deprecate :Angle, :none, 2024,  | 
| 1576 | 
            -
                    deprecate :Angle=, :none, 2024,  | 
| 1582 | 
            +
                    deprecate :Angle, :none, 2024, 7
         | 
| 1583 | 
            +
                    deprecate :Angle=, :none, 2024, 7
         | 
| 1577 1584 |  | 
| 1578 1585 | 
             
                    def initialize(pagenumber=nil, angle=nil, height=nil, width=nil, originheight=nil, originwidth=nil, elements=nil, rotatedangle=nil)
         | 
| 1579 1586 | 
             
                      @PageNumber = pagenumber
         | 
| @@ -3367,8 +3374,8 @@ module TencentCloud | |
| 3367 3374 |  | 
| 3368 3375 | 
             
                    attr_accessor :TextDetections, :Angel, :Angle, :RequestId
         | 
| 3369 3376 | 
             
                    extend Gem::Deprecate
         | 
| 3370 | 
            -
                    deprecate :Angel, :none, 2024,  | 
| 3371 | 
            -
                    deprecate :Angel=, :none, 2024,  | 
| 3377 | 
            +
                    deprecate :Angel, :none, 2024, 7
         | 
| 3378 | 
            +
                    deprecate :Angel=, :none, 2024, 7
         | 
| 3372 3379 |  | 
| 3373 3380 | 
             
                    def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
         | 
| 3374 3381 | 
             
                      @TextDetections = textdetections
         | 
| @@ -3478,8 +3485,8 @@ module TencentCloud | |
| 3478 3485 |  | 
| 3479 3486 | 
             
                    attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
         | 
| 3480 3487 | 
             
                    extend Gem::Deprecate
         | 
| 3481 | 
            -
                    deprecate :Angel, :none, 2024,  | 
| 3482 | 
            -
                    deprecate :Angel=, :none, 2024,  | 
| 3488 | 
            +
                    deprecate :Angel, :none, 2024, 7
         | 
| 3489 | 
            +
                    deprecate :Angel=, :none, 2024, 7
         | 
| 3483 3490 |  | 
| 3484 3491 | 
             
                    def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
         | 
| 3485 3492 | 
             
                      @TextDetections = textdetections
         | 
| @@ -3869,8 +3876,8 @@ module TencentCloud | |
| 3869 3876 |  | 
| 3870 3877 | 
             
                    attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
         | 
| 3871 3878 | 
             
                    extend Gem::Deprecate
         | 
| 3872 | 
            -
                    deprecate :DetectFake, :none, 2024,  | 
| 3873 | 
            -
                    deprecate :DetectFake=, :none, 2024,  | 
| 3879 | 
            +
                    deprecate :DetectFake, :none, 2024, 7
         | 
| 3880 | 
            +
                    deprecate :DetectFake=, :none, 2024, 7
         | 
| 3874 3881 |  | 
| 3875 3882 | 
             
                    def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
         | 
| 3876 3883 | 
             
                      @ReturnHeadImage = returnheadimage
         | 
| @@ -3939,10 +3946,10 @@ module TencentCloud | |
| 3939 3946 |  | 
| 3940 3947 | 
             
                    attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :WarningCode, :WarnCardInfos, :RequestId
         | 
| 3941 3948 | 
             
                    extend Gem::Deprecate
         | 
| 3942 | 
            -
                    deprecate :FakeDetectResult, :none, 2024,  | 
| 3943 | 
            -
                    deprecate :FakeDetectResult=, :none, 2024,  | 
| 3944 | 
            -
                    deprecate :WarningCode, :none, 2024,  | 
| 3945 | 
            -
                    deprecate :WarningCode=, :none, 2024,  | 
| 3949 | 
            +
                    deprecate :FakeDetectResult, :none, 2024, 7
         | 
| 3950 | 
            +
                    deprecate :FakeDetectResult=, :none, 2024, 7
         | 
| 3951 | 
            +
                    deprecate :WarningCode, :none, 2024, 7
         | 
| 3952 | 
            +
                    deprecate :WarningCode=, :none, 2024, 7
         | 
| 3946 3953 |  | 
| 3947 3954 | 
             
                    def initialize(cnname=nil, enname=nil, telexcode=nil, sex=nil, birthday=nil, permanent=nil, idnum=nil, symbol=nil, firstissuedate=nil, currentissuedate=nil, fakedetectresult=nil, headimage=nil, warningcode=nil, warncardinfos=nil, requestid=nil)
         | 
| 3948 3955 | 
             
                      @CnName = cnname
         | 
| @@ -4286,6 +4293,28 @@ module TencentCloud | |
| 4286 4293 | 
             
                    end
         | 
| 4287 4294 | 
             
                  end
         | 
| 4288 4295 |  | 
| 4296 | 
            +
                  # 图片分辨率信息
         | 
| 4297 | 
            +
                  class ImageSize < TencentCloud::Common::AbstractModel
         | 
| 4298 | 
            +
                    # @param Width: 图片的宽,单位像素
         | 
| 4299 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 4300 | 
            +
                    # @type Width: Integer
         | 
| 4301 | 
            +
                    # @param Height: 图片的高,单位像素
         | 
| 4302 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 4303 | 
            +
                    # @type Height: Integer
         | 
| 4304 | 
            +
             | 
| 4305 | 
            +
                    attr_accessor :Width, :Height
         | 
| 4306 | 
            +
             | 
| 4307 | 
            +
                    def initialize(width=nil, height=nil)
         | 
| 4308 | 
            +
                      @Width = width
         | 
| 4309 | 
            +
                      @Height = height
         | 
| 4310 | 
            +
                    end
         | 
| 4311 | 
            +
             | 
| 4312 | 
            +
                    def deserialize(params)
         | 
| 4313 | 
            +
                      @Width = params['Width']
         | 
| 4314 | 
            +
                      @Height = params['Height']
         | 
| 4315 | 
            +
                    end
         | 
| 4316 | 
            +
                  end
         | 
| 4317 | 
            +
             | 
| 4289 4318 | 
             
                  # InstitutionOCR请求参数结构体
         | 
| 4290 4319 | 
             
                  class InstitutionOCRRequest < TencentCloud::Common::AbstractModel
         | 
| 4291 4320 | 
             
                    # @param ImageBase64: 图片的 Base64 值。
         | 
| @@ -4971,8 +5000,8 @@ module TencentCloud | |
| 4971 5000 |  | 
| 4972 5001 | 
             
                    attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :WarnCardInfos, :RequestId
         | 
| 4973 5002 | 
             
                    extend Gem::Deprecate
         | 
| 4974 | 
            -
                    deprecate :Warn, :none, 2024,  | 
| 4975 | 
            -
                    deprecate :Warn=, :none, 2024,  | 
| 5003 | 
            +
                    deprecate :Warn, :none, 2024, 7
         | 
| 5004 | 
            +
                    deprecate :Warn=, :none, 2024, 7
         | 
| 4976 5005 |  | 
| 4977 5006 | 
             
                    def initialize(id=nil, name=nil, address=nil, sex=nil, warn=nil, image=nil, advancedinfo=nil, type=nil, birthday=nil, warncardinfos=nil, requestid=nil)
         | 
| 4978 5007 | 
             
                      @ID = id
         | 
    
        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.856
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Tencent Cloud
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2024-07- | 
| 11 | 
            +
            date: 2024-07-02 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: tencentcloud-sdk-common
         |