123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?php
- namespace TencentCloud\Iai\V20180301\Models;
- use TencentCloud\Common\AbstractModel;
- class FaceShape extends AbstractModel
- {
-
- public $FaceProfile;
-
- public $LeftEye;
-
- public $RightEye;
-
- public $LeftEyeBrow;
-
- public $RightEyeBrow;
-
- public $Mouth;
-
- public $Nose;
-
- public $LeftPupil;
-
- public $RightPupil;
-
- function __construct()
- {
- }
-
- public function deserialize($param)
- {
- if ($param === null) {
- return;
- }
- if (array_key_exists("FaceProfile",$param) and $param["FaceProfile"] !== null) {
- $this->FaceProfile = [];
- foreach ($param["FaceProfile"] as $key => $value){
- $obj = new Point();
- $obj->deserialize($value);
- array_push($this->FaceProfile, $obj);
- }
- }
- if (array_key_exists("LeftEye",$param) and $param["LeftEye"] !== null) {
- $this->LeftEye = [];
- foreach ($param["LeftEye"] as $key => $value){
- $obj = new Point();
- $obj->deserialize($value);
- array_push($this->LeftEye, $obj);
- }
- }
- if (array_key_exists("RightEye",$param) and $param["RightEye"] !== null) {
- $this->RightEye = [];
- foreach ($param["RightEye"] as $key => $value){
- $obj = new Point();
- $obj->deserialize($value);
- array_push($this->RightEye, $obj);
- }
- }
- if (array_key_exists("LeftEyeBrow",$param) and $param["LeftEyeBrow"] !== null) {
- $this->LeftEyeBrow = [];
- foreach ($param["LeftEyeBrow"] as $key => $value){
- $obj = new Point();
- $obj->deserialize($value);
- array_push($this->LeftEyeBrow, $obj);
- }
- }
- if (array_key_exists("RightEyeBrow",$param) and $param["RightEyeBrow"] !== null) {
- $this->RightEyeBrow = [];
- foreach ($param["RightEyeBrow"] as $key => $value){
- $obj = new Point();
- $obj->deserialize($value);
- array_push($this->RightEyeBrow, $obj);
- }
- }
- if (array_key_exists("Mouth",$param) and $param["Mouth"] !== null) {
- $this->Mouth = [];
- foreach ($param["Mouth"] as $key => $value){
- $obj = new Point();
- $obj->deserialize($value);
- array_push($this->Mouth, $obj);
- }
- }
- if (array_key_exists("Nose",$param) and $param["Nose"] !== null) {
- $this->Nose = [];
- foreach ($param["Nose"] as $key => $value){
- $obj = new Point();
- $obj->deserialize($value);
- array_push($this->Nose, $obj);
- }
- }
- if (array_key_exists("LeftPupil",$param) and $param["LeftPupil"] !== null) {
- $this->LeftPupil = [];
- foreach ($param["LeftPupil"] as $key => $value){
- $obj = new Point();
- $obj->deserialize($value);
- array_push($this->LeftPupil, $obj);
- }
- }
- if (array_key_exists("RightPupil",$param) and $param["RightPupil"] !== null) {
- $this->RightPupil = [];
- foreach ($param["RightPupil"] as $key => $value){
- $obj = new Point();
- $obj->deserialize($value);
- array_push($this->RightPupil, $obj);
- }
- }
- }
- }
|