class Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1CropHint
Single crop hint that is used to generate a new crop when serving an image.
Attributes
bounding_poly[RW]
A bounding polygon for the detected image annotation. Corresponds to the JSON property `boundingPoly` @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
confidence[RW]
Confidence of this being a salient region. Range [0, 1]. Corresponds to the JSON property `confidence` @return [Float]
importance_fraction[RW]
Fraction of importance of this salient region with respect to the original image. Corresponds to the JSON property `importanceFraction` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 5079 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_v1/classes.rb, line 5084 def update!(**args) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) @confidence = args[:confidence] if args.key?(:confidence) @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction) end