Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame

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

Overview

Video frame level annotation results for explicit content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame.



3639
3640
3641
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3639

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

Instance Attribute Details

#pornography_likelihoodString

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

Returns:

  • (String)


3631
3632
3633
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3631

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)


3637
3638
3639
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3637

def time_offset
  @time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3644
3645
3646
3647
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3644

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