Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1PersonDetectionConfig

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

Overview

Config for PERSON_DETECTION.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1PersonDetectionConfig

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1PersonDetectionConfig.



4119
4120
4121
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4119

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

Instance Attribute Details

#include_attributesBoolean Also known as: include_attributes?

Whether to enable person attributes detection, such as cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair color (black, blonde, etc), hair length (long, short, bald), etc. Ignored if 'include_bounding_boxes' is false. Corresponds to the JSON property includeAttributes

Returns:

  • (Boolean)


4102
4103
4104
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4102

def include_attributes
  @include_attributes
end

#include_bounding_boxesBoolean Also known as: include_bounding_boxes?

Whether bounding boxes be included in the person detection annotation output. Corresponds to the JSON property includeBoundingBoxes

Returns:

  • (Boolean)


4109
4110
4111
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4109

def include_bounding_boxes
  @include_bounding_boxes
end

#include_pose_landmarksBoolean Also known as: include_pose_landmarks?

Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is false. Corresponds to the JSON property includePoseLandmarks

Returns:

  • (Boolean)


4116
4117
4118
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4116

def include_pose_landmarks
  @include_pose_landmarks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4124
4125
4126
4127
4128
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4124

def update!(**args)
  @include_attributes = args[:include_attributes] if args.key?(:include_attributes)
  @include_bounding_boxes = args[:include_bounding_boxes] if args.key?(:include_bounding_boxes)
  @include_pose_landmarks = args[:include_pose_landmarks] if args.key?(:include_pose_landmarks)
end