Class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2FaceAnnotation

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

Overview

Deprecated. No effect.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2FaceAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1beta2FaceAnnotation.



1456
1457
1458
# File 'lib/google/apis/videointelligence_v1p1beta1/classes.rb', line 1456

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

Instance Attribute Details

#framesArray<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2FaceFrame>

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



1443
1444
1445
# File 'lib/google/apis/videointelligence_v1p1beta1/classes.rb', line 1443

def frames
  @frames
end

#segmentsArray<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2FaceSegment>

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



1448
1449
1450
# File 'lib/google/apis/videointelligence_v1p1beta1/classes.rb', line 1448

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)


1454
1455
1456
# File 'lib/google/apis/videointelligence_v1p1beta1/classes.rb', line 1454

def thumbnail
  @thumbnail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1461
1462
1463
1464
1465
# File 'lib/google/apis/videointelligence_v1p1beta1/classes.rb', line 1461

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