Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1p2beta1/classes.rb,
generated/google/apis/videointelligence_v1p2beta1/representations.rb,
generated/google/apis/videointelligence_v1p2beta1/representations.rb

Overview

Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation.



2612
2613
2614
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 2612

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#framesArray<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame>

All video frames where explicit content was detected. Corresponds to the JSON property frames



2610
2611
2612
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 2610

def frames
  @frames
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2617
2618
2619
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 2617

def update!(**args)
  @frames = args[:frames] if args.key?(:frames)
end