Class: TencentCloud::Iai::V20180301::DetectFaceResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iai::V20180301::DetectFaceResponse
- Defined in:
- lib/v20180301/models.rb
Overview
DetectFace返回参数结构体
Instance Attribute Summary collapse
-
#FaceInfos ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。 2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。 2020年11月26日后开通服务的账号仅支持输入“3.0”。 不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。.
-
#FaceModelVersion ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。 2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。 2020年11月26日后开通服务的账号仅支持输入“3.0”。 不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。.
-
#ImageHeight ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。 2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。 2020年11月26日后开通服务的账号仅支持输入“3.0”。 不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。.
-
#ImageWidth ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。 2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。 2020年11月26日后开通服务的账号仅支持输入“3.0”。 不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。.
-
#RequestId ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。 2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。 2020年11月26日后开通服务的账号仅支持输入“3.0”。 不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(imagewidth = nil, imageheight = nil, faceinfos = nil, facemodelversion = nil, requestid = nil) ⇒ DetectFaceResponse
constructor
A new instance of DetectFaceResponse.
Constructor Details
#initialize(imagewidth = nil, imageheight = nil, faceinfos = nil, facemodelversion = nil, requestid = nil) ⇒ DetectFaceResponse
Returns a new instance of DetectFaceResponse.
1195 1196 1197 1198 1199 1200 1201 |
# File 'lib/v20180301/models.rb', line 1195 def initialize(imagewidth=nil, imageheight=nil, faceinfos=nil, facemodelversion=nil, requestid=nil) @ImageWidth = imagewidth @ImageHeight = imageheight @FaceInfos = faceinfos @FaceModelVersion = facemodelversion @RequestId = requestid end |
Instance Attribute Details
#FaceInfos ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。2020年11月26日后开通服务的账号仅支持输入“3.0”。不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
1193 1194 1195 |
# File 'lib/v20180301/models.rb', line 1193 def FaceInfos @FaceInfos end |
#FaceModelVersion ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。2020年11月26日后开通服务的账号仅支持输入“3.0”。不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
1193 1194 1195 |
# File 'lib/v20180301/models.rb', line 1193 def FaceModelVersion @FaceModelVersion end |
#ImageHeight ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。2020年11月26日后开通服务的账号仅支持输入“3.0”。不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
1193 1194 1195 |
# File 'lib/v20180301/models.rb', line 1193 def ImageHeight @ImageHeight end |
#ImageWidth ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。2020年11月26日后开通服务的账号仅支持输入“3.0”。不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
1193 1194 1195 |
# File 'lib/v20180301/models.rb', line 1193 def ImageWidth @ImageWidth end |
#RequestId ⇒ Object
目前入参支持 “2.0”和“3.0“ 两个输入。2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。2020年11月26日后开通服务的账号仅支持输入“3.0”。不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
1193 1194 1195 |
# File 'lib/v20180301/models.rb', line 1193 def RequestId @RequestId end |
Instance Method Details
#deserialize(params) ⇒ Object
1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 |
# File 'lib/v20180301/models.rb', line 1203 def deserialize(params) @ImageWidth = params['ImageWidth'] @ImageHeight = params['ImageHeight'] unless params['FaceInfos'].nil? @FaceInfos = [] params['FaceInfos'].each do |i| faceinfo_tmp = FaceInfo.new faceinfo_tmp.deserialize(i) @FaceInfos << faceinfo_tmp end end @FaceModelVersion = params['FaceModelVersion'] @RequestId = params['RequestId'] end |