AttributeItem.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /*
  3. * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. namespace TencentCloud\Iai\V20180301\Models;
  18. use TencentCloud\Common\AbstractModel;
  19. /**
  20. * 人脸属性信息
  21. *
  22. * @method integer getType() 获取属性值
  23. * @method void setType(integer $Type) 设置属性值
  24. * @method float getProbability() 获取Type识别概率值,【0,1】,代表判断正确的概率。
  25. * @method void setProbability(float $Probability) 设置Type识别概率值,【0,1】,代表判断正确的概率。
  26. */
  27. class AttributeItem extends AbstractModel
  28. {
  29. /**
  30. * @var integer 属性值
  31. */
  32. public $Type;
  33. /**
  34. * @var float Type识别概率值,【0,1】,代表判断正确的概率。
  35. */
  36. public $Probability;
  37. /**
  38. * @param integer $Type 属性值
  39. * @param float $Probability Type识别概率值,【0,1】,代表判断正确的概率。
  40. */
  41. function __construct()
  42. {
  43. }
  44. /**
  45. * For internal only. DO NOT USE IT.
  46. */
  47. public function deserialize($param)
  48. {
  49. if ($param === null) {
  50. return;
  51. }
  52. if (array_key_exists("Type",$param) and $param["Type"] !== null) {
  53. $this->Type = $param["Type"];
  54. }
  55. if (array_key_exists("Probability",$param) and $param["Probability"] !== null) {
  56. $this->Probability = $param["Probability"];
  57. }
  58. }
  59. }