class Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsParams
Parameters for crop hints annotation request.
Attributes
aspect_ratios[RW]
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` @return [Array<Float>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 3281 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 3286 def update!(**args) @aspect_ratios = args[:aspect_ratios] if args.key?(:aspect_ratios) end