GoogleCloudVideointelligenceV1p1beta1FaceFrame.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 GoogleCloudVideointelligenceV1p1beta1FaceFrame extends \Google\Collection
  19. {
  20. protected $collection_key = 'normalizedBoundingBoxes';
  21. protected $normalizedBoundingBoxesType = GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox::class;
  22. protected $normalizedBoundingBoxesDataType = 'array';
  23. /**
  24. * Time-offset, relative to the beginning of the video, corresponding to the
  25. * video frame for this location.
  26. *
  27. * @var string
  28. */
  29. public $timeOffset;
  30. /**
  31. * Normalized Bounding boxes in a frame. There can be more than one boxes if
  32. * the same face is detected in multiple locations within the current frame.
  33. *
  34. * @param GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox[] $normalizedBoundingBoxes
  35. */
  36. public function setNormalizedBoundingBoxes($normalizedBoundingBoxes)
  37. {
  38. $this->normalizedBoundingBoxes = $normalizedBoundingBoxes;
  39. }
  40. /**
  41. * @return GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox[]
  42. */
  43. public function getNormalizedBoundingBoxes()
  44. {
  45. return $this->normalizedBoundingBoxes;
  46. }
  47. /**
  48. * Time-offset, relative to the beginning of the video, corresponding to the
  49. * video frame for this location.
  50. *
  51. * @param string $timeOffset
  52. */
  53. public function setTimeOffset($timeOffset)
  54. {
  55. $this->timeOffset = $timeOffset;
  56. }
  57. /**
  58. * @return string
  59. */
  60. public function getTimeOffset()
  61. {
  62. return $this->timeOffset;
  63. }
  64. }
  65. // Adding a class alias for backwards compatibility with the previous class name.
  66. class_alias(GoogleCloudVideointelligenceV1p1beta1FaceFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceFrame');