167 lines
5.5 KiB
PHP
167 lines
5.5 KiB
PHP
<?php
|
|
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
|
* the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations under
|
|
* the License.
|
|
*/
|
|
|
|
namespace Google\Service\DataLabeling;
|
|
|
|
class GoogleCloudDatalabelingV1beta1LabelVideoRequest extends \Google\Model
|
|
{
|
|
public const FEATURE_FEATURE_UNSPECIFIED = 'FEATURE_UNSPECIFIED';
|
|
/**
|
|
* Label whole video or video segment with one or more labels.
|
|
*/
|
|
public const FEATURE_CLASSIFICATION = 'CLASSIFICATION';
|
|
/**
|
|
* Label objects with bounding box on image frames extracted from the video.
|
|
*/
|
|
public const FEATURE_OBJECT_DETECTION = 'OBJECT_DETECTION';
|
|
/**
|
|
* Label and track objects in video.
|
|
*/
|
|
public const FEATURE_OBJECT_TRACKING = 'OBJECT_TRACKING';
|
|
/**
|
|
* Label the range of video for the specified events.
|
|
*/
|
|
public const FEATURE_EVENT = 'EVENT';
|
|
protected $basicConfigType = GoogleCloudDatalabelingV1beta1HumanAnnotationConfig::class;
|
|
protected $basicConfigDataType = '';
|
|
protected $eventConfigType = GoogleCloudDatalabelingV1beta1EventConfig::class;
|
|
protected $eventConfigDataType = '';
|
|
/**
|
|
* Required. The type of video labeling task.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $feature;
|
|
protected $objectDetectionConfigType = GoogleCloudDatalabelingV1beta1ObjectDetectionConfig::class;
|
|
protected $objectDetectionConfigDataType = '';
|
|
protected $objectTrackingConfigType = GoogleCloudDatalabelingV1beta1ObjectTrackingConfig::class;
|
|
protected $objectTrackingConfigDataType = '';
|
|
protected $videoClassificationConfigType = GoogleCloudDatalabelingV1beta1VideoClassificationConfig::class;
|
|
protected $videoClassificationConfigDataType = '';
|
|
|
|
/**
|
|
* Required. Basic human annotation config.
|
|
*
|
|
* @param GoogleCloudDatalabelingV1beta1HumanAnnotationConfig $basicConfig
|
|
*/
|
|
public function setBasicConfig(GoogleCloudDatalabelingV1beta1HumanAnnotationConfig $basicConfig)
|
|
{
|
|
$this->basicConfig = $basicConfig;
|
|
}
|
|
/**
|
|
* @return GoogleCloudDatalabelingV1beta1HumanAnnotationConfig
|
|
*/
|
|
public function getBasicConfig()
|
|
{
|
|
return $this->basicConfig;
|
|
}
|
|
/**
|
|
* Configuration for video event task. One of video_classification_config,
|
|
* object_detection_config, object_tracking_config and event_config is
|
|
* required.
|
|
*
|
|
* @param GoogleCloudDatalabelingV1beta1EventConfig $eventConfig
|
|
*/
|
|
public function setEventConfig(GoogleCloudDatalabelingV1beta1EventConfig $eventConfig)
|
|
{
|
|
$this->eventConfig = $eventConfig;
|
|
}
|
|
/**
|
|
* @return GoogleCloudDatalabelingV1beta1EventConfig
|
|
*/
|
|
public function getEventConfig()
|
|
{
|
|
return $this->eventConfig;
|
|
}
|
|
/**
|
|
* Required. The type of video labeling task.
|
|
*
|
|
* Accepted values: FEATURE_UNSPECIFIED, CLASSIFICATION, OBJECT_DETECTION,
|
|
* OBJECT_TRACKING, EVENT
|
|
*
|
|
* @param self::FEATURE_* $feature
|
|
*/
|
|
public function setFeature($feature)
|
|
{
|
|
$this->feature = $feature;
|
|
}
|
|
/**
|
|
* @return self::FEATURE_*
|
|
*/
|
|
public function getFeature()
|
|
{
|
|
return $this->feature;
|
|
}
|
|
/**
|
|
* Configuration for video object detection task. One of
|
|
* video_classification_config, object_detection_config,
|
|
* object_tracking_config and event_config is required.
|
|
*
|
|
* @param GoogleCloudDatalabelingV1beta1ObjectDetectionConfig $objectDetectionConfig
|
|
*/
|
|
public function setObjectDetectionConfig(GoogleCloudDatalabelingV1beta1ObjectDetectionConfig $objectDetectionConfig)
|
|
{
|
|
$this->objectDetectionConfig = $objectDetectionConfig;
|
|
}
|
|
/**
|
|
* @return GoogleCloudDatalabelingV1beta1ObjectDetectionConfig
|
|
*/
|
|
public function getObjectDetectionConfig()
|
|
{
|
|
return $this->objectDetectionConfig;
|
|
}
|
|
/**
|
|
* Configuration for video object tracking task. One of
|
|
* video_classification_config, object_detection_config,
|
|
* object_tracking_config and event_config is required.
|
|
*
|
|
* @param GoogleCloudDatalabelingV1beta1ObjectTrackingConfig $objectTrackingConfig
|
|
*/
|
|
public function setObjectTrackingConfig(GoogleCloudDatalabelingV1beta1ObjectTrackingConfig $objectTrackingConfig)
|
|
{
|
|
$this->objectTrackingConfig = $objectTrackingConfig;
|
|
}
|
|
/**
|
|
* @return GoogleCloudDatalabelingV1beta1ObjectTrackingConfig
|
|
*/
|
|
public function getObjectTrackingConfig()
|
|
{
|
|
return $this->objectTrackingConfig;
|
|
}
|
|
/**
|
|
* Configuration for video classification task. One of
|
|
* video_classification_config, object_detection_config,
|
|
* object_tracking_config and event_config is required.
|
|
*
|
|
* @param GoogleCloudDatalabelingV1beta1VideoClassificationConfig $videoClassificationConfig
|
|
*/
|
|
public function setVideoClassificationConfig(GoogleCloudDatalabelingV1beta1VideoClassificationConfig $videoClassificationConfig)
|
|
{
|
|
$this->videoClassificationConfig = $videoClassificationConfig;
|
|
}
|
|
/**
|
|
* @return GoogleCloudDatalabelingV1beta1VideoClassificationConfig
|
|
*/
|
|
public function getVideoClassificationConfig()
|
|
{
|
|
return $this->videoClassificationConfig;
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(GoogleCloudDatalabelingV1beta1LabelVideoRequest::class, 'Google_Service_DataLabeling_GoogleCloudDatalabelingV1beta1LabelVideoRequest');
|