Без опису

FaceAnnotation.php 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * 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, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. class Google_Service_Vision_FaceAnnotation extends Google_Collection
  18. {
  19. protected $collection_key = 'landmarks';
  20. public $angerLikelihood;
  21. public $blurredLikelihood;
  22. protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly';
  23. protected $boundingPolyDataType = '';
  24. public $detectionConfidence;
  25. protected $fdBoundingPolyType = 'Google_Service_Vision_BoundingPoly';
  26. protected $fdBoundingPolyDataType = '';
  27. public $headwearLikelihood;
  28. public $joyLikelihood;
  29. public $landmarkingConfidence;
  30. protected $landmarksType = 'Google_Service_Vision_Landmark';
  31. protected $landmarksDataType = 'array';
  32. public $panAngle;
  33. public $rollAngle;
  34. public $sorrowLikelihood;
  35. public $surpriseLikelihood;
  36. public $tiltAngle;
  37. public $underExposedLikelihood;
  38. public function setAngerLikelihood($angerLikelihood)
  39. {
  40. $this->angerLikelihood = $angerLikelihood;
  41. }
  42. public function getAngerLikelihood()
  43. {
  44. return $this->angerLikelihood;
  45. }
  46. public function setBlurredLikelihood($blurredLikelihood)
  47. {
  48. $this->blurredLikelihood = $blurredLikelihood;
  49. }
  50. public function getBlurredLikelihood()
  51. {
  52. return $this->blurredLikelihood;
  53. }
  54. /**
  55. * @param Google_Service_Vision_BoundingPoly
  56. */
  57. public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly)
  58. {
  59. $this->boundingPoly = $boundingPoly;
  60. }
  61. /**
  62. * @return Google_Service_Vision_BoundingPoly
  63. */
  64. public function getBoundingPoly()
  65. {
  66. return $this->boundingPoly;
  67. }
  68. public function setDetectionConfidence($detectionConfidence)
  69. {
  70. $this->detectionConfidence = $detectionConfidence;
  71. }
  72. public function getDetectionConfidence()
  73. {
  74. return $this->detectionConfidence;
  75. }
  76. /**
  77. * @param Google_Service_Vision_BoundingPoly
  78. */
  79. public function setFdBoundingPoly(Google_Service_Vision_BoundingPoly $fdBoundingPoly)
  80. {
  81. $this->fdBoundingPoly = $fdBoundingPoly;
  82. }
  83. /**
  84. * @return Google_Service_Vision_BoundingPoly
  85. */
  86. public function getFdBoundingPoly()
  87. {
  88. return $this->fdBoundingPoly;
  89. }
  90. public function setHeadwearLikelihood($headwearLikelihood)
  91. {
  92. $this->headwearLikelihood = $headwearLikelihood;
  93. }
  94. public function getHeadwearLikelihood()
  95. {
  96. return $this->headwearLikelihood;
  97. }
  98. public function setJoyLikelihood($joyLikelihood)
  99. {
  100. $this->joyLikelihood = $joyLikelihood;
  101. }
  102. public function getJoyLikelihood()
  103. {
  104. return $this->joyLikelihood;
  105. }
  106. public function setLandmarkingConfidence($landmarkingConfidence)
  107. {
  108. $this->landmarkingConfidence = $landmarkingConfidence;
  109. }
  110. public function getLandmarkingConfidence()
  111. {
  112. return $this->landmarkingConfidence;
  113. }
  114. /**
  115. * @param Google_Service_Vision_Landmark
  116. */
  117. public function setLandmarks($landmarks)
  118. {
  119. $this->landmarks = $landmarks;
  120. }
  121. /**
  122. * @return Google_Service_Vision_Landmark
  123. */
  124. public function getLandmarks()
  125. {
  126. return $this->landmarks;
  127. }
  128. public function setPanAngle($panAngle)
  129. {
  130. $this->panAngle = $panAngle;
  131. }
  132. public function getPanAngle()
  133. {
  134. return $this->panAngle;
  135. }
  136. public function setRollAngle($rollAngle)
  137. {
  138. $this->rollAngle = $rollAngle;
  139. }
  140. public function getRollAngle()
  141. {
  142. return $this->rollAngle;
  143. }
  144. public function setSorrowLikelihood($sorrowLikelihood)
  145. {
  146. $this->sorrowLikelihood = $sorrowLikelihood;
  147. }
  148. public function getSorrowLikelihood()
  149. {
  150. return $this->sorrowLikelihood;
  151. }
  152. public function setSurpriseLikelihood($surpriseLikelihood)
  153. {
  154. $this->surpriseLikelihood = $surpriseLikelihood;
  155. }
  156. public function getSurpriseLikelihood()
  157. {
  158. return $this->surpriseLikelihood;
  159. }
  160. public function setTiltAngle($tiltAngle)
  161. {
  162. $this->tiltAngle = $tiltAngle;
  163. }
  164. public function getTiltAngle()
  165. {
  166. return $this->tiltAngle;
  167. }
  168. public function setUnderExposedLikelihood($underExposedLikelihood)
  169. {
  170. $this->underExposedLikelihood = $underExposedLikelihood;
  171. }
  172. public function getUnderExposedLikelihood()
  173. {
  174. return $this->underExposedLikelihood;
  175. }
  176. }