Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1FaceAnnotation

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

Overview

Deprecated. No effect.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1FaceAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1FaceAnnotation.



5586
5587
5588
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5586

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

Instance Attribute Details

#framesArray<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1FaceFrame>

All video frames where a face was detected. Corresponds to the JSON property frames



5573
5574
5575
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5573

def frames
  @frames
end

#segmentsArray<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1FaceSegment>

All video segments where a face was detected. Corresponds to the JSON property segments



5578
5579
5580
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5578

def segments
  @segments
end

#thumbnailString

Thumbnail of a representative face view (in JPEG format). Corresponds to the JSON property thumbnail NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


5584
5585
5586
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5584

def thumbnail
  @thumbnail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5591
5592
5593
5594
5595
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 5591

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