Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1beta1/classes.rb,
 generated/google/apis/videointelligence_v1beta1/representations.rb,
 generated/google/apis/videointelligence_v1beta1/representations.rb
Overview
Face detection annotation.
Instance Attribute Summary collapse
- 
  
    
      #frames  ⇒ Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    All video frames where a face was detected. 
- 
  
    
      #segments  ⇒ Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceSegment> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    All video segments where a face was detected. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
Returns a new instance of GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
| 1370 1371 1372 | # File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1370 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#frames ⇒ Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame>
All video frames where a face was detected.
Corresponds to the JSON property frames
| 1363 1364 1365 | # File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1363 def frames @frames end | 
#segments ⇒ Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceSegment>
All video segments where a face was detected.
Corresponds to the JSON property segments
| 1368 1369 1370 | # File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1368 def segments @segments end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1375 1376 1377 1378 | # File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1375 def update!(**args) @frames = args[:frames] if args.key?(:frames) @segments = args[:segments] if args.key?(:segments) end |