Class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsParams
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vision_v1p2beta1/classes.rb,
lib/google/apis/vision_v1p2beta1/representations.rb,
lib/google/apis/vision_v1p2beta1/representations.rb
Overview
Parameters for crop hints annotation request.
Instance Attribute Summary collapse
-
#aspect_ratios ⇒ Array<Float>
Aspect ratios in floats, representing the ratio of the width to the height of the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p2beta1CropHintsParams
constructor
A new instance of GoogleCloudVisionV1p2beta1CropHintsParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p2beta1CropHintsParams
Returns a new instance of GoogleCloudVisionV1p2beta1CropHintsParams.
3322 3323 3324 |
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 3322 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aspect_ratios ⇒ Array<Float>
Aspect ratios in floats, representing the ratio of the width to the height of
the image. For example, if the desired aspect ratio is 4/3, the corresponding
float value should be 1.33333. If not specified, the best possible crop is
returned. The number of provided aspect ratios is limited to a maximum of 16;
any aspect ratios provided after the 16th are ignored.
Corresponds to the JSON property aspectRatios
3320 3321 3322 |
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 3320 def aspect_ratios @aspect_ratios end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3327 3328 3329 |
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 3327 def update!(**args) @aspect_ratios = args[:aspect_ratios] if args.key?(:aspect_ratios) end |