Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoContext
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1beta1/classes.rb,
generated/google/apis/videointelligence_v1beta1/representations.rb,
generated/google/apis/videointelligence_v1beta1/representations.rb
Overview
Video context and/or feature-specific parameters.
Instance Attribute Summary collapse
-
#label_detection_mode ⇒ String
If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels.
-
#label_detection_model ⇒ String
Model to use for label detection.
-
#safe_search_detection_model ⇒ String
Model to use for safe search detection.
-
#segments ⇒ Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment>
Video segments to annotate.
-
#shot_change_detection_model ⇒ String
Model to use for shot change detection.
-
#stationary_camera ⇒ Boolean
(also: #stationary_camera?)
Whether the video has been shot from a stationary (i.e. non-moving) camera.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1VideoContext
constructor
A new instance of GoogleCloudVideointelligenceV1beta1VideoContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1VideoContext
Returns a new instance of GoogleCloudVideointelligenceV1beta1VideoContext
791 792 793 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 791 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label_detection_mode ⇒ String
If label detection has been requested, what labels should be detected
in addition to video-level labels or segment-level labels. If unspecified,
defaults to SHOT_MODE
.
Corresponds to the JSON property labelDetectionMode
757 758 759 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 757 def label_detection_mode @label_detection_mode end |
#label_detection_model ⇒ String
Model to use for label detection.
Supported values: "latest" and "stable" (the default).
Corresponds to the JSON property labelDetectionModel
763 764 765 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 763 def label_detection_model @label_detection_model end |
#safe_search_detection_model ⇒ String
Model to use for safe search detection.
Supported values: "latest" and "stable" (the default).
Corresponds to the JSON property safeSearchDetectionModel
769 770 771 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 769 def safe_search_detection_model @safe_search_detection_model end |
#segments ⇒ Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment>
Video segments to annotate. The segments may overlap and are not required
to be contiguous or span the whole video. If unspecified, each video
is treated as a single segment.
Corresponds to the JSON property segments
776 777 778 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 776 def segments @segments end |
#shot_change_detection_model ⇒ String
Model to use for shot change detection.
Supported values: "latest" and "stable" (the default).
Corresponds to the JSON property shotChangeDetectionModel
782 783 784 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 782 def shot_change_detection_model @shot_change_detection_model end |
#stationary_camera ⇒ Boolean Also known as: stationary_camera?
Whether the video has been shot from a stationary (i.e. non-moving) camera.
When set to true, might improve detection accuracy for moving objects.
Corresponds to the JSON property stationaryCamera
788 789 790 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 788 def stationary_camera @stationary_camera end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
796 797 798 799 800 801 802 803 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 796 def update!(**args) @label_detection_mode = args[:label_detection_mode] if args.key?(:label_detection_mode) @label_detection_model = args[:label_detection_model] if args.key?(:label_detection_model) @safe_search_detection_model = args[:safe_search_detection_model] if args.key?(:safe_search_detection_model) @segments = args[:segments] if args.key?(:segments) @shot_change_detection_model = args[:shot_change_detection_model] if args.key?(:shot_change_detection_model) @stationary_camera = args[:stationary_camera] if args.key?(:stationary_camera) end |