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
693 694 695 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 693 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
659 660 661 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 659 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
665 666 667 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 665 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
671 672 673 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 671 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
678 679 680 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 678 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
684 685 686 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 684 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
690 691 692 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 690 def stationary_camera @stationary_camera end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
698 699 700 701 702 703 704 705 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 698 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 |