Class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1FaceAnnotation

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

Deprecated. No effect.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1FaceAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p1beta1FaceAnnotation.



2613
2614
2615
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2613

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

Instance Attribute Details

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

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



2600
2601
2602
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2600

def frames
  @frames
end

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

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



2605
2606
2607
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2605

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)


2611
2612
2613
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2611

def thumbnail
  @thumbnail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2618
2619
2620
2621
2622
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2618

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