Class: TencentCloud::Iai::V20180301::CreateFaceResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iai::V20180301::CreateFaceResponse
- Defined in:
- lib/v20180301/models.rb
Overview
CreateFace返回参数结构体
Instance Attribute Summary collapse
-
#FaceModelVersion ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。 其他非 0 值代表算法服务异常。 RetCode的顺序和入参中 Images 或 Urls 的顺序一致。 例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。.
-
#RequestId ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。 其他非 0 值代表算法服务异常。 RetCode的顺序和入参中 Images 或 Urls 的顺序一致。 例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。.
-
#RetCode ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。 其他非 0 值代表算法服务异常。 RetCode的顺序和入参中 Images 或 Urls 的顺序一致。 例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。.
-
#SucFaceIds ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。 其他非 0 值代表算法服务异常。 RetCode的顺序和入参中 Images 或 Urls 的顺序一致。 例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。.
-
#SucFaceNum ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。 其他非 0 值代表算法服务异常。 RetCode的顺序和入参中 Images 或 Urls 的顺序一致。 例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。.
-
#SucFaceRects ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。 其他非 0 值代表算法服务异常。 RetCode的顺序和入参中 Images 或 Urls 的顺序一致。 例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。.
-
#SucIndexes ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。 其他非 0 值代表算法服务异常。 RetCode的顺序和入参中 Images 或 Urls 的顺序一致。 例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sucfacenum = nil, sucfaceids = nil, retcode = nil, sucindexes = nil, sucfacerects = nil, facemodelversion = nil, requestid = nil) ⇒ CreateFaceResponse
constructor
A new instance of CreateFaceResponse.
Constructor Details
#initialize(sucfacenum = nil, sucfaceids = nil, retcode = nil, sucindexes = nil, sucfacerects = nil, facemodelversion = nil, requestid = nil) ⇒ CreateFaceResponse
Returns a new instance of CreateFaceResponse.
487 488 489 490 491 492 493 494 495 |
# File 'lib/v20180301/models.rb', line 487 def initialize(sucfacenum=nil, sucfaceids=nil, retcode=nil, sucindexes=nil, sucfacerects=nil, facemodelversion=nil, requestid=nil) @SucFaceNum = sucfacenum @SucFaceIds = sucfaceids @RetCode = retcode @SucIndexes = sucindexes @SucFaceRects = sucfacerects @FaceModelVersion = facemodelversion @RequestId = requestid end |
Instance Attribute Details
#FaceModelVersion ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。其他非 0 值代表算法服务异常。RetCode的顺序和入参中 Images 或 Urls 的顺序一致。例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。
485 486 487 |
# File 'lib/v20180301/models.rb', line 485 def FaceModelVersion @FaceModelVersion end |
#RequestId ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。其他非 0 值代表算法服务异常。RetCode的顺序和入参中 Images 或 Urls 的顺序一致。例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。
485 486 487 |
# File 'lib/v20180301/models.rb', line 485 def RequestId @RequestId end |
#RetCode ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。其他非 0 值代表算法服务异常。RetCode的顺序和入参中 Images 或 Urls 的顺序一致。例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。
485 486 487 |
# File 'lib/v20180301/models.rb', line 485 def RetCode @RetCode end |
#SucFaceIds ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。其他非 0 值代表算法服务异常。RetCode的顺序和入参中 Images 或 Urls 的顺序一致。例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。
485 486 487 |
# File 'lib/v20180301/models.rb', line 485 def SucFaceIds @SucFaceIds end |
#SucFaceNum ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。其他非 0 值代表算法服务异常。RetCode的顺序和入参中 Images 或 Urls 的顺序一致。例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。
485 486 487 |
# File 'lib/v20180301/models.rb', line 485 def SucFaceNum @SucFaceNum end |
#SucFaceRects ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。其他非 0 值代表算法服务异常。RetCode的顺序和入参中 Images 或 Urls 的顺序一致。例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。
485 486 487 |
# File 'lib/v20180301/models.rb', line 485 def SucFaceRects @SucFaceRects end |
#SucIndexes ⇒ Object
-1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。其他非 0 值代表算法服务异常。RetCode的顺序和入参中 Images 或 Urls 的顺序一致。例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。
485 486 487 |
# File 'lib/v20180301/models.rb', line 485 def SucIndexes @SucIndexes end |
Instance Method Details
#deserialize(params) ⇒ Object
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 |
# File 'lib/v20180301/models.rb', line 497 def deserialize(params) @SucFaceNum = params['SucFaceNum'] @SucFaceIds = params['SucFaceIds'] @RetCode = params['RetCode'] @SucIndexes = params['SucIndexes'] unless params['SucFaceRects'].nil? @SucFaceRects = [] params['SucFaceRects'].each do |i| facerect_tmp = FaceRect.new facerect_tmp.deserialize(i) @SucFaceRects << facerect_tmp end end @FaceModelVersion = params['FaceModelVersion'] @RequestId = params['RequestId'] end |