Class: TencentCloud::Ocr::V20181119::ClassifyDetectOCRResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

ClassifyDetectOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(classifydetectinfos = nil, requestid = nil) ⇒ ClassifyDetectOCRResponse

Returns a new instance of ClassifyDetectOCRResponse.



1337
1338
1339
1340
# File 'lib/v20181119/models.rb', line 1337

def initialize(classifydetectinfos=nil, requestid=nil)
  @ClassifyDetectInfos = classifydetectinfos
  @RequestId = requestid
end

Instance Attribute Details

#ClassifyDetectInfosObject

Parameters:

  • ClassifyDetectInfos:

    智能卡证分类结果。当图片类型不支持分类识别或者识别出的类型不在请求参数DiscernType指定的范围内时,返回结果中的Type字段将为空字符串,Name字段将返回“其它”

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1335
1336
1337
# File 'lib/v20181119/models.rb', line 1335

def ClassifyDetectInfos
  @ClassifyDetectInfos
end

#RequestIdObject

Parameters:

  • ClassifyDetectInfos:

    智能卡证分类结果。当图片类型不支持分类识别或者识别出的类型不在请求参数DiscernType指定的范围内时,返回结果中的Type字段将为空字符串,Name字段将返回“其它”

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1335
1336
1337
# File 'lib/v20181119/models.rb', line 1335

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
# File 'lib/v20181119/models.rb', line 1342

def deserialize(params)
  unless params['ClassifyDetectInfos'].nil?
    @ClassifyDetectInfos = []
    params['ClassifyDetectInfos'].each do |i|
      classifydetectinfo_tmp = ClassifyDetectInfo.new
      classifydetectinfo_tmp.deserialize(i)
      @ClassifyDetectInfos << classifydetectinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end