GoogleCloudVideointelligenceV1p2beta1DetectedLandmark.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. namespace Google\Service\CloudVideoIntelligence;
  18. class GoogleCloudVideointelligenceV1p2beta1DetectedLandmark extends \Google\Model
  19. {
  20. /**
  21. * The confidence score of the detected landmark. Range [0, 1].
  22. *
  23. * @var float
  24. */
  25. public $confidence;
  26. /**
  27. * The name of this landmark, for example, left_hand, right_shoulder.
  28. *
  29. * @var string
  30. */
  31. public $name;
  32. protected $pointType = GoogleCloudVideointelligenceV1p2beta1NormalizedVertex::class;
  33. protected $pointDataType = '';
  34. /**
  35. * The confidence score of the detected landmark. Range [0, 1].
  36. *
  37. * @param float $confidence
  38. */
  39. public function setConfidence($confidence)
  40. {
  41. $this->confidence = $confidence;
  42. }
  43. /**
  44. * @return float
  45. */
  46. public function getConfidence()
  47. {
  48. return $this->confidence;
  49. }
  50. /**
  51. * The name of this landmark, for example, left_hand, right_shoulder.
  52. *
  53. * @param string $name
  54. */
  55. public function setName($name)
  56. {
  57. $this->name = $name;
  58. }
  59. /**
  60. * @return string
  61. */
  62. public function getName()
  63. {
  64. return $this->name;
  65. }
  66. /**
  67. * The 2D point of the detected landmark using the normalized image coordinate
  68. * system. The normalized coordinates have the range from 0 to 1.
  69. *
  70. * @param GoogleCloudVideointelligenceV1p2beta1NormalizedVertex $point
  71. */
  72. public function setPoint(GoogleCloudVideointelligenceV1p2beta1NormalizedVertex $point)
  73. {
  74. $this->point = $point;
  75. }
  76. /**
  77. * @return GoogleCloudVideointelligenceV1p2beta1NormalizedVertex
  78. */
  79. public function getPoint()
  80. {
  81. return $this->point;
  82. }
  83. }
  84. // Adding a class alias for backwards compatibility with the previous class name.
  85. class_alias(GoogleCloudVideointelligenceV1p2beta1DetectedLandmark::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1DetectedLandmark');