Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1p2beta1/classes.rb,
generated/google/apis/videointelligence_v1p2beta1/representations.rb,
generated/google/apis/videointelligence_v1p2beta1/representations.rb
Overview
Config for PERSON_DETECTION.
Instance Attribute Summary collapse
-
#include_attributes ⇒ Boolean
(also: #include_attributes?)
Whether to enable person attributes detection, such as cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair, etc.
-
#include_bounding_boxes ⇒ Boolean
(also: #include_bounding_boxes?)
Whether bounding boxes are included in the person detection annotation output.
-
#include_pose_landmarks ⇒ Boolean
(also: #include_pose_landmarks?)
Whether to enable pose landmarks detection.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig
constructor
A new instance of GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig
Returns a new instance of GoogleCloudVideointelligenceV1p2beta1PersonDetectionConfig.
4309 4310 4311 |
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#include_attributes ⇒ Boolean 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, etc.
Ignored if 'include_bounding_boxes' is set to false.
Corresponds to the JSON property includeAttributes
4293 4294 4295 |
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4293 def include_attributes @include_attributes end |
#include_bounding_boxes ⇒ Boolean Also known as: include_bounding_boxes?
Whether bounding boxes are included in the person detection annotation output.
Corresponds to the JSON property includeBoundingBoxes
4299 4300 4301 |
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4299 def include_bounding_boxes @include_bounding_boxes end |
#include_pose_landmarks ⇒ Boolean Also known as: include_pose_landmarks?
Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes'
is set to false.
Corresponds to the JSON property includePoseLandmarks
4306 4307 4308 |
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4306 def include_pose_landmarks @include_pose_landmarks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4314 4315 4316 4317 4318 |
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 4314 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 |