Class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame

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

Overview

Video frame level annotation results for explicit content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame

Returns a new instance of GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame.



2582
2583
2584
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2582

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

Instance Attribute Details

#pornography_likelihoodString

Likelihood of the pornography content.. Corresponds to the JSON property pornographyLikelihood

Returns:

  • (String)


2574
2575
2576
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2574

def pornography_likelihood
  @pornography_likelihood
end

#time_offsetString

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. Corresponds to the JSON property timeOffset

Returns:

  • (String)


2580
2581
2582
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2580

def time_offset
  @time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2587
2588
2589
2590
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2587

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